Update index.php
This commit is contained in:
parent
e02df01ed0
commit
01a23a638f
@ -30,6 +30,9 @@ define("SECURITY", 1);
|
|||||||
// Include our configuration (holding defines for the requires)
|
// Include our configuration (holding defines for the requires)
|
||||||
if (!include_once(BASEPATH . 'include/config/global.inc.php')) die('Unable to load site configuration');
|
if (!include_once(BASEPATH . 'include/config/global.inc.php')) die('Unable to load site configuration');
|
||||||
|
|
||||||
|
// Our default template to load, pages can overwrite this later
|
||||||
|
$master_template = 'master.tpl';
|
||||||
|
|
||||||
// Start a session
|
// Start a session
|
||||||
session_set_cookie_params(time()+$config['cookie']['duration'], $config['cookie']['path'], $config['cookie']['domain'], $config['cookie']['secure'], $config['cookie']['httponly']);
|
session_set_cookie_params(time()+$config['cookie']['duration'], $config['cookie']['path'], $config['cookie']['domain'], $config['cookie']['secure'], $config['cookie']['httponly']);
|
||||||
session_start();
|
session_start();
|
||||||
@ -93,7 +96,7 @@ $smarty->assign('DebuggerInfo', $debug->getDebugInfo());
|
|||||||
$smarty->assign('RUNTIME', (microtime(true) - $dStartTime) * 1000);
|
$smarty->assign('RUNTIME', (microtime(true) - $dStartTime) * 1000);
|
||||||
|
|
||||||
// Display our page
|
// Display our page
|
||||||
if (!@$supress_master) $smarty->display("master.tpl", $smarty_cache_key);
|
if (!@$supress_master) $smarty->display($master_template, $smarty_cache_key);
|
||||||
|
|
||||||
// Unset any temporary values here
|
// Unset any temporary values here
|
||||||
unset($_SESSION['POPUP']);
|
unset($_SESSION['POPUP']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user