From 620df024f3d8960a89eb4ed71d3ea61e2b9aa3db Mon Sep 17 00:00:00 2001 From: quentusrex <quentusrex@ispconfig3> Date: Thu, 30 Oct 2008 13:59:40 -0400 Subject: [PATCH] Now a client can view e-mail filters created by admin, but the client can't edit them. The client can submit a change, but it isn't input in the database, nor is the client told that the changes aren't made. --- interface/web/sites/database_edit.php | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/interface/web/sites/database_edit.php b/interface/web/sites/database_edit.php index 3dbaff8..d9b0181 100644 --- a/interface/web/sites/database_edit.php +++ b/interface/web/sites/database_edit.php @@ -192,11 +192,14 @@ function onUpdate() { global $app, $conf; - //* Prevent that the database name is changed + //* Prevent that the database name and charset is changed $old_record = $app->tform->getDataRecord($this->id); if($old_record["database_name"] != $this->dataRecord["database_name"]) { $app->tform->errorMessage .= $app->tform->wordbook["database_name_change_txt"].'<br />'; } + if($old_record["database_charset"] != $this->dataRecord["database_charset"]) { + $app->tform->errorMessage .= $app->tform->wordbook["database_charset_change_txt"].'<br />'; + } unset($old_record); parent::onUpdate(); -- Gitblit v1.9.1