error_reporting(E_ALL & ~E_NOTICE); ini_set('display_errors', 0); include("classes/lib/basics.php"); $tmp = file_get_contents('./banner.cfg'); $tmp = json_decode($tmp); foreach ($tmp as $k => $v) { $tmp[$k] = iconv('UTF-8', 'windows-1251', $v); define('tmp'.$k, $tmp[$k]); } header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); ob_start(); //��������� ������ define("constIndexTitle", tmp8); define("constIndexDescription", tmp9); define("constIndexKeywords", tmp10); // DB Params require('./dbconf.php'); define('constCSSFileName', 'style.css'); define('constCategPath', './images/categs/'); define('constGoodPath', './images/goods/'); define('constVideoPath', './images/video/'); define('constSitePrefix', ''); define('constNumPageLinks', 5); define('constPageRecords', 5); define('constShowDebugParams', 0); define('constMaxAdvBlocks', 6); define('constMaxLinksInCateg', 30); define('constEmail', $tmp[4]); define('constShowDBErrors', 1); define('constTablePrefix', 'sh_'); define('cTP', constTablePrefix); define('constOrderEmail', 'das666@gmail.com'); // ��������� ������ define('constDirectLinks', 1); define('constCaptionSeparateSign', ''); $modules = Array( 1 => Array('faq', 'FAQ'), 2 => Array('catalog','������� �������'), 3 => Array('news','�������'), 4 => Array('texts', '�����'), 5 => Array('video', '�����'), ); $modulelinks = Array( 1 => Array('edit' => '�������������'), 2 => Array('edit' => '�������������', 'goodlist' => '������'), 3 => Array('newslist' => '������'), 4 => Array('edit' => '�������������'), 5 => Array('videolist' => '������'), ); include('constructor.php'); $path = explode('?', $_SERVER['REQUEST_URI']); $path = $path[0]; $fulldir = mysql_real_escape_string($path); $objDB->getData(cTP.'categs', 'categ_level,categ_id,categ_name,categ_caption,categ_description,categ_keywords,categ_module', 'categ_fulldir="'.$fulldir.'"'); $dirinfo = $objDB->getNextRow(); $thisparams = Array('categ_id' => $dirinfo['categ_id'], 'categ_name' => $dirinfo['categ_name'],'modulename' => $modules[$dirinfo['categ_module']][0],'categ_level' => $dirinfo['categ_level']); if ($_SERVER['REQUEST_URI'] == '/') { $add_title = constIndexTitle; $add_desc = constIndexDescription; $add_key = constIndexKeywords; } else { if ($dirinfo['categ_caption']) $add_title = $dirinfo['categ_caption']; else $add_title = $dirinfo['categ_name']; if ($dirinfo['categ_description']) $add_desc = $dirinfo['categ_description']; else $add_desc = ''; if ($dirinfo['categ_keywords']) $add_key = $dirinfo['categ_keywords']; else $add_key = ''; if (constIndexTitle) $add_title .= ' - '.constIndexTitle; } // ������� ����� ��������� ����������, ������� � �������� ������� // � �������� ������ $objHtml =& new THtml( $add_title, $add_desc, $add_key, $objDB, $objParams, $objSession ); $objHtml->setCSSFile('/style.css'); $adminObjects = Array(); $adminObjects[0] = 'Users'; $adminObjects[1] = 'Categs'; setcookie('adminObjects', var_export($adminObjects,true),0,'/'); $design =& new TDesign($objHtml, $objDB, $objParams, $objSession); ob_end_flush(); ?>