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,8 +25,15 @@
if(file_exists('./header.inc.php')) if(file_exists('./header.inc.php'))
{ {
include('./header.inc.php'); if(function_exists('CreateObject'))
$GLOBALS['phpgw']->sessions = CreateObject('phpgwapi.sessions'); {
$GLOBALS['phpgw']->sessions = CreateObject('phpgwapi.sessions');
}
else
{
Header('Location: setup/index.php');
exit;
}
} }
else else
{ {