Zeile 233 | Zeile 233 |
---|
}
$timesearch = TIME_NOW - $mybb->settings['wolcutoff'];
|
}
$timesearch = TIME_NOW - $mybb->settings['wolcutoff'];
|
$comma = '';
| |
$guestcount = $membercount = $botcount = $anoncount = 0;
|
$guestcount = $membercount = $botcount = $anoncount = 0;
|
$onlinemembers = '';
| $onlinemembers = $onlinebots = $comma = '';
|
$doneusers = array(); $query = $db->query(" SELECT s.sid, s.ip, s.uid, s.time, s.location, u.username, u.invisible, u.usergroup, u.displaygroup
| $doneusers = array(); $query = $db->query(" SELECT s.sid, s.ip, s.uid, s.time, s.location, u.username, u.invisible, u.usergroup, u.displaygroup
|
Zeile 244 | Zeile 243 |
---|
WHERE s.time>'$timesearch' ORDER BY {$order_by}, {$order_by2} ");
|
WHERE s.time>'$timesearch' ORDER BY {$order_by}, {$order_by2} ");
|
| // Fetch spiders $spiders = $cache->read('spiders');
|
while($user = $db->fetch_array($query)) {
// Create a key to test if this user is a search bot. $botkey = my_strtolower(str_replace("bot=", '', $user['sid']));
|
while($user = $db->fetch_array($query)) {
// Create a key to test if this user is a search bot. $botkey = my_strtolower(str_replace("bot=", '', $user['sid']));
|
|
|
if($user['uid'] == "0") { ++$guestcount; }
|
if($user['uid'] == "0") { ++$guestcount; }
|
elseif(my_strpos($user['sid'], "bot=") !== false && $session->bots[$botkey])
| elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey])
|
{ // The user is a search bot.
|
{ // The user is a search bot.
|
$onlinemembers .= $comma.format_name($session->bots[$botkey], $session->botgroup);
| $onlinebots .= $comma.format_name($spiders[$botkey]['name'], $spiders[$botkey]['usergroup']);
|
$comma = $lang->comma; ++$botcount; }
| $comma = $lang->comma; ++$botcount; }
|
Zeile 294 | Zeile 297 |
---|
} } }
|
} } }
|
| if(trim($onlinebots) == "" || trim($onlinemembers) == "") { $comma = ""; } else { $comma = $lang->comma; }
$onlinemembers = $onlinebots.$comma.$onlinemembers;
|
$onlinecount = $membercount + $guestcount + $botcount;
| $onlinecount = $membercount + $guestcount + $botcount;
|