From c4e0fc8bf46f473df6c97db46eb0eb13c87b5154 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 22 Apr 2010 21:15:34 +0000 Subject: Remove all code for directions it is not needed any more on passthrough ip's. --- usr/local/www/services_captiveportal_ip.php | 6 ------ usr/local/www/services_captiveportal_ip_edit.php | 24 +++--------------------- 2 files changed, 3 insertions(+), 27 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/services_captiveportal_ip.php b/usr/local/www/services_captiveportal_ip.php index 1da30a1..964163f 100755 --- a/usr/local/www/services_captiveportal_ip.php +++ b/usr/local/www/services_captiveportal_ip.php @@ -104,13 +104,7 @@ include("head.inc"); - "; - ?> - any"; - ?>   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");
- - - - - -
Direction - -
- Use From to always allow an IP address through the captive portal (without authentication). - Use To to allow access from all clients (even non-authenticated ones) behind the portal to this IP address.
IP address -- cgit v1.1