source: aowow/includes/smarty.php

Last change on this file was 170, checked in by maron, 15 years ago
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1<?php
2require_once 'configs/config.php';
3
4// Директория
5global $cwd;
6global $AoWoWconf;
7
8$cwd = str_replace("\\", "/", getcwd());
9
10// загружаем библиотеку Smarty
11require_once $cwd.'/includes/Smarty-2.6.19/libs/Smarty.class.php';
12class Smarty_AoWoW extends Smarty
13{
14 function Smarty_AoWoW()
15 {
16 global $cwd;
17 global $AoWoWconf;
18 $this->Smarty();
19 // Папки с шаблонами, кэшом шаблонов и настройками
20 $this->template_dir = $cwd.'/templates/'.$AoWoWconf['aowow']['template'].'/';
21 $this->compile_dir = $cwd.'/cache/templates/'.$AoWoWconf['aowow']['template'].'/';
22 $this->config_dir = $cwd.'/configs/';
23 $this->cache_dir = $cwd.'/cache/';
24 // Режим отладки
25 $this->debugging = $AoWoWconf['debug'];
26 // Разделители
27 $this->left_delimiter = '{';
28 $this->right_delimiter = '}';
29 // Общее Кэширование, для этого сайта не работает
30 $this->caching = false;
31 // Имя сайта
32 $this->assign('app_name', $AoWoWconf['aowow']['name']);
33 }
34
35 function uDebug($name, $val='')
36 {
37 if (!$val) $val='unset';
38 $this->append($name,$val);
39// $this->append("UserDebug",);
40 }
41}
42
43?>
Note: See TracBrowser for help on using the repository browser.