From e791e76c465ecc03e1e62bb2e7e650815e79eb16 Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Sat, 28 Dec 2013 03:19:36 -0500
Subject: [PATCH] Merge branch 'master' of git.ispconfig.org:ispconfig/ispconfig3

---
 interface/web/dns/dns_wizard.php |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/interface/web/dns/dns_wizard.php b/interface/web/dns/dns_wizard.php
index 74e8c1c..ce36f70 100644
--- a/interface/web/dns/dns_wizard.php
+++ b/interface/web/dns/dns_wizard.php
@@ -49,12 +49,10 @@
 if (isset($_POST['server_id'])) {
 	$server_id = $app->functions->intval($_POST['server_id']);
 	$post_server_id = true;
-}
-else if (isset($_POST['server_id_value'])) {
-		$server_id = $app->functions->intval($_POST['server_id_value']);
-		$post_server_id = true;
-	}
-else {
+} elseif (isset($_POST['server_id_value'])) {
+	$server_id = $app->functions->intval($_POST['server_id_value']);
+	$post_server_id = true;
+} else {
 	$server_id = 1;
 	$post_server_id = false;
 }
@@ -122,8 +120,8 @@
 }
 
 if($_SESSION["s"]["user"]["typ"] != 'admin')
-
-	$client_group_id = $app->functions->intval($_SESSION["s"]["user"]["default_group"]);{
+{
+	$client_group_id = $app->functions->intval($_SESSION["s"]["user"]["default_group"]);
 	$client_dns = $app->db->queryOneRecord("SELECT dns_servers FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
 
 	$client_dns['dns_servers_ids'] = explode(',', $client_dns['dns_servers']);
@@ -247,7 +245,7 @@
 		$public_key=$app->db->queryOneRecord("SELECT dkim_public FROM mail_domain WHERE domain = '".$app->db->quote($_POST['domain'])."' AND dkim = 'y' AND ".$app->tform->getAuthSQL('r'));
 		if ($public_key!='') {
 			$dns_record=str_replace(array("\r\n", "\n", "\r", "-----BEGIN PUBLIC KEY-----", "-----END PUBLIC KEY-----"), '', $public_key['dkim_public']);
-			$tpl_content = str_replace('{DKIM}', 'TXT|default._domainkey.'.$_POST['domain'].'.|v=DKIM1; t=s; p='.$dns_record, $tpl_content);
+			$tpl_content = str_replace('TXT|'.$_POST['domain'].'.|{DKIM}', 'TXT|default._domainkey.'.$_POST['domain'].'.|v=DKIM1; t=s; p='.$dns_record, $tpl_content);
 		}
 	}
 

--
Gitblit v1.9.1