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.4 KiB

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