Zeile 42 | Zeile 42 |
---|
eval('$statspage = "'.$templates->get('index_statspage').'";'); }
|
eval('$statspage = "'.$templates->get('index_statspage').'";'); }
|
| $onlinecount = null;
|
$whosonline = ''; if($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0) {
| $whosonline = ''; if($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0) {
|
Zeile 75 | Zeile 76 |
---|
while($location = $db->fetch_array($query)) {
|
while($location = $db->fetch_array($query)) {
|
$forum_viewers[$location['location1']] += $location['guestcount'];
| if(isset($forum_viewers[$location['location1']])) { $forum_viewers[$location['location1']] += $location['guestcount']; } else { $forum_viewers[$location['location1']] = $location['guestcount']; }
|
} }
| } }
|
Zeile 108 | Zeile 116 |
---|
if(empty($doneusers[$user['uid']]) || $doneusers[$user['uid']] < $user['time']) { // If the user is logged in anonymously, update the count for that.
|
if(empty($doneusers[$user['uid']]) || $doneusers[$user['uid']] < $user['time']) { // If the user is logged in anonymously, update the count for that.
|
if($user['invisible'] == 1 && $mybb->usergroup['canbeinvisible'] == 1)
| if($user['invisible'] == 1)
|
{ ++$anoncount; }
| { ++$anoncount; }
|
Zeile 116 | Zeile 124 |
---|
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid']) { // If this usergroup can see anonymously logged-in users, mark them.
|
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid']) { // If this usergroup can see anonymously logged-in users, mark them.
|
if($user['invisible'] == 1 && $mybb->usergroup['canbeinvisible'] == 1)
| if($user['invisible'] == 1)
|
{ $invisiblemark = '*'; }
| { $invisiblemark = '*'; }
|
Zeile 152 | Zeile 160 |
---|
if($user['location1']) {
|
if($user['location1']) {
|
++$forum_viewers[$user['location1']];
| if(isset($forum_viewers[$user['location1']])) { ++$forum_viewers[$user['location1']]; } else { $forum_viewers[$user['location1']] = 1; }
|
} }
| } }
|
Zeile 175 | Zeile 190 |
---|
else { $onlinemembers = "";
|
else { $onlinemembers = "";
|
}
| }
|
// Build the who's online bit on the index page. $onlinecount = $membercount + $guestcount + $botcount;
if($onlinecount != 1)
|
// Build the who's online bit on the index page. $onlinecount = $membercount + $guestcount + $botcount;
if($onlinecount != 1)
|
{
| {
|
$onlinebit = $lang->online_online_plural;
|
$onlinebit = $lang->online_online_plural;
|
} else
| } else
|
{ $onlinebit = $lang->online_online_singular;
|
{ $onlinebit = $lang->online_online_singular;
|
} if($membercount != 1)
| } if($membercount != 1)
|
{ $memberbit = $lang->online_member_plural; } else { $memberbit = $lang->online_member_singular;
|
{ $memberbit = $lang->online_member_plural; } else { $memberbit = $lang->online_member_singular;
|
}
| }
|
if($anoncount != 1) { $anonbit = $lang->online_anon_plural;
|
if($anoncount != 1) { $anonbit = $lang->online_anon_plural;
|
} else
| } else
|
{ $anonbit = $lang->online_anon_singular;
|
{ $anonbit = $lang->online_anon_singular;
|
}
| }
|
if($guestcount != 1)
|
if($guestcount != 1)
|
{
| {
|
$guestbit = $lang->online_guest_plural; } else
| $guestbit = $lang->online_guest_plural; } else
|
Zeile 215 | Zeile 230 |
---|
$lang->online_note = $lang->sprintf($lang->online_note, my_number_format($onlinecount), $onlinebit, $mybb->settings['wolcutoffmins'], my_number_format($membercount), $memberbit, my_number_format($anoncount), $anonbit, my_number_format($guestcount), $guestbit); eval('$whosonline = "'.$templates->get('index_whosonline').'";'); }
|
$lang->online_note = $lang->sprintf($lang->online_note, my_number_format($onlinecount), $onlinebit, $mybb->settings['wolcutoffmins'], my_number_format($membercount), $memberbit, my_number_format($anoncount), $anonbit, my_number_format($guestcount), $guestbit); eval('$whosonline = "'.$templates->get('index_whosonline').'";'); }
|
|
|
// Build the birthdays for to show on the index page. $bdays = $birthdays = ''; if($mybb->settings['showbirthdays'] != 0)
| // Build the birthdays for to show on the index page. $bdays = $birthdays = ''; if($mybb->settings['showbirthdays'] != 0)
|
Zeile 233 | Zeile 248 |
---|
$bdaycache = $cache->read('birthdays'); }
|
$bdaycache = $cache->read('birthdays'); }
|
$hiddencount = $today_bdays = 0;
| $hiddencount = 0; $today_bdays = array();
|
if(isset($bdaycache[$bdaydate])) {
|
if(isset($bdaycache[$bdaydate])) {
|
$hiddencount = $bdaycache[$bdaydate]['hiddencount']; $today_bdays = $bdaycache[$bdaydate]['users'];
| if(isset($bdaycache[$bdaydate]['hiddencount'])) { $hiddencount = $bdaycache[$bdaydate]['hiddencount']; } if(isset($bdaycache[$bdaydate]['users'])) { $today_bdays = $bdaycache[$bdaydate]['users']; }
|
}
$comma = '';
| }
$comma = '';
|
Zeile 278 | Zeile 300 |
---|
}
// If this user's display group can't be seen in the birthday list, skip it
|
}
// If this user's display group can't be seen in the birthday list, skip it
|
if($groupscache[$bdayuser['displaygroup']] && $groupscache[$bdayuser['displaygroup']]['showinbirthdaylist'] != 1)
| if(isset($groupscache[$bdayuser['displaygroup']]) && $groupscache[$bdayuser['displaygroup']]['showinbirthdaylist'] != 1)
|
{ continue; }
| { continue; }
|
Zeile 340 | Zeile 362 |
---|
// Find out what the highest users online count is. $mostonline = $cache->read('mostonline');
|
// Find out what the highest users online count is. $mostonline = $cache->read('mostonline');
|
if($onlinecount > $mostonline['numusers'])
| if($onlinecount !== null && $onlinecount > $mostonline['numusers'])
|
{ $time = TIME_NOW; $mostonline['numusers'] = $onlinecount;
| { $time = TIME_NOW; $mostonline['numusers'] = $onlinecount;
|
Zeile 392 | Zeile 414 |
---|
$forumsread = array(); if(isset($mybb->cookies['mybb']['forumread'])) {
|
$forumsread = array(); if(isset($mybb->cookies['mybb']['forumread'])) {
|
$forumsread = my_unserialize($mybb->cookies['mybb']['forumread']);
| $forumsread = my_unserialize($mybb->cookies['mybb']['forumread'], false);
|
} } else
| } } else
|