summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorMichael Newton <miken32@gmail.com>2013-02-14 21:14:38 -0800
committerMichael Newton <miken32@gmail.com>2013-02-14 21:14:38 -0800
commit91ca7e9fa01bec4e6c9e83674cb109806a67df51 (patch)
tree42c12f1b96fef68dacd2561e13917140a1023376 /usr/local/bin
parent2ccc41c1c537994e10c9deb4ac061ce55edb6537 (diff)
downloadpfsense-91ca7e9fa01bec4e6c9e83674cb109806a67df51.zip
pfsense-91ca7e9fa01bec4e6c9e83674cb109806a67df51.tar.gz
use associative array for captive portal to prevent confusion, messiness, and abuse
Diffstat (limited to 'usr/local/bin')
-rw-r--r--usr/local/bin/captiveportal_gather_stats.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/bin/captiveportal_gather_stats.php b/usr/local/bin/captiveportal_gather_stats.php
index 63d91a2..3ff03dd 100644
--- a/usr/local/bin/captiveportal_gather_stats.php
+++ b/usr/local/bin/captiveportal_gather_stats.php
@@ -77,9 +77,9 @@ if ($type == "loggedin") {
@fclose($fd);
foreach($cpdb as $user) {
- $user_ip = $user[2];
+ $user_ip = $user['ip'];
// Record the timestamp
- $timestamp = $user[0];
+ $timestamp = $user['allow_time'];
if ($timestamp > $previous_user_timestamp)
$current_user_count = $current_user_count + 1;
}
OpenPOWER on IntegriCloud