Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 822 Bytes
<?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']);
?>