Project

General

Profile

« Previous | Next » 

Revision 29a6d3f3

Added by Peter Berbec about 7 years ago

Improve description, reorder

make ordering proper

View differences:

src/usr/local/www/system_advanced_admin.php
144 144

  
145 145
			unset($config['system']['webgui']['disablehttpredirect']);
146 146
		}
147
		
148
		if ($_POST['webgui-ocsp'] == "yes") {
149
			if ($config['system']['webgui']['ocsp-staple'] != true) {
147

  
148
		if ($_POST['webgui-hsts'] == "yes") {
149
			if ($config['system']['webgui']['disablehsts'] != true) {
150 150
				$restart_webgui = true;
151 151
			}
152 152

  
153
			$config['system']['webgui']['ocsp-staple'] = true;
153
			$config['system']['webgui']['disablehsts'] = true;
154 154
		} else {
155
			if ($config['system']['webgui']['ocsp-staple'] == true) {
155
			if ($config['system']['webgui']['disablehsts'] == true) {
156 156
				$restart_webgui = true;
157 157
			}
158 158

  
159
			unset($config['system']['webgui']['ocsp-staple']);
159
			unset($config['system']['webgui']['disablehsts']);
160 160
		}
161 161

  
162
		if ($_POST['webgui-hsts'] == "yes") {
163
			if ($config['system']['webgui']['disablehsts'] != true) {
162
		if ($_POST['webgui-ocsp'] == "yes") {
163
			if ($config['system']['webgui']['ocsp-staple'] != true) {
164 164
				$restart_webgui = true;
165 165
			}
166 166

  
167
			$config['system']['webgui']['disablehsts'] = true;
167
			$config['system']['webgui']['ocsp-staple'] = true;
168 168
		} else {
169
			if ($config['system']['webgui']['disablehsts'] == true) {
169
			if ($config['system']['webgui']['ocsp-staple'] == true) {
170 170
				$restart_webgui = true;
171 171
			}
172 172

  
173
			unset($config['system']['webgui']['disablehsts']);
173
			unset($config['system']['webgui']['ocsp-staple']);
174 174
		}
175

  
175
		
176 176
		if ($_POST['webgui-login-messages'] == "yes") {
177 177
			$config['system']['webgui']['quietlogin'] = true;
178 178
		} else {
......
417 417
	'OCSP Must Staple',
418 418
	'Enable OCSP Stapling in nginx',
419 419
	$pconfig['ocsp-staple']
420
))->setHelp('When this is checked, OCSP Stapling is enabled in nginx');
420
))->setHelp('When this is checked, OCSP Stapling is enabled in nginx. Remember to '.
421
	'upload your certificate as a full chain, not just the certificate, or this option '.
422
	'will be ignored by nginx.');
421 423

  
422 424
$section->addInput(new Form_Checkbox(
423 425
	'loginautocomplete',

Also available in: Unified diff