From 05e71c79c93801ab6a8262fbd93d1af3d5bdace4 Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Sun, 19 Aug 2007 00:31:55 -0400
Subject: [PATCH] * Made login/index class php5 * Also replaces " with ' 

---
 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