1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-15 06:06:32 +02:00

Users online update

git-svn-id: file:///svn/phpbb/trunk@144 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-04-15 14:21:19 +00:00
parent 7791a31260
commit 5ff33e38fe
2 changed files with 9 additions and 1 deletions

View File

@ -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']);