aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/functions/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/functions/functions.php')
-rw-r--r--phpBB/functions/functions.php8
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']);