diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-14 16:06:48 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-14 16:06:48 -0500 |
commit | cbb82e6b6ca03d59209ef8f76968249ca390a9a2 (patch) | |
tree | 0423a998336ecf21d9542877fa7ada393709bf43 /src/usr/local/www/status_captiveportal_test.php | |
parent | 9f2bbdb44c5700384a37a9586d260492f14f7602 (diff) | |
download | pfsense-cbb82e6b6ca03d59209ef8f76968249ca390a9a2.zip pfsense-cbb82e6b6ca03d59209ef8f76968249ca390a9a2.tar.gz |
GET/POST conversions
Diffstat (limited to 'src/usr/local/www/status_captiveportal_test.php')
-rw-r--r-- | src/usr/local/www/status_captiveportal_test.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr/local/www/status_captiveportal_test.php b/src/usr/local/www/status_captiveportal_test.php index 5436bd3..71a5625 100644 --- a/src/usr/local/www/status_captiveportal_test.php +++ b/src/usr/local/www/status_captiveportal_test.php @@ -34,16 +34,14 @@ require_once("shaper.inc"); require_once("captiveportal.inc"); require_once("voucher.inc"); -$cpzone = $_GET['zone']; -if (isset($_POST['zone'])) { - $cpzone = $_POST['zone']; -} -$cpzone = strtolower($cpzone); +$cpzone = strtolower($_REQUEST['zone']); if (!is_array($config['captiveportal'])) { $config['captiveportal'] = array(); } + $a_cp =& $config['captiveportal']; + /* If the zone does not exist, do not display the invalid zone */ if (!array_key_exists($cpzone, $a_cp)) { $cpzone = ""; @@ -60,7 +58,7 @@ $shortcut_section = "captiveportal-vouchers"; include("head.inc"); -if ($_POST) { +if ($_POST['save']) { if ($_POST['vouchers']) { $test_results = voucher_auth($_POST['vouchers'], 1); $output = ""; |