Project

General

Profile

« Previous | Next » 

Revision 43656206

Added by Chris Buechler over 11 years ago

Should to go master, not RELENG_2_1. Revert "Merge pull request #882 from derelict-pf/cp-nohttpsforwards"

This reverts commit f8d1587b6e2cd8441fa16733a02af25257fc7708, reversing
changes made to 51922cb793b83bf7d22fdaa47205fd59b4d70e87.

View differences:

usr/local/www/services_captiveportal.php
106 106
	$pconfig['httpsname'] = $a_cp[$cpzone]['httpsname'];
107 107
	$pconfig['preauthurl'] = strtolower($a_cp[$cpzone]['preauthurl']);
108 108
	$pconfig['certref'] = $a_cp[$cpzone]['certref'];
109
	$pconfig['nohttpsforwards'] = isset($a_cp[$cpzone]['nohttpsforwards']);
110 109
	$pconfig['logoutwin_enable'] = isset($a_cp[$cpzone]['logoutwin_enable']);
111 110
	$pconfig['peruserbw'] = isset($a_cp[$cpzone]['peruserbw']);
112 111
	$pconfig['bwdefaultdn'] = $a_cp[$cpzone]['bwdefaultdn'];
......
284 283
		$newcp['bwdefaultdn'] = $_POST['bwdefaultdn'];
285 284
		$newcp['bwdefaultup'] = $_POST['bwdefaultup'];
286 285
		$newcp['certref'] = $_POST['certref'];
287
		$newcp['nohttpsforwards'] = $_POST['nohttpsforwards'] ? true : false;
288 286
		$newcp['logoutwin_enable'] = $_POST['logoutwin_enable'] ? true : false;
289 287
		$newcp['nomacfilter'] = $_POST['nomacfilter'] ? true : false;
290 288
		$newcp['noconcurrentlogins'] = $_POST['noconcurrentlogins'] ? true : false;
......
408 406
	document.iform.radmac_format.disabled = radius_endis;
409 407
	document.iform.httpsname.disabled = https_endis;
410 408
	document.iform.certref.disabled = https_endis;
411
	document.iform.nohttpsforwards.disabled = https_endis;
412 409
	document.iform.logoutwin_enable.disabled = endis;
413 410
	document.iform.nomacfilter.disabled = endis;
414 411
	document.iform.noconcurrentlogins.disabled = endis;
......
908 905
			<?php endif; ?>
909 906
		</td>
910 907
	</tr>
911
	<tr>
912
      <td valign="top" class="vncell"><?=gettext("Disable HTTPS forwards"); ?></td>
913
      <td class="vtable">
914
	<input name="nohttpsforwards" type="checkbox" class="formfld" id="nohttpsforwards" value="yes" <?php if ($pconfig['nohttpsforwards']) echo "checked"; ?>>
915
	<strong><?=gettext("Disable HTTPS forwards"); ?></strong><br>
916
	<?=gettext("If this option is set, attempts to connect to SSL/HTTPS (Port 443) sites will not be forwarded to the captive portal.  This prevents certificate errors from being presented to the user even if HTTPS logins are enabled.  Users must attempt a connecton to an HTTP (Port 80) site to get forwarded to the captive portal. If HTTPS logins are enabled, the user will be redirected to the HTTPS login page."); ?></td>
917
	</tr>
918 908
	<tr>
919 909
		<td width="22%" valign="top" class="vncell"><?=gettext("Portal page contents"); ?></td>
920 910
		<td width="78%" class="vtable">

Also available in: Unified diff