summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-09-12 09:42:25 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-09-12 09:42:25 -0300
commit2f1548d69f5ca0e0427caf18e2c391649265bcd7 (patch)
tree56a7bc17ec866112932aad4577d8c617e6840c88 /usr/local/www/services_captiveportal.php
parent3b2769be3869c42f2e20413b358f11926de65ca9 (diff)
downloadpfsense-2f1548d69f5ca0e0427caf18e2c391649265bcd7.zip
pfsense-2f1548d69f5ca0e0427caf18e2c391649265bcd7.tar.gz
Add a redirect url option to blocked macs
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rwxr-xr-xusr/local/www/services_captiveportal.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index 306d730..e41c102 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -105,6 +105,7 @@ if ($a_cp[$cpzone]) {
$pconfig['httpslogin_enable'] = isset($a_cp[$cpzone]['httpslogin']);
$pconfig['httpsname'] = $a_cp[$cpzone]['httpsname'];
$pconfig['preauthurl'] = strtolower($a_cp[$cpzone]['preauthurl']);
+ $pconfig['blockedmacsurl'] = strtolower($a_cp[$cpzone]['blockedmacsurl']);
$pconfig['certref'] = $a_cp[$cpzone]['certref'];
$pconfig['logoutwin_enable'] = isset($a_cp[$cpzone]['logoutwin_enable']);
$pconfig['peruserbw'] = isset($a_cp[$cpzone]['peruserbw']);
@@ -279,6 +280,7 @@ if ($_POST) {
unset($newcp['httpslogin']);
$newcp['httpsname'] = $_POST['httpsname'];
$newcp['preauthurl'] = $_POST['preauthurl'];
+ $newcp['blockedmacsurl'] = $_POST['blockedmacsurl'];
$newcp['peruserbw'] = $_POST['peruserbw'] ? true : false;
$newcp['bwdefaultdn'] = $_POST['bwdefaultdn'];
$newcp['bwdefaultup'] = $_POST['bwdefaultup'];
@@ -375,6 +377,7 @@ function enable_change(enable_change) {
document.iform.freelogins_updatetimeouts.disabled = endis;
document.iform.timeout.disabled = endis;
document.iform.preauthurl.disabled = endis;
+ document.iform.blockedmacsurl.disabled = endis;
document.iform.redirurl.disabled = endis;
document.iform.localauth_priv.disabled = localauth_endis;
document.iform.radiusip.disabled = radius_endis;
@@ -540,6 +543,13 @@ function enable_change(enable_change) {
"to access after they've authenticated."); ?></td>
</tr>
<tr>
+ <td valign="top" class="vncell"><?=gettext("Blocked MAC address redirect URL"); ?> </td>
+ <td class="vtable">
+ <input name="blockedmacsurl" type="text" class="formfld url" id="blockedmacsurl" size="60" value="<?=htmlspecialchars($pconfig['blockedmacsurl']);?>"><br>
+ <?php printf(gettext("If you provide a URL here, MAC addresses set to be blocked will be redirect to that URL when attempt to access anything."));?>
+ </td>
+ </tr>
+ <tr>
<td valign="top" class="vncell"><?=gettext("Concurrent user logins"); ?></td>
<td class="vtable">
<input name="noconcurrentlogins" type="checkbox" class="formfld" id="noconcurrentlogins" value="yes" <?php if ($pconfig['noconcurrentlogins']) echo "checked"; ?>>
OpenPOWER on IntegriCloud