mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +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',
|
'currentapp' => 'login',
|
||||||
'noheader' => True
|
'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'];
|
$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']);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user