From a568ba9cf8491d048696c754ade384fd5e3bdf7d Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sat, 28 Mar 2009 04:53:43 -0400
Subject: [PATCH] Fixed a lot of errors (wrong keys) in the sql dump.

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

diff --git a/interface/web/sites/database_edit.php b/interface/web/sites/database_edit.php
index 485fb80..28f62f6 100644
--- a/interface/web/sites/database_edit.php
+++ b/interface/web/sites/database_edit.php
@@ -173,6 +173,15 @@
 			$app->tpl->setVar("database_name_prefix", $dbname_prefix);
 			$app->tpl->setVar("database_user_prefix", $dbuser_prefix);
 		}
+		
+		if($this->id > 0) {
+			//* we are editing a existing record
+			$app->tpl->setVar("edit_disabled", 1);
+			$app->tpl->setVar("server_id_value", $this->dataRecord["server_id"]);
+			$app->tpl->setVar("database_charset_value", $this->dataRecord["database_charset"]);
+		} else {
+			$app->tpl->setVar("edit_disabled", 0);
+		}
 
 		parent::onShowEnd();
 	}

--
Gitblit v1.9.1