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