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.

43 lines
1.2 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. $DATABASE = new SQLite_DB( $SYSPath . '/lib/controller/data/mysqlitedb.db');
  19. //$DATABASE->SetCacheDir( $DBCacheDir );
  20. session_start();
  21. require_once('php/db/logio_class.php');
  22. $LOG = new Logio( LOG_LVL_ALL );
  23. require_once('php/db/user_class.php');
  24. require_once('php/auth/web.php');
  25. require_once('php/utm/gPoint.php');
  26. //require_once('php/db/language_class.php');
  27. require_once('php/db/language_json_class.php');
  28. require_once('php/sys/r-goose_sys.php');
  29. require_once('php/argus/mojo.php');
  30. $Labels=new Language_json( $SYSPath . '/lib/'.$UserLang.'.json');
  31. if( $UserLang == 3 || $UserLang == 255 ){
  32. $RTL_SITE = true;
  33. } else {
  34. $RTL_SITE = false;
  35. };
  36. ?>