From f1b4d8ea6a3ed7454dedfb3f77d72c794338d37c Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Tue, 25 Nov 2003 23:03:59 +0000 Subject: [PATCH] Special case for empty or bad header.inc.php file --- login.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/login.php b/login.php index 296df0e35a..ffcf2dd1f1 100755 --- a/login.php +++ b/login.php @@ -25,8 +25,15 @@ if(file_exists('./header.inc.php')) { - include('./header.inc.php'); - $GLOBALS['phpgw']->sessions = CreateObject('phpgwapi.sessions'); + if(function_exists('CreateObject')) + { + $GLOBALS['phpgw']->sessions = CreateObject('phpgwapi.sessions'); + } + else + { + Header('Location: setup/index.php'); + exit; + } } else {