diff --git a/interface/web/sites/templates/web_vhost_domain_ssl.htm b/interface/web/sites/templates/web_vhost_domain_ssl.htm index 75bf9e68162eec0aa9c54cfa121add3cf271bdb0..e910e22b1c714c75b0d6ff524d71c86be436cbf2 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 8935713063338d801a62953ae677e8bd490c5c5f..27ece43ef50cbafc508f430963cbca3bb733519c 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(); }