예제 #1
0
파일: index.php 프로젝트: klimjr/cms
 require_once DOC . 'init/const.php';
 // регистраци функций
 require_once DOC . 'functions/functions_register.php';
 error_reporting(0);
 ini_set('display_errors', false);
 ini_set('html_errors', false);
 ini_set('error_reporting', 0);
 /*
     error_reporting(E_ALL);
     ini_set('display_errors', true);
     ini_set('html_errors', true);
     ini_set('error_reporting', E_ALL); */
 // Определение префикса названий таблиц в БД
 PdoWrap::setEncoding(ENCODING);
 PdoWrap::setEncodingConnection(ENCODING_CONNECTION);
 PdoWrap::setPrefix($db_conf['db_table_prefix']);
 // Установка основных переменных класса
 Files::setDir(USERFILES);
 Files::setOrig(IMG_ORIGINAL);
 // Подключаем Smarty
 require_once DOC . 'vendors/smarty/Smarty.class.php';
 $smarty = new Smarty();
 System_Settings::setSmarty_template('.admin');
 $smarty->setTemplateDir(System_Settings::getSmarty_template());
 $smarty->setCompileDir(System_Settings::getSmarty_compile_dir());
 $smarty->setCacheDir(System_Settings::getSmarty_cached_dir());
 $smarty->debugging = System_Settings::getSmarty_debugging();
 $smarty->caching = false;
 $smarty->cache_lifetime = 0;
 //	Подключение функций.
 require_once DOC . 'functions/functions_list.php';