|
|
@ -705,6 +705,15 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</fieldset> |
|
|
|
</fieldset> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<fieldset class="settings"> |
|
|
|
|
|
|
|
<legend><input type="checkbox" id="use_alt_webui_checkbox" onclick="updateAlternativeWebUISettings();" /> |
|
|
|
|
|
|
|
<label for="use_alt_webui_checkbox">QBT_TR(Use alternative Web UI)QBT_TR[CONTEXT=OptionsDialog]</label></legend> |
|
|
|
|
|
|
|
<div class="formRow"> |
|
|
|
|
|
|
|
<label for="webui_files_location_textarea">QBT_TR(Files location:)QBT_TR[CONTEXT=OptionsDialog]</label> |
|
|
|
|
|
|
|
<input type="text" id="webui_files_location_textarea" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</fieldset> |
|
|
|
|
|
|
|
|
|
|
|
<fieldset class="settings"> |
|
|
|
<fieldset class="settings"> |
|
|
|
<legend>QBT_TR(Security)QBT_TR[CONTEXT=OptionsDialog]</legend> |
|
|
|
<legend>QBT_TR(Security)QBT_TR[CONTEXT=OptionsDialog]</legend> |
|
|
|
<div class="formRow"> |
|
|
|
<div class="formRow"> |
|
|
@ -1005,6 +1014,11 @@ |
|
|
|
$('bypass_auth_subnet_whitelist_textarea').setProperty('disabled', !isBypassAuthSubnetWhitelistEnabled); |
|
|
|
$('bypass_auth_subnet_whitelist_textarea').setProperty('disabled', !isBypassAuthSubnetWhitelistEnabled); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateAlternativeWebUISettings = function() { |
|
|
|
|
|
|
|
var isUseAlternativeWebUIEnabled = $('use_alt_webui_checkbox').getProperty('checked'); |
|
|
|
|
|
|
|
$('webui_files_location_textarea').setProperty('disabled', !isUseAlternativeWebUIEnabled); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
updateHostHeaderValidationSettings = function() { |
|
|
|
updateHostHeaderValidationSettings = function() { |
|
|
|
var isHostHeaderValidationEnabled = $('host_header_validation_checkbox').getProperty('checked'); |
|
|
|
var isHostHeaderValidationEnabled = $('host_header_validation_checkbox').getProperty('checked'); |
|
|
|
$('webui_domain_textarea').setProperty('disabled', !isHostHeaderValidationEnabled); |
|
|
|
$('webui_domain_textarea').setProperty('disabled', !isHostHeaderValidationEnabled); |
|
|
@ -1286,6 +1300,11 @@ |
|
|
|
$('bypass_auth_subnet_whitelist_textarea').setProperty('value', pref.bypass_auth_subnet_whitelist); |
|
|
|
$('bypass_auth_subnet_whitelist_textarea').setProperty('value', pref.bypass_auth_subnet_whitelist); |
|
|
|
updateBypasssAuthSettings(); |
|
|
|
updateBypasssAuthSettings(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Use alternative Web UI |
|
|
|
|
|
|
|
$('use_alt_webui_checkbox').setProperty('checked', pref.alternative_webui_enabled); |
|
|
|
|
|
|
|
$('webui_files_location_textarea').setProperty('value', pref.alternative_webui_path); |
|
|
|
|
|
|
|
updateAlternativeWebUISettings(); |
|
|
|
|
|
|
|
|
|
|
|
// Security |
|
|
|
// Security |
|
|
|
$('clickjacking_protection_checkbox').setProperty('checked', pref.web_ui_clickjacking_protection_enabled); |
|
|
|
$('clickjacking_protection_checkbox').setProperty('checked', pref.web_ui_clickjacking_protection_enabled); |
|
|
|
$('csrf_protection_checkbox').setProperty('checked', pref.web_ui_csrf_protection_enabled); |
|
|
|
$('csrf_protection_checkbox').setProperty('checked', pref.web_ui_csrf_protection_enabled); |
|
|
@ -1590,6 +1609,10 @@ |
|
|
|
settings.set('bypass_auth_subnet_whitelist_enabled', $('bypass_auth_subnet_whitelist_checkbox').getProperty('checked')); |
|
|
|
settings.set('bypass_auth_subnet_whitelist_enabled', $('bypass_auth_subnet_whitelist_checkbox').getProperty('checked')); |
|
|
|
settings.set('bypass_auth_subnet_whitelist', $('bypass_auth_subnet_whitelist_textarea').getProperty('value')); |
|
|
|
settings.set('bypass_auth_subnet_whitelist', $('bypass_auth_subnet_whitelist_textarea').getProperty('value')); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Use alternative Web UI |
|
|
|
|
|
|
|
settings.set('alternative_webui_enabled', $('use_alt_webui_checkbox').getProperty('checked')); |
|
|
|
|
|
|
|
settings.set('alternative_webui_path', $('webui_files_location_textarea').getProperty('value')); |
|
|
|
|
|
|
|
|
|
|
|
settings.set('web_ui_clickjacking_protection_enabled', $('clickjacking_protection_checkbox').getProperty('checked')); |
|
|
|
settings.set('web_ui_clickjacking_protection_enabled', $('clickjacking_protection_checkbox').getProperty('checked')); |
|
|
|
settings.set('web_ui_csrf_protection_enabled', $('csrf_protection_checkbox').getProperty('checked')); |
|
|
|
settings.set('web_ui_csrf_protection_enabled', $('csrf_protection_checkbox').getProperty('checked')); |
|
|
|
settings.set('web_ui_host_header_validation_enabled', $('host_header_validation_checkbox').getProperty('checked')); |
|
|
|
settings.set('web_ui_host_header_validation_enabled', $('host_header_validation_checkbox').getProperty('checked')); |
|
|
|