From e8a29cf134f7df1a1e7637083f6d7adf64949b7c Mon Sep 17 00:00:00 2001
From: jmontoya <jmontoya@ispconfig3>
Date: Wed, 04 Aug 2010 12:57:28 -0400
Subject: [PATCH] Adding new functions to the Remoting class

---
 interface/web/tools/user_settings.php |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/interface/web/tools/user_settings.php b/interface/web/tools/user_settings.php
index d618ef0..d663814 100644
--- a/interface/web/tools/user_settings.php
+++ b/interface/web/tools/user_settings.php
@@ -64,6 +64,7 @@
 				
 				// Importing ID
                 $this->id = $_SESSION['s']['user']['userid'];
+				$_POST['id'] = $_SESSION['s']['user']['userid'];
 
                 if(count($_POST) > 1) {
                         $this->dataRecord = $_POST;
@@ -72,6 +73,10 @@
                         $this->onShow();
                 }
         }
+	
+	function onInsert() {
+		die('No inserts allowed.');
+	}
 		
 	function onBeforeUpdate() {
 		global $app, $conf;
@@ -79,7 +84,8 @@
 		if($_POST['passwort'] != $_POST['passwort2']) {
 			$app->tform->errorMessage = $app->tform->lng('password_mismatch');
 		}
-		
+		$_SESSION['s']['user']['language'] = $_POST['language'];
+		$_SESSION['s']['language'] = $_POST['language'];
 	}
 	
 	
@@ -88,4 +94,4 @@
 $page = new page_action;
 $page->onLoad();
 
-?>
\ No newline at end of file
+?>

--
Gitblit v1.9.1