Special case for empty or bad header.inc.php file

This commit is contained in:
Miles Lott 2003-11-25 23:03:59 +00:00
parent 3b2bf54d07
commit f1b4d8ea6a

View File

@ -25,7 +25,8 @@
if(file_exists('./header.inc.php'))
{
include('./header.inc.php');
if(function_exists('CreateObject'))
{
$GLOBALS['phpgw']->sessions = CreateObject('phpgwapi.sessions');
}
else
@ -33,6 +34,12 @@
Header('Location: setup/index.php');
exit;
}
}
else
{
Header('Location: setup/index.php');
exit;
}
$GLOBALS['phpgw_info']['server']['template_dir'] = PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info']['login_template_set'];
$tmpl = CreateObject('phpgwapi.Template', $GLOBALS['phpgw_info']['server']['template_dir']);