From d83fcfed014f35702a3d9b22b5c78c0292ca2b20 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 06 Jul 2008 11:26:51 -0400
Subject: [PATCH] - Added database server module.

---
 interface/web/sites/database_edit.php |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/interface/web/sites/database_edit.php b/interface/web/sites/database_edit.php
index 4309bdc..3dbaff8 100644
--- a/interface/web/sites/database_edit.php
+++ b/interface/web/sites/database_edit.php
@@ -189,6 +189,20 @@
 		parent::onSubmit();
 	}
 	
+	function onUpdate() {
+		global $app, $conf;
+		
+		//* Prevent that the database name 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 />';
+		}
+		unset($old_record);
+		
+		parent::onUpdate();
+		
+	}
+	
 	function onAfterInsert() {
 		global $app, $conf;
 		

--
Gitblit v1.9.1