diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-15 14:21:19 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-15 14:21:19 +0000 |
commit | 5ff33e38fee9d6e651fc9a5ff283c357d29ef266 (patch) | |
tree | 6fdb7a00ea9639259dd2d7b779eca04e042ede38 /phpBB/functions/functions.php | |
parent | 7791a3126090aef74a00e0b85f3d7779819e75c3 (diff) | |
download | forums-5ff33e38fee9d6e651fc9a5ff283c357d29ef266.tar forums-5ff33e38fee9d6e651fc9a5ff283c357d29ef266.tar.gz forums-5ff33e38fee9d6e651fc9a5ff283c357d29ef266.tar.bz2 forums-5ff33e38fee9d6e651fc9a5ff283c357d29ef266.tar.xz forums-5ff33e38fee9d6e651fc9a5ff283c357d29ef266.zip |
Users online update
git-svn-id: file:///svn/phpbb/trunk@144 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/functions/functions.php')
-rw-r--r-- | phpBB/functions/functions.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/functions/functions.php b/phpBB/functions/functions.php index 6345630813..bc2fd5b670 100644 --- a/phpBB/functions/functions.php +++ b/phpBB/functions/functions.php @@ -43,6 +43,10 @@ function get_db_stat($db, $mode) AND user_level != '. DELETED .' ORDER BY user_id DESC LIMIT 1'; break; + + case 'usersonline': + $sql = "SELECT COUNT(*) AS online FROM ".SESSIONS_TABLE; + break; } @@ -57,6 +61,10 @@ function get_db_stat($db, $mode) { return($row); } + else if($mode == "usersonline") + { + return ($row['online']); + } else { return($row['total']); |