diff options
author | Ermal <eri@pfsense.org> | 2010-11-03 13:25:54 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-11-03 13:25:54 +0000 |
commit | 9cb94dd46bf45155d55585e0f8c3e432705d8ca2 (patch) | |
tree | 297616ba01a3996ae2461fc495dbdb031451e7ef /usr/local/www/status_captiveportal.php | |
parent | 729931965e68a3c8ab1de307446410f6810c4433 (diff) | |
download | pfsense-9cb94dd46bf45155d55585e0f8c3e432705d8ca2.zip pfsense-9cb94dd46bf45155d55585e0f8c3e432705d8ca2.tar.gz |
Ticket #980. Bring CP widget up to date. Also bind lighty for CP to 127.0.0.1 it should not be accessible otherwise.
Diffstat (limited to 'usr/local/www/status_captiveportal.php')
-rwxr-xr-x | usr/local/www/status_captiveportal.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php index 292b9ea..8000281 100755 --- a/usr/local/www/status_captiveportal.php +++ b/usr/local/www/status_captiveportal.php @@ -74,9 +74,8 @@ if (file_exists("{$g['vardb_path']}/captiveportal.db")) { $captiveportallck = lock('captiveportal'); $cpcontents = file("/var/db/captiveportal.db", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); unlock($captiveportallck); -} else { +} else $cpcontents = array(); -} $concurrent = count($cpcontents); @@ -84,7 +83,7 @@ foreach ($cpcontents as $cpcontent) { $cpent = explode(",", $cpcontent); if ($_GET['showact']) $cpent[5] = captiveportal_get_last_activity($cpent[2]); - $cpdb[] = $cpent; + $cpdb[] = $cpent; } if ($_GET['order']) { if ($_GET['order'] == "ip") @@ -99,6 +98,7 @@ if ($_GET['order']) { $order = 0; usort($cpdb, "clientcmp"); } + ?> <?php if (isset($config['voucher']['enable'])): ?> |