Revision b4e0f02b
Added by Renato Botelho almost 11 years ago
usr/local/www/status_captiveportal.php | ||
---|---|---|
50 | 50 |
if (isset($_POST['zone'])) |
51 | 51 |
$cpzone = $_POST['zone']; |
52 | 52 |
|
53 |
if ($_GET['act'] == "del" && !empty($cpzone)) { |
|
54 |
captiveportal_disconnect_client($_GET['id']); |
|
55 |
header("Location: status_captiveportal.php?zone={$cpzone}"); |
|
56 |
exit; |
|
57 |
} |
|
58 |
|
|
59 | 53 |
$pgtitle = array(gettext("Status: Captive portal")); |
60 | 54 |
$shortcut_section = "captiveportal"; |
61 | 55 |
|
... | ... | |
66 | 60 |
if (count($a_cp) == 1) |
67 | 61 |
$cpzone = current(array_keys($a_cp)); |
68 | 62 |
|
63 |
if (isset($cpzone) && !empty($cpzone) && isset($a_cp[$cpzone]['zoneid'])) |
|
64 |
$cpzoneid = $a_cp[$cpzone]['zoneid']; |
|
65 |
|
|
66 |
if ($_GET['act'] == "del" && !empty($cpzone) && isset($cpzoneid) && isset($_GET['id'])) { |
|
67 |
captiveportal_disconnect_client($_GET['id']); |
|
68 |
header("Location: status_captiveportal.php?zone={$cpzone}"); |
|
69 |
exit; |
|
70 |
} |
|
71 |
|
|
69 | 72 |
include("head.inc"); |
70 | 73 |
|
71 | 74 |
?> |
Also available in: Unified diff
Make sure $cpzoneid is defined and use it to call pfSense_ipfw_Tableaction() and pfSense_ipfw_getTablestats(). Also fix fieldnames for captiveportal_hostnames. It should fix #4001