summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-17 11:34:44 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-02-17 11:34:44 -0300
commit5705c60a24ce8a5887dda0f7c1a73231de42827e (patch)
treee03f1e22e4292db3ff8904fd043842259a05eb22 /usr/local/bin
parent290296cdc05747b65145077e2715e7c4e2ae60aa (diff)
downloadpfsense-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')
-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 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;
}
OpenPOWER on IntegriCloud