Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. error_reporting( E_ALL );
  3. require_once('settings.php');
  4. require_once( __DIR__ . '/php/host_timezone.php'); // PHP must use the host's local time zone
  5. require_once('defines.php');
  6. // SET DATA CONNECTION AND GLOBAL USER VARIABLES
  7. /*$TT_123 = explode( '.', PHP_VERSION );
  8. if( $TT_123[0] == '4' ){
  9. require_once( 'php/db/MySQL_class.php' );
  10. $DATABASE = new MySQL_DB($DBHost, $DBName, $DBUser, $DBPassword);
  11. } elseif( $TT_123[0] > '4' ){
  12. require_once( 'php/db/MySQLi_class.php' );
  13. $DATABASE = new MySQLi_DB($DBHost, $DBName, $DBUser, $DBPassword);
  14. } else {
  15. exit();
  16. };
  17. */
  18. require_once( 'php/db/SQLite_Class.php');
  19. require_once( 'php/db/report_files.php'); // hourly report_HH.db files + global report ids
  20. $DATABASE = new SQLite_DB( $SYSPath . '/lib/controller/data/mysqlitedb.db');
  21. //$DATABASE->SetCacheDir( $DBCacheDir );
  22. session_start();
  23. require_once('php/db/logio_class.php');
  24. $LOG = new Logio( LOG_LVL_ALL );
  25. require_once('php/db/user_class.php');
  26. require_once('php/auth/web.php');
  27. require_once('php/utm/gPoint.php');
  28. //require_once('php/db/language_class.php');
  29. require_once('php/db/language_json_class.php');
  30. require_once('php/sys/r-goose_sys.php');
  31. require_once('php/argus/mojo.php');
  32. $Labels=new Language_json( $SYSPath . '/lib/'.$UserLang.'.json');
  33. if( $UserLang == 3 || $UserLang == 255 ){
  34. $RTL_SITE = true;
  35. } else {
  36. $RTL_SITE = false;
  37. };
  38. ?>