mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
allow sitemgr to use an other domain then the default domain (first defined in the header.inc.php)
This commit is contained in:
parent
49726e4623
commit
891229149e
@ -85,9 +85,12 @@
|
||||
echo '<center><b>The administrator must upgrade the header.inc.php file before you can continue.</b></center>';
|
||||
exit;
|
||||
}
|
||||
reset($GLOBALS['phpgw_domain']);
|
||||
list($GLOBALS['phpgw_info']['server']['default_domain']) = each($GLOBALS['phpgw_domain']);
|
||||
|
||||
if (!isset($GLOBALS['phpgw_info']['server']['default_domain']) || // allow to overwrite the default domain
|
||||
!isset($GLOBALS['phpgw_domain'][$GLOBALS['phpgw_info']['server']['default_domain']]))
|
||||
{
|
||||
reset($GLOBALS['phpgw_domain']);
|
||||
list($GLOBALS['phpgw_info']['server']['default_domain']) = each($GLOBALS['phpgw_domain']);
|
||||
}
|
||||
if (isset($_POST['login'])) // on login
|
||||
{
|
||||
$GLOBALS['login'] = $_POST['login'];
|
||||
|
Loading…
Reference in New Issue
Block a user