mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
Special case for empty or bad header.inc.php file
This commit is contained in:
parent
3b2bf54d07
commit
f1b4d8ea6a
11
login.php
11
login.php
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user