From 94bf391602417968b76c9e12a5db82de91a407e2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 22 Mar 2005 03:13:21 +0000 Subject: Use form post method --- usr/local/www/services_captiveportal.php | 4 +++- usr/local/www/services_captiveportal_ip.php | 2 +- usr/local/www/services_captiveportal_ip_edit.php | 2 +- usr/local/www/services_captiveportal_mac.php | 2 +- usr/local/www/services_captiveportal_mac_edit.php | 2 +- usr/local/www/services_captiveportal_users.php | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php index 3185fd2..1e2d2cf 100755 --- a/usr/local/www/services_captiveportal.php +++ b/usr/local/www/services_captiveportal.php @@ -78,6 +78,8 @@ if ($_POST) { /* input validation */ if ($_POST['enable']) { + $config['captiveportal']['enable'] = $_POST['enable'] ? true : false; + $reqdfields = explode(" ", "cinterface"); $reqdfieldsn = explode(",", "Interface"); @@ -176,7 +178,7 @@ if ($_POST) { -
+ diff --git a/usr/local/www/services_captiveportal_ip.php b/usr/local/www/services_captiveportal_ip.php index 4c0fbcb..442a4ff 100755 --- a/usr/local/www/services_captiveportal_ip.php +++ b/usr/local/www/services_captiveportal_ip.php @@ -76,7 +76,7 @@ if ($_GET['act'] == "del") { - + diff --git a/usr/local/www/services_captiveportal_ip_edit.php b/usr/local/www/services_captiveportal_ip_edit.php index 38f7559..fe8285f 100755 --- a/usr/local/www/services_captiveportal_ip_edit.php +++ b/usr/local/www/services_captiveportal_ip_edit.php @@ -101,7 +101,7 @@ if ($_POST) { - + diff --git a/usr/local/www/services_captiveportal_mac.php b/usr/local/www/services_captiveportal_mac.php index 58e6a73..3404d93 100755 --- a/usr/local/www/services_captiveportal_mac.php +++ b/usr/local/www/services_captiveportal_mac.php @@ -76,7 +76,7 @@ if ($_GET['act'] == "del") { - + diff --git a/usr/local/www/services_captiveportal_mac_edit.php b/usr/local/www/services_captiveportal_mac_edit.php index f736582..f9e95bc 100755 --- a/usr/local/www/services_captiveportal_mac_edit.php +++ b/usr/local/www/services_captiveportal_mac_edit.php @@ -101,7 +101,7 @@ if ($_POST) { - + diff --git a/usr/local/www/services_captiveportal_users.php b/usr/local/www/services_captiveportal_users.php index 46b9e17..c943a4b 100755 --- a/usr/local/www/services_captiveportal_users.php +++ b/usr/local/www/services_captiveportal_users.php @@ -144,7 +144,7 @@ if(is_array($config['users'])){ - + -- cgit v1.1