summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_ip.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-05-03 17:43:39 +0000
committerErmal <eri@pfsense.org>2010-05-03 17:43:39 +0000
commitb01792a0a3df6795d21ca205cf57b371b41bf195 (patch)
treef36c9f2aaeb6ed7e9013a8526c1b809bfcd28278 /usr/local/www/services_captiveportal_ip.php
parent7133ab35b97ba2600d7ad1125bb15c3b6d51eb52 (diff)
downloadpfsense-b01792a0a3df6795d21ca205cf57b371b41bf195.zip
pfsense-b01792a0a3df6795d21ca205cf57b371b41bf195.tar.gz
Ticket #566. Reimplement the allowed ips keeping previous funcitonality and improving by adding a both direction. The problem with previous commit is that it always assumes that allowed ip address would have a pipe configured and entires without one would just get dropped.
Diffstat (limited to 'usr/local/www/services_captiveportal_ip.php')
-rwxr-xr-xusr/local/www/services_captiveportal_ip.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/local/www/services_captiveportal_ip.php b/usr/local/www/services_captiveportal_ip.php
index fb8711b..4bf2cf9 100755
--- a/usr/local/www/services_captiveportal_ip.php
+++ b/usr/local/www/services_captiveportal_ip.php
@@ -56,8 +56,10 @@ if ($_GET['act'] == "del") {
$ipent = $a_allowedips[$_GET['id']];
if (isset($config['captiveportal']['enable'])) {
- mwexec("/sbin/ipfw table 1 delete " . $ipent['ip']);
- mwexec("/sbin/ipfw table 2 delete " . $ipent['ip']);
+ mwexec("/sbin/ipfw table 3 delete " . $ipent['ip']);
+ mwexec("/sbin/ipfw table 4 delete " . $ipent['ip']);
+ mwexec("/sbin/ipfw table 5 delete " . $ipent['ip']);
+ mwexec("/sbin/ipfw table 6 delete " . $ipent['ip']);
}
unset($a_allowedips[$_GET['id']]);
@@ -104,7 +106,13 @@ include("head.inc");
<?php $i = 0; foreach ($a_allowedips as $ip): ?>
<tr ondblclick="document.location='services_captiveportal_ip_edit.php?id=<?=$i;?>'">
<td class="listlr">
+ <?php if($ip['dir'] == "to")
+ echo "any <img src=\"in.gif\" width=\"11\" height=\"11\" align=\"absmiddle\">";
+ ?>
<?=strtolower($ip['ip']);?>
+ <?php if($ip['dir'] == "from")
+ echo "<img src=\"in.gif\" width=\"11\" height=\"11\" align=\"absmiddle\"> any";
+ ?>
</td>
<td class="listbg">
<?=htmlspecialchars($ip['descr']);?>&nbsp;
OpenPOWER on IntegriCloud