$useron = $db->query_first("SELECT COUNT(userid) AS user_on FROM bb".$n."_sessions WHERE lastactivity>='".(time()-60*$useronlinetimeout)."' AND userid>=1");
if ($useron['user_on'] >= 1000) $useron['user_on'] = number_format($useron['user_on'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP")); |