From dcf94ebdc9644ac2df05933c480743dc1a25e214 Mon Sep 17 00:00:00 2001 From: Patrick Anders <p.anders@timmehosting.de> Date: Fri, 12 Dec 2014 15:09:50 +0100 Subject: [PATCH] web_vhost_domain_ssl: check if spdy is enabled on server configuration --- interface/web/sites/templates/web_vhost_domain_ssl.htm | 2 ++ interface/web/sites/web_vhost_domain_edit.php | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/interface/web/sites/templates/web_vhost_domain_ssl.htm b/interface/web/sites/templates/web_vhost_domain_ssl.htm index 75bf9e6816..e910e22b1c 100644 --- a/interface/web/sites/templates/web_vhost_domain_ssl.htm +++ b/interface/web/sites/templates/web_vhost_domain_ssl.htm @@ -64,12 +64,14 @@ {tmpl_var name='ssl_action'} </select> </div> + {tmpl_if name="is_spdy_enabled"} <div class="ctrlHolder"> <p class="label">{tmpl_var name='enable_spdy_txt'}</p> <div class="multiField"> {tmpl_var name="enable_spdy"} </div> </div> + {/tmpl_if} </fieldset> <input type="hidden" name="id" value="{tmpl_var name='id'}"> diff --git a/interface/web/sites/web_vhost_domain_edit.php b/interface/web/sites/web_vhost_domain_edit.php index 8935713063..27ece43ef5 100644 --- a/interface/web/sites/web_vhost_domain_edit.php +++ b/interface/web/sites/web_vhost_domain_edit.php @@ -699,6 +699,8 @@ class page_action extends tform_actions { $app->tpl->setVar('vhostdomain_type', $this->_vhostdomain_type); + $app->tpl->setVar('is_spdy_enabled', ($web_config['enable_spdy'] === 'y')); + parent::onShowEnd(); } @@ -1068,6 +1070,10 @@ class page_action extends tform_actions { } } + if($web_config['enable_spdy'] === 'n') { + unset($app->tform->formDef["tabs"]['ssl']['fields']['enable_spdy']); + } + parent::onSubmit(); } -- GitLab