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.

44 lines
1.3 KiB

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