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.

46 lines
1.3 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. $ARGUS_WEB_VERSION = trim( file_get_contents( '/srv/www/web/lib/version.var' ) );
  3. $SSL_INSTALLLED = false;
  4. if( $_SERVER['SERVER_PORT'] == 80 ){
  5. $WEBPath='http://' . $_SERVER['HTTP_HOST'] . '/';//$_SERVER['SERVER_NAME'] . '/';
  6. if( $SSL_INSTALLLED ){
  7. header( 'location: https://'.$_SERVER['SERVER_ADDR'].'/'.$_SERVER['QUERY_STRING'] );
  8. exit();
  9. };
  10. } else {
  11. $WEBPath='https://' . $_SERVER['HTTP_HOST'] . '/';//$_SERVER['SERVER_NAME'] . '/';
  12. };
  13. $SYSPath = '/srv/www/web/';
  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. ?>