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)) {
| while($user = $db->fetch_array($query)) {
|
Zeile 254 | Zeile 257 |
---|
{ ++$guestcount; }
|
{ ++$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 273 | Zeile 276 |
---|
if($user['invisible'] == 1) { ++$anoncount;
|
if($user['invisible'] == 1) { ++$anoncount;
|
}
| }
|
if($user['invisible'] == 1)
|
if($user['invisible'] == 1)
|
{
| {
|
$invisiblemark = "*";
|
$invisiblemark = "*";
|
}
| }
|
else { $invisiblemark = '';
|
else { $invisiblemark = '';
|
}
| }
|
if(($user['invisible'] == 1 && ($mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid'])) || $user['invisible'] != 1) { $user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);
| if(($user['invisible'] == 1 && ($mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid'])) || $user['invisible'] != 1) { $user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);
|
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;
|
Zeile 365 | Zeile 379 |
---|
}
$lastpostdate = my_date('relative', $thread['lastpost']);
|
}
$lastpostdate = my_date('relative', $thread['lastpost']);
|
$lastposter = htmlspecialchars_uni($thread['lastposter']);
| if(!$thread['lastposteruid'] && !$thread['lastposter']) { $lastposter = htmlspecialchars_uni($lang->guest); } else { $lastposter = htmlspecialchars_uni($thread['lastposter']); }
|
$thread['replies'] = my_number_format($thread['replies']); $thread['views'] = my_number_format($thread['views']);
| $thread['replies'] = my_number_format($thread['replies']); $thread['views'] = my_number_format($thread['views']);
|
Zeile 461 | Zeile 482 |
---|
{ $start = 0; $page = 1;
|
{ $start = 0; $page = 1;
|
}
$multipage = multipage($announcementcount, $numannouncements, $page, $file_name);
| }
$multipage = multipage($announcementcount, $numannouncements, $page, $file_name);
|
$pids = ''; $tids = ''; $comma = '';
| $pids = ''; $tids = ''; $comma = '';
|
Zeile 538 | Zeile 559 |
---|
$announcement['threadlink'] = get_thread_link($announcement['tid']); $announcement['forumlink'] = get_forum_link($announcement['fid']); $announcement['forumname'] = $forum_cache[$announcement['fid']]['name'];
|
$announcement['threadlink'] = get_thread_link($announcement['tid']); $announcement['forumlink'] = get_forum_link($announcement['fid']); $announcement['forumname'] = $forum_cache[$announcement['fid']]['name'];
|
| |
$announcement['username'] = htmlspecialchars_uni($announcement['username']);
|
$announcement['username'] = htmlspecialchars_uni($announcement['username']);
|
$announcement['threadusername'] = htmlspecialchars_uni($announcement['threadusername']);
| if(!$announcement['uid'] && !$announcement['threadusername']) { $announcement['threadusername'] = htmlspecialchars_uni($lang->guest); } else { $announcement['threadusername'] = htmlspecialchars_uni($announcement['threadusername']); }
|
if($announcement['uid'] == 0) {
| if($announcement['uid'] == 0) {
|
Zeile 593 | Zeile 620 |
---|
$plugins->run_hooks("portal_announcement");
$parser_options = array(
|
$plugins->run_hooks("portal_announcement");
$parser_options = array(
|
"allow_html" => $forum[$announcement['fid']]['allowhtml'],
| "allow_html" => $mybb->settings['announcementshtml'] && $forum[$announcement['fid']]['allowhtml'],
|
"allow_mycode" => $forum[$announcement['fid']]['allowmycode'], "allow_smilies" => $forum[$announcement['fid']]['allowsmilies'], "allow_imgcode" => $forum[$announcement['fid']]['allowimgcode'],
| "allow_mycode" => $forum[$announcement['fid']]['allowmycode'], "allow_smilies" => $forum[$announcement['fid']]['allowsmilies'], "allow_imgcode" => $forum[$announcement['fid']]['allowimgcode'],
|