|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * Smart Report Engine |
| 4 | + * Community Edition v1.1.3 |
| 5 | + * Author : Webuccino |
| 6 | + * All copyrights are preserved to Webuccino inc |
| 7 | + * URL : https://mysqlreports.com |
| 8 | + * |
| 9 | + */ |
| 10 | +define("SRE__DEFAULT__USER__", ""); |
| 11 | +define("SRE__DEFAULT__PASS__", ""); |
| 12 | +define("SRE__DEFAULT__HOST__", "localhost"); |
| 13 | +define("SRE__DEFAULT__DB__", ""); |
| 14 | + |
| 15 | + |
| 16 | +define("SRE__ALLOWED_REPORT_LANGUAGES__", json_encode(array("en", |
| 17 | + "de", |
| 18 | + "ar", |
| 19 | + "es", |
| 20 | + "fr", |
| 21 | + "it"))); |
| 22 | +define("SRE__DEFAULT_REPORT_LANGUAGE__", "en"); |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | +//directory names |
| 27 | + |
| 28 | + |
| 29 | +define("SRE__Auto__Replace__Reports__", 0); //replace existing Reports with same name |
| 30 | +define("SRE__LANGUAGE__", "en"); |
| 31 | +define("SRE_DEFAULT_LAYOUT_","AlignLeft"); |
| 32 | +define("SRE_TEST_MODE",0); |
| 33 | + |
| 34 | +define("SRE_PUBLIC_REPORT", "PUBLIC_REPORT"); |
| 35 | + |
| 36 | + |
| 37 | +/// a numeric data type |
| 38 | +/** |
| 39 | + * a numeric data type |
| 40 | + */ |
| 41 | +define("SRE_NUMBER","NUMBER"); |
| 42 | +/** |
| 43 | + * A textual data type |
| 44 | + */ |
| 45 | +define("SRE_TEXT","TEXT");/** |
| 46 | + * A date data type |
| 47 | + */ |
| 48 | +define("SRE_DATE","DATE"); |
| 49 | +/** |
| 50 | + * an array data type |
| 51 | + */ |
| 52 | +define("SRE_ARRAY","ARRAY"); |
| 53 | +/** |
| 54 | + * An object data type |
| 55 | + */ |
| 56 | +define("SRE_OBJECT","OBJECT"); |
| 57 | +/** |
| 58 | + * A Boolean data type |
| 59 | + */ |
| 60 | +define("SRE_BOOLEAN","BOOLEAN"); |
| 61 | +/** |
| 62 | + * array of all allowed data types |
| 63 | + */ |
| 64 | +define("SRE_DATA_TYPES",json_encode(array( |
| 65 | + SRE_NUMBER, |
| 66 | + SRE_TEXT, |
| 67 | + SRE_DATE, |
| 68 | + SRE_ARRAY, |
| 69 | + SRE_OBJECT, |
| 70 | + SRE_BOOLEAN |
| 71 | + |
| 72 | +))); |
| 73 | +/** |
| 74 | + * A table based data source |
| 75 | + */ |
| 76 | +define("SRE_Table","table"); |
| 77 | +/** |
| 78 | + * A SQL query data source |
| 79 | + */ |
| 80 | + |
| 81 | +define('BASEPATH', true); |
| 82 | +define("DIRECTACESS", true); |
| 83 | +define("SRE__Product_DIR__","SmartReportingEngine"); |
| 84 | +define("SRE__src_DIR__","src"); |
| 85 | +define("SRE__Engin__DIR__", "Engine"); //The directory in which the model classes is to be saved |
| 86 | +define("SRE__REPORTS__DIR__", "sre_reports"); //The directory in which reports to be stored |
| 87 | +define("SRE__CORE__DIR__", "Core"); //the directory in which the core engine files is located |
| 88 | +define("SRE_MOBILE_REDIRECT",false); |
| 89 | +define("SRE_SUM","sum"); |
| 90 | +define("SRE_AVERGAE","average"); |
| 91 | +define("SRE_COUNT","count"); |
| 92 | +define("SRE_MAX","max"); |
| 93 | +define("SRE_MIN","min"); |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
0 commit comments