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,8 +20,18 @@
'currentapp' => 'login',
'noheader' => True
);
include('./header.inc.php');
if(file_exists('./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'];
$tmpl = CreateObject('phpgwapi.Template', $GLOBALS['phpgw_info']['server']['template_dir']);