Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 773 Bytes
<?php
session_start();
define('SITEROOT', './'); //getcwd():c:/projects/admin/
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/header.tpl.html');
//$smarty->display($config['templs']['header']);
?>