EIOS/inc/smarty.php

14 lines
460 B
PHP
Raw Normal View History

2023-12-28 15:39:22 +03:00
<?php
if(!file_exists('inc/smarty/Smarty.class.php')) { $pt=''; $tp='../'; } else { $pt='inc/'; $tp=''; }
require($pt.'smarty/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = $tp.'tpl/';
$smarty->compile_dir = $pt.'smarty/templates_c/';
$smarty->config_dir = $pt.'smarty/configs/';
$smarty->cache_dir = $pt.'smarty/cache/';
//$smarty->force_compile = true;
$smarty->debugging = false;
$smarty->caching = false;
$smarty->cache_lifetime = 0;
?>