From ed3540db3059a95cc3d9347ae8ff5b35eccb45b5 Mon Sep 17 00:00:00 2001 From: jengo Date: Thu, 28 Sep 2000 11:48:58 +0000 Subject: [PATCH] Cleaned up uneeded code and fixed a SQL error in the sessions table. --- admin/editaccount.php | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/admin/editaccount.php b/admin/editaccount.php index ebb2324df8..090dfbfb11 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -58,8 +58,8 @@ if ($n_passwd) { $phpgw->db->query("update accounts set account_pwd='" . md5($n_passwd) . "', " . "account_lastpwd_change='" . time() . "' where account_lid='" . "$lid'"); - $phpgw->db->query("update sessions set passwd='" . addslashes($n_passwd) - . "' where loginid='$lid'"); + $phpgw->db->query("update sessions set session_pwd='" . addslashes($n_passwd) + . "' where session_lid='$lid'"); } while ($permission = each($new_permissions)) { if ($phpgw_info["apps"][$permission[0]]["enabled"]) { @@ -171,7 +171,7 @@ $perm_display[$i][1] = $permission[1]["title"]; $i++; } - } + } for ($i=0;$i<200;) { // The $i<200 is only used for a brake if (! $perm_display[$i][1]) break; @@ -193,20 +193,6 @@ echo ">"; $i++; } - -/* - echo "" . lang("Anonymous user") . ""; - - echo "" . lang("Manager") . ""; -*/ ?>