diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-02-17 11:34:44 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-02-17 11:34:44 -0300 |
commit | 5705c60a24ce8a5887dda0f7c1a73231de42827e (patch) | |
tree | e03f1e22e4292db3ff8904fd043842259a05eb22 /usr/local/bin/captiveportal_gather_stats.php | |
parent | 290296cdc05747b65145077e2715e7c4e2ae60aa (diff) | |
download | pfsense-5705c60a24ce8a5887dda0f7c1a73231de42827e.zip pfsense-5705c60a24ce8a5887dda0f7c1a73231de42827e.tar.gz |
Revert "Merge pull request #417 from miken32/cp-database-fix"
It breaks customizations, it's not a good time for such big change.
This reverts commit 40c7b1a98bfdc61261154adaac5fdefc234ecb08, reversing
changes made to d896f86751bae79625197da6c80d709fdf185448.
Diffstat (limited to 'usr/local/bin/captiveportal_gather_stats.php')
-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 3ff03dd..63d91a2 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['ip']; + $user_ip = $user[2]; // Record the timestamp - $timestamp = $user['allow_time']; + $timestamp = $user[0]; if ($timestamp > $previous_user_timestamp) $current_user_count = $current_user_count + 1; } |