From be0454ed548c0076bbb84a2f31db88114b9edd6e Mon Sep 17 00:00:00 2001
From: karailiev <karailiev@ispconfig3>
Date: Thu, 20 Nov 2008 15:49:46 -0500
Subject: [PATCH] * cleanup config.inc.php - removed duplicated rows, tidier comments
---
interface/web/tools/user_settings.php | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/interface/web/tools/user_settings.php b/interface/web/tools/user_settings.php
index eb52f58..9d75347 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,12 +73,16 @@
$this->onShow();
}
}
+
+ function onInsert() {
+ die('No inserts allowed.');
+ }
function onBeforeUpdate() {
global $app, $conf;
if($_POST['passwort'] != $_POST['passwort2']) {
- $app->tform->errorMessage = 'The passwords in the second password field does not match the first password.';
+ $app->tform->errorMessage = $app->tform->lng('password_mismatch');
}
}
--
Gitblit v1.9.1