-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleft.php
More file actions
26 lines (20 loc) · 822 Bytes
/
left.php
File metadata and controls
26 lines (20 loc) · 822 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
<?php
session_start();
//echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
define('SITEROOT', './');
require_once(SITEROOT.'/configs/setting.inc.php');
require_once(SITEROOT.'/configs/config_left.inc.php');
define('SMARTY_DIR', SITEROOT.'/include/Smarty-3.0.4/libs/');
require_once(SMARTY_DIR . 'Smarty.class.php');
global $config;
if(isset($_COOKIE['admin']['path']) && (!empty($_COOKIE['admin']['path'])))
$config['path'] = SITEROOT.'themes/'.$_COOKIE['admin']['path'].'/';
else
$config['path'] = SITEROOT.'themes/default/';
$config['list'] = get_list_defs($config['path']);
$config['browser_id'] = browser_ID();
$smarty = new Smarty();
$smarty->assign("config", $config);
$smarty->display($config['path'].'templates/left.tpl.html');
//$smarty->display($config['templs']['left']);
?>