From b7b461fc1482cfd073f324f29540f4ab97b9b3d0 Mon Sep 17 00:00:00 2001 From: derelict-pf Date: Sat, 19 Apr 2014 08:35:28 -0700 Subject: Add nohttpsforwards option to captive portal --- usr/local/www/services_captiveportal.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php index d51d8e4..efc8f20 100644 --- a/usr/local/www/services_captiveportal.php +++ b/usr/local/www/services_captiveportal.php @@ -160,6 +160,7 @@ if ($a_cp[$cpzone]) { $pconfig['preauthurl'] = strtolower($a_cp[$cpzone]['preauthurl']); $pconfig['blockedmacsurl'] = strtolower($a_cp[$cpzone]['blockedmacsurl']); $pconfig['certref'] = $a_cp[$cpzone]['certref']; + $pconfig['nohttpsforwards'] = isset($a_cp[$cpzone]['nohttpsforwards']); $pconfig['logoutwin_enable'] = isset($a_cp[$cpzone]['logoutwin_enable']); $pconfig['peruserbw'] = isset($a_cp[$cpzone]['peruserbw']); $pconfig['bwdefaultdn'] = $a_cp[$cpzone]['bwdefaultdn']; @@ -340,6 +341,7 @@ if ($_POST) { $newcp['bwdefaultdn'] = $_POST['bwdefaultdn']; $newcp['bwdefaultup'] = $_POST['bwdefaultup']; $newcp['certref'] = $_POST['certref']; + $newcp['nohttpsforwards'] = $_POST['nohttpsforwards'] ? true : false; $newcp['logoutwin_enable'] = $_POST['logoutwin_enable'] ? true : false; $newcp['nomacfilter'] = $_POST['nomacfilter'] ? true : false; $newcp['noconcurrentlogins'] = $_POST['noconcurrentlogins'] ? true : false; @@ -465,6 +467,7 @@ function enable_change(enable_change) { document.iform.radmac_format.disabled = radius_endis; document.iform.httpsname.disabled = https_endis; document.iform.certref.disabled = https_endis; + document.iform.nohttpsforwards.disabled = https_endis; document.iform.logoutwin_enable.disabled = endis; document.iform.nomacfilter.disabled = endis; document.iform.noconcurrentlogins.disabled = endis; @@ -976,6 +979,13 @@ function enable_change(enable_change) { + + + > +
+ + +
@@ -1088,4 +1098,4 @@ enable_change(false); - \ No newline at end of file + -- cgit v1.1