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.

47 lines
1.4 KiB

​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. $ARGUS_WEB_VERSION = trim( file_get_contents( '/srv/www/srv/lib/version.var' ) );
  3. $SSL_INSTALLLED = false;
  4. if( isset( $_SERVER['SERVER_PORT'] ) ){
  5. if( $_SERVER['SERVER_PORT'] != 443 ){
  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. };
  15. $SYSPath = '/srv/www/srv/';
  16. $ShowImagesLocal=false;
  17. $ShowThumbnailsLocal=true;
  18. $ShowAdw=true;
  19. $SaveLocal=false;
  20. $MailAgent='SENDMAIL';
  21. $CGP_SubmitPath='../Submitted/';
  22. $DBCacheDir=$SYSPath . 'cache';
  23. $MinimalSize=640000;
  24. function microtime_float(){
  25. list($usec, $sec) = explode(" ", microtime());
  26. return ((float)$usec + (float)$sec);
  27. };
  28. $Script_Start_Time = microtime_float();
  29. $Site_Languages = array(
  30. //array( 'id'=>0, 'name'=>'Default', 'rtl'=>false ),
  31. array( 'id'=>1, 'name'=>'English', 'rtl'=>false ),
  32. array( 'id'=>2, 'name'=>'Русский', 'rtl'=>false ),
  33. array( 'id'=>3, 'name'=>'עברית', 'rtl'=>true ),
  34. array( 'id'=>4, 'name'=>'Français', 'rtl'=>false ),
  35. array( 'id'=>5, 'name'=>'日本語', 'rtl'=>false ),
  36. array( 'id'=>6, 'name'=>'中国人', 'rtl'=>false ),
  37. array( 'id'=>7, 'name'=>'Română', 'rtl'=>false ),
  38. );
  39. ?>