Zeile 34 | Zeile 34 |
---|
$statspage = ''; if($mybb->settings['statsenabled'] != 0) {
|
$statspage = ''; if($mybb->settings['statsenabled'] != 0) {
|
| if(!empty($logoutlink) || !empty($showteamlink)) { $stats_page_separator = $lang->board_stats_link_separator; }
|
eval('$statspage = "'.$templates->get('index_statspage').'";'); }
|
eval('$statspage = "'.$templates->get('index_statspage').'";'); }
|
|
|
$whosonline = ''; if($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0) {
| $whosonline = ''; if($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0) {
|
Zeile 53 | Zeile 57 |
---|
}
$timesearch = TIME_NOW - (int)$mybb->settings['wolcutoff'];
|
}
$timesearch = TIME_NOW - (int)$mybb->settings['wolcutoff'];
|
$comma = '';
| |
$query = $db->query(" SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.invisible, u.usergroup, u.displaygroup FROM ".TABLE_PREFIX."sessions s
| $query = $db->query(" SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.invisible, u.usergroup, u.displaygroup FROM ".TABLE_PREFIX."sessions s
|
Zeile 62 | Zeile 65 |
---|
ORDER BY {$order_by}, {$order_by2} ");
|
ORDER BY {$order_by}, {$order_by2} ");
|
$forum_viewers = $doneusers = array();
| $forum_viewers = $doneusers = $onlinemembers = $onlinebots = array();
|
$membercount = $guestcount = $anoncount = $botcount = 0;
|
$membercount = $guestcount = $anoncount = $botcount = 0;
|
$onlinemembers = $comma = '';
| |
// Fetch spiders $spiders = $cache->read('spiders');
| // Fetch spiders $spiders = $cache->read('spiders');
|
Zeile 100 | Zeile 102 |
---|
}
// Properly format the username and assign the template.
|
}
// Properly format the username and assign the template.
|
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
| $user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);
|
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
|
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
|
eval('$onlinemembers .= "'.$templates->get('index_whosonline_memberbit', 1, 0).'";'); $comma = $lang->comma;
| eval('$onlinemembers[] = "'.$templates->get('index_whosonline_memberbit', 1, 0).'";');
|
} // This user has been handled. $doneusers[$user['uid']] = $user['time'];
|
} // This user has been handled. $doneusers[$user['uid']] = $user['time'];
|
} }
| } }
|
elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey])
|
elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey])
|
{
| { if($mybb->settings['wolorder'] == 'username') { $key = $spiders[$botkey]['name']; } else { $key = $user['time']; }
|
// The user is a search bot.
|
// The user is a search bot.
|
$onlinemembers .= $comma.format_name($spiders[$botkey]['name'], $spiders[$botkey]['usergroup']); $comma = $lang->comma;
| $onlinebots[$key] = format_name($spiders[$botkey]['name'], $spiders[$botkey]['usergroup']);
|
++$botcount; } else { // The user is a guest. ++$guestcount;
|
++$botcount; } else { // The user is a guest. ++$guestcount;
|
}
| }
|
if($user['location1']) { ++$forum_viewers[$user['location1']]; }
|
if($user['location1']) { ++$forum_viewers[$user['location1']]; }
|
| }
if($mybb->settings['wolorder'] == 'activity') { // activity ordering is DESC, username is ASC krsort($onlinebots); } else { ksort($onlinebots); }
$onlinemembers = array_merge($onlinebots, $onlinemembers); if(!empty($onlinemembers)) { $comma = $lang->comma." "; $onlinemembers = implode($comma, $onlinemembers); } else { $onlinemembers = "";
|
}
// Build the who's online bit on the index page.
| }
// Build the who's online bit on the index page.
|
Zeile 214 | Zeile 244 |
---|
{ unset($today_bdays[$bdayusers[$bdayuser['uid']]]); }
|
{ unset($today_bdays[$bdayusers[$bdayuser['uid']]]); }
|
} }
| } }
|
}
// We still have birthdays - display them in our list!
| }
// We still have birthdays - display them in our list!
|
Zeile 224 | Zeile 254 |
---|
foreach($today_bdays as $bdayuser) { if($bdayuser['displaygroup'] == 0)
|
foreach($today_bdays as $bdayuser) { if($bdayuser['displaygroup'] == 0)
|
{
| {
|
$bdayuser['displaygroup'] = $bdayuser['usergroup']; }
| $bdayuser['displaygroup'] = $bdayuser['usergroup']; }
|
Zeile 232 | Zeile 262 |
---|
if($groupscache[$bdayuser['displaygroup']] && $groupscache[$bdayuser['displaygroup']]['showinbirthdaylist'] != 1) { continue;
|
if($groupscache[$bdayuser['displaygroup']] && $groupscache[$bdayuser['displaygroup']]['showinbirthdaylist'] != 1) { continue;
|
}
| }
|
$age = ''; $bday = explode('-', $bdayuser['birthday']); if($year > $bday['2'] && $bday['2'] != '')
| $age = ''; $bday = explode('-', $bdayuser['birthday']); if($year > $bday['2'] && $bday['2'] != '')
|
Zeile 241 | Zeile 271 |
---|
$age = ' ('.($year - $bday['2']).')'; }
|
$age = ' ('.($year - $bday['2']).')'; }
|
$bdayuser['username'] = format_name($bdayuser['username'], $bdayuser['usergroup'], $bdayuser['displaygroup']);
| $bdayuser['username'] = format_name(htmlspecialchars_uni($bdayuser['username']), $bdayuser['usergroup'], $bdayuser['displaygroup']);
|
$bdayuser['profilelink'] = build_profile_link($bdayuser['username'], $bdayuser['uid']); eval('$bdays .= "'.$templates->get('index_birthdays_birthday', 1, 0).'";'); ++$bdaycount;
| $bdayuser['profilelink'] = build_profile_link($bdayuser['username'], $bdayuser['uid']); eval('$bdays .= "'.$templates->get('index_birthdays_birthday', 1, 0).'";'); ++$bdaycount;
|
Zeile 251 | Zeile 281 |
---|
}
if($hiddencount > 0)
|
}
if($hiddencount > 0)
|
{
| {
|
if($bdaycount > 0) { $bdays .= ' - ';
| if($bdaycount > 0) { $bdays .= ' - ';
|
Zeile 317 | Zeile 347 |
---|
// Load the stats cache. $stats = $cache->read('stats'); }
|
// Load the stats cache. $stats = $cache->read('stats'); }
|
$post_code_string = ''; if($mybb->user['uid']) { $post_code_string = '&my_post_key='.$mybb->post_code; }
| $expaltext = (in_array("boardstats", $collapse)) ? "[+]" : "[-]";
|
eval('$boardstats = "'.$templates->get('index_boardstats').'";'); }
| eval('$boardstats = "'.$templates->get('index_boardstats').'";'); }
|