allow sitemgr to use an other domain then the default domain (first defined in the header.inc.php)

This commit is contained in:
Ralf Becker 2004-02-04 00:33:37 +00:00
parent 49726e4623
commit 891229149e

View File

@ -85,9 +85,12 @@
echo '<center><b>The administrator must upgrade the header.inc.php file before you can continue.</b></center>';
exit;
}
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'];