From 8e38755040c6c2073f92f0ffb087da530d0e7a0a Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Mon, 12 Nov 2012 11:49:26 -0500 Subject: [PATCH] - Changed a German translation. - Extended SEO redirect check for subdomains/alias domains. --- interface/web/sites/web_domain_edit.php | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/interface/web/sites/web_domain_edit.php b/interface/web/sites/web_domain_edit.php index b8db757..758c05f 100644 --- a/interface/web/sites/web_domain_edit.php +++ b/interface/web/sites/web_domain_edit.php @@ -80,6 +80,7 @@ $client = $app->db->queryOneRecord("SELECT client.default_webserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); $app->tpl->setVar("server_id_value", $client['default_webserver']); } + $app->tform->formDef['tabs']['domain']['readonly'] = false; parent::onShowNew(); } @@ -378,6 +379,16 @@ if($nginx_directive_snippets_txt == '') $nginx_directive_snippets_txt = '------'; $app->tpl->setVar("nginx_directive_snippets_txt",$nginx_directive_snippets_txt); } + + $proxy_directive_snippets = $app->db->queryAllRecords("SELECT * FROM directive_snippets WHERE type = 'proxy' AND active = 'y'"); + $proxy_directive_snippets_txt = ''; + if(is_array($proxy_directive_snippets) && !empty($proxy_directive_snippets)){ + foreach($proxy_directive_snippets as $proxy_directive_snippet){ + $proxy_directive_snippets_txt .= '<a href="javascript:void(0);" class="addPlaceholderContent">['.$proxy_directive_snippet['name'].']<pre class="addPlaceholderContent" style="display:none;">'.$proxy_directive_snippet['snippet'].'</pre></a> '; + } + } + if($proxy_directive_snippets_txt == '') $proxy_directive_snippets_txt = '------'; + $app->tpl->setVar("proxy_directive_snippets_txt",$proxy_directive_snippets_txt); } $ssl_domain_select = ''; @@ -432,7 +443,7 @@ if ($domain['domain'] == $this->dataRecord["domain"]) { $domain_select .= " selected"; } - $domain_select .= ">" . $domain['domain'] . "</option>\r\n"; + $domain_select .= ">" . $app->functions->idn_decode($domain['domain']) . "</option>\r\n"; } } else { @@ -467,7 +478,7 @@ $sql = "SELECT domain_id, domain FROM domain WHERE domain_id = " . $app->functions->intval($this->dataRecord['domain']); if ($_SESSION["s"]["user"]["typ"] != 'admin') { - $sql .= "AND sys_groupid =" . $client_group_id; + $sql .= " AND sys_groupid =" . $client_group_id; } $domain_check = $app->db->queryOneRecord($sql); if(!$domain_check) { -- Gitblit v1.9.1