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.

48 lines
1.3 KiB

​
​
​
4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. $SYSPath = '/srv/www/module';
  3. $ARGUS_WEB_VERSION = trim( file_get_contents( $SYSPath . '/lib/version.var' ) );
  4. $SSL_INSTALLLED = false;
  5. if( $_SERVER['SERVER_PORT'] == 80 ){
  6. $WEBPath='http://' . $_SERVER['HTTP_HOST'] . '/';//$_SERVER['SERVER_NAME'] . '/';
  7. if( $SSL_INSTALLLED ){
  8. header( 'location: https://'.$_SERVER['SERVER_ADDR'].'/'.$_SERVER['QUERY_STRING'] );
  9. exit();
  10. };
  11. } else {
  12. $WEBPath='https://' . $_SERVER['HTTP_HOST'] . '/';//$_SERVER['SERVER_NAME'] . '/';
  13. };
  14. $ShowImagesLocal=false;
  15. $ShowThumbnailsLocal=true;
  16. $ShowAdw=true;
  17. $SaveLocal=false;
  18. $MailAgent='SENDMAIL';
  19. $CGP_SubmitPath='../Submitted/';
  20. $DBCacheDir=$SYSPath . 'cache';
  21. $MinimalSize=640000;
  22. function microtime_float(){
  23. list($usec, $sec) = explode(" ", microtime());
  24. return ((float)$usec + (float)$sec);
  25. };
  26. $Script_Start_Time = microtime_float();
  27. $Site_Languages = array(
  28. //array( 'id'=>0, 'name'=>'Default', 'rtl'=>false ),
  29. array( 'id'=>1, 'name'=>'English', 'rtl'=>false ),
  30. array( 'id'=>2, 'name'=>'Русский', 'rtl'=>false ),
  31. array( 'id'=>3, 'name'=>'עברית', 'rtl'=>true ),
  32. array( 'id'=>4, 'name'=>'Français', 'rtl'=>false ),
  33. array( 'id'=>5, 'name'=>'日本語', 'rtl'=>false ),
  34. array( 'id'=>6, 'name'=>'中国人', 'rtl'=>false ),
  35. array( 'id'=>7, 'name'=>'Română', 'rtl'=>false ),
  36. );
  37. ?>