diff options
-rwxr-xr-x | usr/local/www/services_captiveportal.php | 4 | ||||
-rwxr-xr-x | usr/local/www/services_captiveportal_ip.php | 2 | ||||
-rwxr-xr-x | usr/local/www/services_captiveportal_ip_edit.php | 2 | ||||
-rwxr-xr-x | usr/local/www/services_captiveportal_mac.php | 2 | ||||
-rwxr-xr-x | usr/local/www/services_captiveportal_mac_edit.php | 2 | ||||
-rwxr-xr-x | 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) { <link href="gui.css" rel="stylesheet" type="text/css"> </head> -<form> +<form method="post"> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> 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") { <link href="gui.css" rel="stylesheet" type="text/css"> </head> -<form> +<form method="post"> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> 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) { <link href="gui.css" rel="stylesheet" type="text/css"> </head> -<form> +<form method="post"> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> 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") { <link href="gui.css" rel="stylesheet" type="text/css"> </head> -<form> +<form method="post"> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> 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) { <link href="gui.css" rel="stylesheet" type="text/css"> </head> -<form> +<form method="post"> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> 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'])){ <link href="gui.css" rel="stylesheet" type="text/css"> </head> -<form> +<form method="post"> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> |