'4' ){ require_once( 'php/db/MySQLi_class.php' ); $DATABASE = new MySQLi_DB($DBHost, $DBName, $DBUser, $DBPassword); } else { exit(); };*/ require_once( 'php/db/SQLite_Class.php'); $DATABASE = new SQLite_DB( $SYSPath . '/lib/controller/data/mysqlitedb.db'); $QS="SELECT * FROM system_props LIMIT 1"; $RV = $DATABASE->Query( $QS ); if( count( $RV ) ){ $AP_DATA = $RV[0]; if( $AP_DATA['hw_info'] == '' ) $AP_DATA['hw_info'] = 'MUST_DO_DETECTION'; if( $AP_DATA['os_info'] == '' ) $AP_DATA['os_info'] = 'MUST_RESTART_SERVER'; } else { $AP_DATA = array( 'anchor_lat'=>0, 'anchor_lon'=>0, 'anchor_alt'=>0, 'type'=>0, 'name'=>'INITIAL_SETUP_MODE', 'os_info'=>'MUST_RESTART_SERVER', 'hw_info'=>'MUST_DO_DETECTION' ); }; $QS="SELECT `site_id`, `version_string` FROM `servers` LIMIT 1"; $RR = $DATABASE->Query( $QS ); if( count( $RR ) ){ $AP_DATA['site_id'] = intval( $RR[0]['site_id']); $AP_DATA['build'] = $RR[0]['version_string']; } else { $AP_DATA['site_id'] = 1; $AP_DATA['build'] = 'undefined-build'; }; //$DATABASE->SetCacheDir( $DBCacheDir ); session_start(); require_once('php/db/logio_class.php'); $LOG = new Logio( LOG_LVL_ALL ); require_once('php/db/user_class.php'); require_once('php/auth/web.php'); //require_once('php/db/language_class.php'); require_once('php/db/language_json_class.php'); //require_once('php/sys/SYSTEM_functions.php'); require_once('php/ui/UI_functions.php'); //require_once('php/web/WEB_functions.php'); $Labels=new Language_json( $SYSPath . '/lib/'.$UserLang.'.json'); if( $UserLang == 3 || $UserLang == 255 ){ $RTL_SITE = true; } else { $RTL_SITE = false; }; ?>