public function __construct() { parent::__construct(); $this->smarty->setTemplateDir(System_Settings::getSmarty_template()); $this->smarty->setCompileDir(System_Settings::getSmarty_compile_dir()); $this->smarty->setCacheDir(System_Settings::getSmarty_cached_dir()); $this->smarty->debugging = System_Settings::getSmarty_debugging(); $this->smarty->caching = System_Settings::getSmarty_caching(); $this->smarty->cache_lifetime = System_Settings::getSmarty_cache_lifetime(); }
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'; // Подключение функций для щаблонов require_once DOC . 'functions/smarty.functions.php'; $langs = array(); $langs_array = array(); // Список языков. if (defined('MULTILANG') && MULTILANG == 1) { // Получаем список доступных языков $langs = get_langs(); for ($i = 0; $i < count($langs); $i++) {