header ( 'Content-type: text/html; charset=UTF-8' );
//die ('Идет обновление. Зайдите позже.');
date_default_timezone_set('Europe/Kiev');
if (strstr($_SERVER['HTTP_USER_AGENT'],'MSIE 6.0')) {
die('Версия браузера Internet Explorer, которую Вы используете для просмотра сайта не поддерживается, поскольку она сильно устарела.
Скачате последнюю версию Internet Explorer или один из альтернативных браузеров');
}
session_start ();
include_once dirname($_SERVER['SCRIPT_FILENAME']).'/config.php';
include ROOT . 'engine/init.php';
if (isset ( $_GET ['PAGE'] ) && (preg_match ( "'PAGE=.*'s", $_GET ['PAGE'] ) || intval($_GET ['PAGE'])==0)) {
Error::status ( 404 );
exit ( 'Page not found' );
}
$ctrl = new sys_control ();
$ctrl->show ();
$cont = XML::transform ( null, $xsl );
$keywords = Utils::metaKeywords ( $cont );
$cont = str_replace ( '#KEYWORDS#', Utils::trimText ( $keywords, 500, '' ), $cont );
echo $cont;exit;