summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/status_captiveportal.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php
index 6d73a4d..1a8c1cf 100755
--- a/usr/local/www/status_captiveportal.php
+++ b/usr/local/www/status_captiveportal.php
@@ -31,6 +31,12 @@
require("guiconfig.inc");
+if ($_GET['act'] == "del") {
+ captiveportal_disconnect_client($_GET['id']);
+ Header("status_captiveportal.php");
+ exit;
+}
+
$captiveportallck = lock('captiveportal');
$concurrent = `cat /var/db/captiveportal.db | wc -l`;
$cpcontents = file("/var/db/captiveportal.db", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
@@ -48,10 +54,6 @@ include("head.inc");
<p class="pgtitle"><?=$pgtitle?></p>
<?php
-if ($_GET['act'] == "del") {
- captiveportal_disconnect_client($_GET['id']);
-}
-
flush();
function clientcmp($a, $b) {
OpenPOWER on IntegriCloud