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