forked from halo-battle/game
Version 1.14a
This commit is contained in:
parent
ba8f323879
commit
dc48225dc9
1094 changed files with 189052 additions and 13889 deletions
25
onyx2/modules/templates_anc/main.php
Normal file
25
onyx2/modules/templates_anc/main.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
define('SMARTY_DIR',ONYX.'modules/templates/smarty/');
|
||||
|
||||
require_once(SMARTY_DIR."Smarty.class.php");
|
||||
|
||||
define('_TEMPLATE_DIR',ONYX.'tpl/'.$OPT['tpl'].'/');
|
||||
define('_TEMPLATE_COMPILE',ONYX.$OPT['compile']);
|
||||
define('_TEMPLATE_CONFIG',ONYX.$OPT['config']);
|
||||
define('_TEMPLATE_CACHE',ONYX.$OPT['cache']);
|
||||
|
||||
class Template extends Smarty
|
||||
{
|
||||
var $template_dir = _TEMPLATE_DIR;
|
||||
var $compile_dir = _TEMPLATE_COMPILE;
|
||||
var $config_dir = _TEMPLATE_CONFIG;
|
||||
var $cache_dir = _TEMPLATE_CACHE;
|
||||
|
||||
var $compile_check = false;
|
||||
var $force_compile = true;
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue