From a5b276444c1e2fa9c960131723ffd6955fb92f48 Mon Sep 17 00:00:00 2001
From: karailiev <karailiev@ispconfig3>
Date: Tue, 11 Aug 2009 15:20:21 -0400
Subject: [PATCH] ticket 827 For some reason till has made the version number not to load when no user is logged in. Due to ajax login the version number remains not loaded even after login until the whole page is reloaded. I didn't find any comment why is this done, so I revert it.
---
interface/web/tools/user_settings.php | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/interface/web/tools/user_settings.php b/interface/web/tools/user_settings.php
index eb52f58..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,14 +73,19 @@
$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');
}
-
+ $_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