<?php set_time_limit(360); if ($_SERVER['HTTP_HOST'] == NULL) { ini_set('magic_quotes_runtime', 'Off'); ini_set('display_errors', 'off'); include_once 'application/includes.inc.php'; VBox::set('ConstData', new ConstData()); $isCacheable = VBox::get('ConstData')->getConst('isCacheable'); // get isCacheable if ((bool) $isCacheable) { $localPath = LOCAL_PATH; //local path to site $cachePath = IniParser::getSettring('cache', 'cache_path'); //path to cache dir $cachecount = IniParser::getSettring('cache', 'cachecount'); //count copy of cache include_once ENGINE_PATH . 'class/classReCacher.php'; $cacher = new ReCacher($localPath, $cachePath, $cachecount); $cacher->setLogMode(2); $cacher->_rebuildAllCache(); unset($cacher); } include_once LOCAL_PATH . 'application/final.inc.php'; }
function oa($a) { echo '<pre>'; var_dump($a); echo '</pre>'; } if (isset($_GET['pass']) && md5($_GET['pass']) == md5('DbJ4BO1WTJp1kgFSk7dU')) { //if ($_SERVER['HTTP_HOST'] == NULL){ include_once dirname(__FILE__) . '/application/includes.inc.php'; include_once ENGINE_PATH . 'class/classPage.php'; include_once ENGINE_PATH . 'class/classCase.php'; error_reporting(E_ALL); ini_set('display_errors', 1); VBox::set('ConstData', new ConstData()); //Count case on each page $count_case_on_page = IniParser::getSettring('case', 'step') ? IniParser::getSettring('case', 'step') : 3; if ((int) $count_case_on_page > 0) { // Очистим таблицу case2page $q = "TRUNCATE TABLE case2page"; DB::executeAlter($q); // Выбираем все уникальные значения языков страниц $q = "select distinct pg_lang from pages where pg_hidden = ?"; DB::executeQuery($q, 'langs_data', array(0)); $langs_data = DB::fetchResults('langs_data'); //Запрос для выборки активных страниц для данного языка $q_page = "select pg_id from pages where pg_hidden = ? and pg_lang = ? and pg_id <>?"; //Запрос для выборки активных case для данного языка $q_case = "select cs_id from " . VBox::get('ConstData')->getConst('langsDb') . ".case_study where cs_hidden = ? and cs_lang_id = ?"; $q_res = ""; // Делаем цикл по языкам foreach ($langs_data as $lang) {