Файл: engine/znews.class.php
Строк: 17
<?php
class znews{
static function config(){
require_once ENGINE.'config.php';
//Подключаем шаблонизатор
require_once $_SERVER['DOCUMENT_ROOT'].'/engine/templater.class.php';
//Вывод шаблона
$templater = new templater();
$templater->pathtemplater(MAIN.'/', 'default');
//Установка глобальных переменных
$templater->set_var('path','MAIN');
$templater->set_var('url_path', 'http://'.$_SERVER['HTTP_HOST'].'/');
$templater->set_var('title', $title);
$templater->set_var('user', $us_mass);
$templater->set_var('tima', $tima);
$templater->show_display('header.tpl.php');
$templater->show_display($index_template);
$templater->show_display('footer.tpl.php');
}
public static function run(){
return self::config();
}
}
?>