-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsmarty_setup.php
More file actions
40 lines (28 loc) · 989 Bytes
/
Copy pathsmarty_setup.php
File metadata and controls
40 lines (28 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
//ini_set('display_errors', 'On');
//error_reporting(E_ALL | E_STRICT);
define('SMARTY_DIR','/home/hacklu/smarty/libs/');
define('SMARTY_WORK_DIR','/home/hacklu/hacklu.com/Algorithm/smarty/');
define('CSS_DIR','/Algorithm/include/css/');
date_default_timezone_set('Asia/Shanghai');
//function myHandlerForMinorErrors(){};
//set_error_handler('myHandlerForMinorErrors', E_NOTICE | E_STRICT).
//load smarty library
require_once(SMARTY_DIR . 'Smarty.class.php');
class Algo extends Smarty {
function __construct()
{
parent::__construct();
$this->setTemplateDir(SMARTY_WORK_DIR . 'templates/');
$this->setCompileDir(SMARTY_WORK_DIR . 'templates_c/');
$this->setConfigDir(SMARTY_WORK_DIR . 'configs/');
$this->setCacheDir(SMARTY_WORK_DIR . 'cache/');
$this->caching = Smarty::CACHING_LIFETIME_CURRENT;
$this->assign('app_name', 'Algorithm');
$this->assign('CSS_DIR',CSS_DIR);
//$this->debugging = true;
$this->force_compile = true;
}
}
#echo "111";
?>