28 lines
736 B
PHP
28 lines
736 B
PHP
<?php
|
||
|
||
# Создание глобального объекта шаблона и определение наиболее общих его переменных
|
||
# (c) VitaliF 2006-2010
|
||
|
||
require_once 'config.php';
|
||
require_once 'template.php';
|
||
require_once 'mysql.php';
|
||
|
||
if (!defined('LIGHTWEIGHT'))
|
||
{
|
||
header("Cache-Control: no-cache");
|
||
header("Pragma: no-cache");
|
||
header("Expires: Thu, 01 Jan 1970 12:00:00 GMT");
|
||
}
|
||
|
||
$tpl = config_var('template');
|
||
if ($tpl == '')
|
||
$tpl = 'default';
|
||
$template = new Template (array(
|
||
'root' => $local_path . $template_path . $tpl,
|
||
'cache_dir' => $local_path . $cache_path,
|
||
'print_error' => 1,
|
||
));
|
||
$template->vars(array(
|
||
'DOMAIN' => "http://$Domain",
|
||
));
|