summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_ip_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-22 21:15:34 +0000
committerErmal <eri@pfsense.org>2010-04-22 21:15:34 +0000
commitc4e0fc8bf46f473df6c97db46eb0eb13c87b5154 (patch)
treed25584cbeb4aea8ba86e56a7aae7cb76b54e6dbe /usr/local/www/services_captiveportal_ip_edit.php
parentc10ea0a13fd4e816c1e803660ef5dae48a0832a2 (diff)
downloadpfsense-c4e0fc8bf46f473df6c97db46eb0eb13c87b5154.zip
pfsense-c4e0fc8bf46f473df6c97db46eb0eb13c87b5154.tar.gz
Remove all code for directions it is not needed any more on passthrough ip's.
Diffstat (limited to 'usr/local/www/services_captiveportal_ip_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_ip_edit.php24
1 files changed, 3 insertions, 21 deletions
diff --git a/usr/local/www/services_captiveportal_ip_edit.php b/usr/local/www/services_captiveportal_ip_edit.php
index f3b297c..24bd4a0 100755
--- a/usr/local/www/services_captiveportal_ip_edit.php
+++ b/usr/local/www/services_captiveportal_ip_edit.php
@@ -78,8 +78,8 @@ if ($_POST) {
$pconfig = $_POST;
/* input validation */
- $reqdfields = explode(" ", "ip dir");
- $reqdfieldsn = explode(",", "Allowed IP address,Direction");
+ $reqdfields = explode(" ", "ip");
+ $reqdfieldsn = explode(",", "Allowed IP address");
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
@@ -95,7 +95,7 @@ if ($_POST) {
if (isset($id) && ($a_allowedips[$id]) && ($a_allowedips[$id] === $ipent))
continue;
- if (($ipent['dir'] == $_POST['dir']) && ($ipent['ip'] == $_POST['ip'])){
+ if ($ipent['ip'] == $_POST['ip']){
$input_errors[] = "[" . $_POST['ip'] . "] already allowed." ;
break ;
}
@@ -148,24 +148,6 @@ include("head.inc");
<?php if ($input_errors) print_input_errors($input_errors); ?>
<form action="services_captiveportal_ip_edit.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
-<?php if (false): ?>
- <tr>
- <td width="22%" valign="top" class="vncellreq">Direction</td>
- <td width="78%" class="vtable">
- <select name="dir" class="formselect">
- <?php
- $dirs = explode(" ", "From To") ;
- foreach ($dirs as $dir): ?>
- <option value="<?=strtolower($dir);?>" <?php if (strtolower($dir) == strtolower($pconfig['dir'])) echo "selected";?> >
- <?=htmlspecialchars($dir);?>
- </option>
- <?php endforeach; ?>
- </select>
- <br>
- <span class="vexpl">Use <em>From</em> to always allow an IP address through the captive portal (without authentication).
- Use <em>To</em> to allow access from all clients (even non-authenticated ones) behind the portal to this IP address.</span></td>
- </tr>
-<?php endif; ?>
<tr>
<td width="22%" valign="top" class="vncellreq">IP address</td>
<td width="78%" class="vtable">
OpenPOWER on IntegriCloud