auto-redirect to setup if missing header.inc.php

This commit is contained in:
seek3r 2002-02-17 08:07:38 +00:00
parent 9eece2fd34
commit 0975a7736a

View File

@ -20,7 +20,17 @@
'currentapp' => 'login', 'currentapp' => 'login',
'noheader' => True 'noheader' => True
); );
if(file_exists('./header.inc.php'))
{
include('./header.inc.php'); include('./header.inc.php');
}
else
{
Header('Location: setup/index.php');
exit;
}
$GLOBALS['phpgw_info']['server']['template_dir'] = PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info']['login_template_set']; $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']); $tmpl = CreateObject('phpgwapi.Template', $GLOBALS['phpgw_info']['server']['template_dir']);