Redirect back to cp page after disconnection of user

This commit is contained in:
Scott Ullrich 2009-09-11 21:42:04 -04:00
parent 7c563481da
commit 283dc8a0ec

View File

@ -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) {