From f17e5b0b58eb420c40ca37cde95fc91842a96f04 Mon Sep 17 00:00:00 2001 From: pedro_morgan <pedro_morgan@ispconfig3> Date: Fri, 17 Aug 2007 05:23:48 -0400 Subject: [PATCH] Tidied up app.inc.php * now php5 class * Inctroducted $_loaded_modules class var to silence "undefined property" error * Cleaned code to PEAR standards --- interface/web/client/client_edit.php | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/interface/web/client/client_edit.php b/interface/web/client/client_edit.php index 68b8d3a..473de4b 100644 --- a/interface/web/client/client_edit.php +++ b/interface/web/client/client_edit.php @@ -66,7 +66,7 @@ $username = addslashes($this->dataRecord["username"]); $password = addslashes($this->dataRecord["password"]); - $modules = 'mail'; + $modules = 'mail,sites,dns'; $startmodule = 'mail'; $usertheme = addslashes($this->dataRecord["usertheme"]); $type = 'user'; @@ -100,7 +100,9 @@ // password changed if($this->dataRecord["password"] != '') { $password = addslashes($this->dataRecord["password"]); + $client_id = $this->id; $sql = "UPDATE sys_user SET passwort = md5('$password') WHERE client_id = $client_id"; + $app->db->query($sql); } -- Gitblit v1.9.1