forked from extern/egroupware
Special case for empty or bad header.inc.php file
This commit is contained in:
parent
3b2bf54d07
commit
f1b4d8ea6a
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user