From d53ea39b9303ecdbb841d8ba22269a0c1705230e Mon Sep 17 00:00:00 2001 From: seek3r Date: Fri, 29 Sep 2000 20:41:34 +0000 Subject: [PATCH] fixed login page --- login.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/login.php b/login.php index 6d3d58b302..2d94dec215 100755 --- a/login.php +++ b/login.php @@ -97,18 +97,18 @@ } } else { -// if ($last_loginid) { -// $phpgw->db->query("select preference_value from preferences where preference_owner='$last_loginid' " -// . "and preference_name='lang'"); -// $phpgw->db->next_record(); -// if (! $phpgw->db->f("preference_value")) { + if ($last_loginid) { + $phpgw->db->query("select preference_value from preferences where preference_owner='$last_loginid' " + . "and preference_name='lang'"); + $phpgw->db->next_record(); + if (! $phpgw->db->f("preference_value")) { $users_lang = "en"; // } else { -// $users_lang = $phpgw->db->f("value"); +// $users_lang = $phpgw->db->f("preference_value"); // include($phpgw_info["server"]["include_root"] . "/lang/$users_lang/" . $users_lang // . "_login.inc.php"); -// } -// } + } + } } $tmpl->set_var("login_url", $phpgw_info["server"]["webserver_url"] . "/login.php"); $tmpl->set_var("website_title", $phpgw_info["server"]["site_title"]);