diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-11 21:42:04 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-11 21:42:04 -0400 |
commit | 283dc8a0ec19affdd310e99239a210aa6b07758f (patch) | |
tree | 47300b162b44aa51336e60c5294745079a74a3eb /usr/local/www | |
parent | 7c563481da6349d38f93ea5115d2e71312ad8536 (diff) | |
download | pfsense-283dc8a0ec19affdd310e99239a210aa6b07758f.zip pfsense-283dc8a0ec19affdd310e99239a210aa6b07758f.tar.gz |
Redirect back to cp page after disconnection of user
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/status_captiveportal.php | 10 |
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) { |