olap/lib/templating.php

28 lines
736 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?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",
));