mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
auto-redirect to setup if missing header.inc.php
This commit is contained in:
parent
9eece2fd34
commit
0975a7736a
12
login.php
12
login.php
@ -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']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user