1: <?php
2: if(!isset($_SERVER['HTTP_HOST']) || strpos(" " . $_SERVER['HTTP_HOST'], "localhost") !== false) define("autocompkey","FD45A279GH");
3: if(strpos($slibversion,".phar") !== false){
4: $slibpath = "phar://{$phppath}/{$slibversion}";
5: $jslibpath = "{$respath}/jslib_lib.phar";
6: }else{
7: $slibpath = "{$phppath}/{$slibversion}";
8: $jslibpath = "{$respath}/jslib";
9: }
10: $libpath = "{$phppath}/Score/$libversion";
11: $jquerypath = "{$jslibpath}/jquery";
12: $comppath = "{$phppath}/components";
13: $slibrespath = "{$respath}/{$slibversion}";
14:
15: // Global Framework Settings
16: // ------------------------------
17: // default cache time in sec
18: $cache_time = "100";
19:
20: // Component UI Kit uikitdef/bootstrap folder
21: $ComponentUI = "/uikitdef/bootstrap"; // Bootstrap
22:
23: //default company info
24: $cmpid = "demo";
25: $cmpname = "Demo";
26: $cmpemail = "info@domain.com";
27: $cmpaddress1 = "Address1 Lane1";
28: $cmpaddress2 = "Address2 ON Canada";
29: $cmpphone1 = "+1000-111-0000";
30: $cmpphone2 = "+1000-000-1111";
31: // for google login, set in comp.php file
32: $google_oauth_client_secret = "";
33:
34: // use ms
35: $ajaxready_max = 50;
36: // 2= defer, 1= async, 0=nop
37: $default_filelink_load = 2;
38: // default security key
39: $defenckey = "aHmlP1";
40: date_default_timezone_set("America/New_York");
41: // set session state, if false you can not login
42: $sphp_use_session = true;
43: // single session app
44: $sphp_use_session_storage = false;
45: // convert session to cookie
46: $sphp_use_session_cookie = false;
47:
48: $sphp_app_cmd = false;
49: // Default Language
50: $serv_language = "ENGLISH";
51: // debug mode 0,1,2
52: $debugmode = 0;
53: $debugprofiler = "";
54: //$debugprofiler = "{$phppath}/classes/base/debug/SPHP_Profiler3.php";
55: $errorLog = true;
56:
57: $sphpRunasLib = false;
58: $run_hd_parser = false; // not working under process
59: $translatermode = false;
60: $blnEditMode = false; // remove in future only testing purpose
61: // true mean use of php preload in ini
62: //opcache.preload=D:/www/res/Sphp/preload_lib.php
63: //opcache.preload_user=www-data
64: $blnPreLibCache = false;
65: // if true load libsphp1.php file
66: $blnPreLibLoad = true;
67: $blnStopResponse = false;
68:
69: //$db_engine_path = $libpath . "/lib/MySQL.php,\\MySQL";
70: $db_engine_path = $libpath . "/lib/MySQLiPdo.php,\\MySQLiPdo";
71: $ddriver = "";
72: $duser = "root";
73: $db = "dbplugin";
74: $dpass = "";
75: $dhost = "localhost:3306";
76:
77: // session settings
78: $SESSION_NAME = 'SPHPID';
79: $SESSION_PATH = '';
80:
81: // admin login user
82: $admuser = 'admin';
83: $admpass = '1234';
84:
85: $jsProtection = false;
86:
87: $masterf = "{$comppath}{$ComponentUI}/masters/default/master.php";
88: //$mobimasterf = "{$slibpath}/masters/default/mobimaster.php";
89: //$admmasterf = "{$slibpath}/masters/default_1/admmaster.php";
90: $mebmasterf = $masterf;
91: //$softmasterf = "{$slibpath}/masters/default/softmaster.php";
92:
93: // ------------------------------
94: // Global Framework Settings End
95:
96: if (filter_input(INPUT_SERVER, "HTTP_HOST", FILTER_FLAG_EMPTY_STRING_NULL)) {
97: if (isset($_SERVER["HTTPS"]) && ( $_SERVER["HTTPS"] == "on" || $_SERVER["HTTPS"] == 1)){
98: $basepath = "https://".$_SERVER['HTTP_HOST'];
99: }else{
100: $basepath = "http://".$_SERVER['HTTP_HOST'];
101: }
102: } else {
103: $basepath = "";
104: }
105: $serverpath = $_SERVER['DOCUMENT_ROOT'];
106:
107: include_once(PROJ_PATH . "/plugin/ccachelist.php");
108: include_once(PROJ_PATH . "/cachelist.php");
109: include_once(PROJ_PATH . '/comp.php');
110: // just interface function remove when need in comp.php file
111: function getPluginDB(){}
112: function getSPDB(){}
113: