Zeile 235 | Zeile 235 |
---|
$timesearch = TIME_NOW - $mybb->settings['wolcutoff']; $guestcount = $membercount = $botcount = $anoncount = 0; $doneusers = $onlinemembers = $onlinebots = array();
|
$timesearch = TIME_NOW - $mybb->settings['wolcutoff']; $guestcount = $membercount = $botcount = $anoncount = 0; $doneusers = $onlinemembers = $onlinebots = array();
|
| $query = $db->simple_select("sessions", "COUNT(DISTINCT ip) AS guestcount", "uid = 0 AND time > $timesearch"); $guestcount = $db->fetch_field($query, "guestcount");
|
$query = $db->query("
|
$query = $db->query("
|
SELECT s.sid, s.ip, s.uid, s.time, s.location, u.username, u.invisible, u.usergroup, u.displaygroup FROM ".TABLE_PREFIX."sessions s LEFT JOIN ".TABLE_PREFIX."users u ON (s.uid=u.uid) WHERE s.time>'$timesearch'
| SELECT s.sid, s.ip, s.uid, s.time, s.location, u.username, u.invisible, u.usergroup, u.displaygroup FROM ".TABLE_PREFIX."sessions s LEFT JOIN ".TABLE_PREFIX."users u ON (s.uid=u.uid) WHERE (s.uid != 0 OR SUBSTR(s.sid,4,1) = '=') AND s.time > $timesearch
|
ORDER BY {$order_by}, {$order_by2} ");
| ORDER BY {$order_by}, {$order_by2} ");
|
Zeile 253 | Zeile 259 |
---|
$botkey = my_strtolower(str_replace("bot=", '', $user['sid']));
if($user['uid'] > 0)
|
$botkey = my_strtolower(str_replace("bot=", '', $user['sid']));
if($user['uid'] > 0)
|
{
| {
|
if(empty($doneusers[$user['uid']]) || $doneusers[$user['uid']] < $user['time']) { ++$membercount;
|
if(empty($doneusers[$user['uid']]) || $doneusers[$user['uid']] < $user['time']) { ++$membercount;
|
|
|
$doneusers[$user['uid']] = $user['time'];
// If the user is logged in anonymously, update the count for that.
|
$doneusers[$user['uid']] = $user['time'];
// If the user is logged in anonymously, update the count for that.
|
if($user['invisible'] == 1)
| if($user['invisible'] == 1)
|
{ ++$anoncount; }
| { ++$anoncount; }
|
Zeile 297 | Zeile 303 |
---|
$onlinebots[$key] = format_name($spiders[$botkey]['name'], $spiders[$botkey]['usergroup']); ++$botcount;
|
$onlinebots[$key] = format_name($spiders[$botkey]['name'], $spiders[$botkey]['usergroup']); ++$botcount;
|
} else { ++$guestcount;
| |
} }
| } }
|