<?php
define('ROOT',str_replace("/","//",$_SERVER['DOCUMENT_ROOT']).'//');
define('LIB_SMARTY',ROOT.'libs//');
define('TEMPLATES',ROOT.'templates');
require_once(LIB_SMARTY.'Smarty.class.php');
$Smarty=new Smarty();
$Smarty->compile_check=true;
$Smarty->debugging=false;
$Smarty->template_dir=TEMPLATES;
$Smarty->config_dir=ROOT.'demo//configs';
$Smarty->compile_dir=ROOT.'demo//templates_c';
$Smarty->cache_dir=ROOT.'demo//cache';
$Smarty->left_delimiter='<%{';
$Smarty->right_delimiter='}%>';
?>