diff --git a/login.php b/login.php index a45f674796..83729d6562 100755 --- a/login.php +++ b/login.php @@ -44,6 +44,7 @@ $tmpl->pfp('loginout','login_form'); exit; } + $tmpl->set_file(array('login_form' => 'login.tpl')); // !! NOTE !! // Do NOT and I repeat, do NOT touch ANYTHING to do with lang in this file. @@ -68,15 +69,6 @@ } */ - if (! $deny_login && ! $GLOBALS['phpgw_info']['server']['show_domain_selectbox']) - { - $tmpl->set_file(array('login_form' => 'login.tpl')); - } - elseif ($GLOBALS['phpgw_info']['server']['show_domain_selectbox']) - { - $tmpl->set_file(array('login_form' => 'login_selectdomain.tpl')); - } - function check_logoutcode($code) { switch($code) @@ -235,10 +227,11 @@ } } + $domain_select = ' '; $last_loginid = $_COOKIE['last_loginid']; if ($GLOBALS['phpgw_info']['server']['show_domain_selectbox']) { - $domain_select = ''; // For security ... just in case + $domain_select = "\n"; } elseif ($last_loginid !== '') { @@ -261,6 +254,7 @@ $last_loginid .= '@' . $_COOKIE['last_domain']; } } + $tmpl->set_var('select_domain',$domain_select); foreach($_GET as $name => $value) { diff --git a/phpgwapi/templates/default/login.tpl b/phpgwapi/templates/default/login.tpl index 6ec9b73629..2b5c7f4866 100644 --- a/phpgwapi/templates/default/login.tpl +++ b/phpgwapi/templates/default/login.tpl @@ -4,7 +4,7 @@
- + @@ -33,21 +33,23 @@{cd} | +{cd} | |||
{lang_username}: | + | {select_domain} | ||
{lang_password}: | + | |||
+ | ||||
phpGroupWare {version} | +eGroupWare {version} |
-
- -
-
|
-
- - - - -