Web UI for ARGUS server
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.

41 lines
1.1 KiB

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. error_reporting( E_ALL );
  3. require_once('settings.php');
  4. // SET DATA CONNECTION AND GLOBAL USER VARIABLES
  5. $TT_123 = explode( '.', PHP_VERSION );
  6. if( $TT_123[0] == '4' ){
  7. require_once( 'php/db/MySQL_class.php' );
  8. $DATABASE = new MySQL_DB($DBHost, $DBName, $DBUser, $DBPassword);
  9. } elseif( $TT_123[0] > '4' ){
  10. require_once( 'php/db/MySQLi_class.php' );
  11. $DATABASE = new MySQLi_DB($DBHost, $DBName, $DBUser, $DBPassword);
  12. } else {
  13. exit();
  14. };
  15. //$DATABASE->SetCacheDir( $DBCacheDir );
  16. session_start();
  17. require_once('php/db/user_class.php');
  18. require_once('php/auth/web.php');
  19. require_once('php/db/language_class.php');
  20. //require_once('php/sys/SYSTEM_functions.php');
  21. require_once('php/ui/UI_functions.php');
  22. //require_once('php/web/WEB_functions.php');
  23. if( isset($_GET['Lang'])){
  24. $UCL=$_GET['Lang']/1;
  25. if ($UCL) $_SESSION['userlang']=$UCL; else $_SESSION['userlang']=$UserLang;
  26. }
  27. if( isset($_SESSION['userlang']) )$Labels=new Language($_SESSION['userlang'], '_js');
  28. else $Labels=new Language( $UserLang, '_js');
  29. if( $UserLang == 3 || $UserLang == 255 ){
  30. $RTL_SITE = true;
  31. } else {
  32. $RTL_SITE = false;
  33. };
  34. ?>