add autologin for anonymous user as we need to have on community.egroupware.org

This commit is contained in:
Cornelius Weiß 2006-06-07 18:16:43 +00:00
parent 857c4bf685
commit fdebc495f5

View File

@ -99,10 +99,17 @@
if (!isset($GLOBALS['egw_info']['server']['default_domain']) || // allow to overwrite the default domain
!isset($GLOBALS['egw_domain'][$GLOBALS['egw_info']['server']['default_domain']]))
{
if(isset($GLOBALS['egw_domain'][$_SERVER['SERVER_NAME']]))
{
$GLOBALS['egw_info']['server']['default_domain'] = $_SERVER['SERVER_NAME'];
}
else
{
reset($GLOBALS['egw_domain']);
list($GLOBALS['egw_info']['server']['default_domain']) = each($GLOBALS['egw_domain']);
}
}
if (isset($_POST['login'])) // on login
{
$GLOBALS['login'] = $_POST['login'];