Просмотр файла system/inc/ini_set.php

Размер файла: 993B
  1. <?php
  2. /**
  3. * @name SHCMS Engine
  4. * @copyright Shamsik © 2012
  5. * Данный код защищен авторскими правами
  6. * http://shcms.ru
  7. */
  8. ini_set('magic_quotes_gpc', 0);
  9. ini_set('magic_quotes_runtime', 0);
  10.  
  11. if (ini_get('display_errors') != 1) {
  12. ini_set('display_errors', 1);
  13. }
  14. ini_set('session.cache_expire', SESSION_TIME_SHCMS);
  15.  
  16. // игнорировать повторяющиеся ошибки
  17. ini_set('ignore_repeated_errors', true);
  18.  
  19.  
  20. if (!file_exists(H.'system/inc/config.php'))
  21. {
  22. header("Location: /install/");
  23. exit;
  24. }
  25. // показываем только фатальные ошибки
  26. ini_set('error_reporting', e_error);
  27.  
  28. // Установка кодировки для mb_string
  29. if (function_exists('mb_internal_encoding')) { mb_internal_encoding('UTF-8'); }
  30.  
  31. //Установка кодировки для iconv
  32. if(function_exists('Iconv')) { iconv_set_encoding('internal_encoding','UTF-8'); }
  33.  
  34.  
  35.  
  36.  
  37. ?>