summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-11 21:42:04 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-11 21:42:04 -0400
commit283dc8a0ec19affdd310e99239a210aa6b07758f (patch)
tree47300b162b44aa51336e60c5294745079a74a3eb /usr/local/www
parent7c563481da6349d38f93ea5115d2e71312ad8536 (diff)
downloadpfsense-283dc8a0ec19affdd310e99239a210aa6b07758f.zip
pfsense-283dc8a0ec19affdd310e99239a210aa6b07758f.tar.gz
Redirect back to cp page after disconnection of user
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