From b18e2debf2dfa964734e51346758d18a04e6a011 Mon Sep 17 00:00:00 2001
From: torusturtle <torusturtle@ispconfig3>
Date: Sat, 14 Mar 2009 08:49:25 -0400
Subject: [PATCH] FS#586 - naming of password strength test module

---
 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