From 2a05447886cd0592c476014d95130f25ac5c8c95 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 9 Oct 2005 12:02:24 +0000 Subject: [PATCH] fixed domain-selection via url --- login.php | 2 +- logout.php | 2 +- phpgwapi/inc/functions.inc.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/login.php b/login.php index 0626febe6b..821d16c040 100755 --- a/login.php +++ b/login.php @@ -384,7 +384,7 @@ if(!$GLOBALS['egw_info']['server']['show_domain_selectbox']) { /* trick to make domain section disapear */ - $tmpl->set_var('domain_selection',''); + $tmpl->set_var('domain_selection',''); } foreach($_GET as $name => $value) diff --git a/logout.php b/logout.php index e8cfd0ecb4..d7c60ba6de 100755 --- a/logout.php +++ b/logout.php @@ -64,5 +64,5 @@ $GLOBALS['egw']->session->phpgw_setcookie(EGW_PHPSESSID); } - $GLOBALS['egw']->redirect($GLOBALS['egw_info']['server']['webserver_url'].'/login.php?cd=1'); + $GLOBALS['egw']->redirect($GLOBALS['egw_info']['server']['webserver_url'].'/login.php?cd=1&domain='.$GLOBALS['egw_info']['user']['domain']); ?> diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 1e042284cf..4571caeeaa 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -107,7 +107,7 @@ } else // on "normal" pageview { - $GLOBALS['egw_info']['user']['domain'] = $_REQUEST['domain']; + $GLOBALS['egw_info']['user']['domain'] = get_var('domain',array('GET','COOKIE'),false); } if (@isset($GLOBALS['egw_domain'][$GLOBALS['egw_info']['user']['domain']]))