diff options
author | Michael Newton <miken32@gmail.com> | 2013-02-14 21:14:38 -0800 |
---|---|---|
committer | Michael Newton <miken32@gmail.com> | 2013-02-14 21:14:38 -0800 |
commit | 91ca7e9fa01bec4e6c9e83674cb109806a67df51 (patch) | |
tree | 42c12f1b96fef68dacd2561e13917140a1023376 /usr/local/bin | |
parent | 2ccc41c1c537994e10c9deb4ac061ce55edb6537 (diff) | |
download | pfsense-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.php | 4 |
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; } |