From b62cfedfdd4b037aa4cdad3914c8a6a062a37fa0 Mon Sep 17 00:00:00 2001
From: quentusrex <quentusrex@ispconfig3>
Date: Thu, 30 Oct 2008 12:24:53 -0400
Subject: [PATCH] This should enable the courier maildrop quota system.
---
interface/web/sites/database_edit.php | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/interface/web/sites/database_edit.php b/interface/web/sites/database_edit.php
index 4309bdc..d9b0181 100644
--- a/interface/web/sites/database_edit.php
+++ b/interface/web/sites/database_edit.php
@@ -189,6 +189,23 @@
parent::onSubmit();
}
+ function onUpdate() {
+ global $app, $conf;
+
+ //* 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();
+
+ }
+
function onAfterInsert() {
global $app, $conf;
--
Gitblit v1.9.1