Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: index.php 3973 2008-07-03 18:15:00Z Tikitiki $
| * $Id: index.php 4249 2008-10-25 05:37:16Z Tikitiki $
|
*/
define("IN_MYBB", 1);
|
*/
define("IN_MYBB", 1);
|
| define('THIS_SCRIPT', 'index.php');
|
$templatelist = "index,index_whosonline,index_welcomemembertext,index_welcomeguest,index_whosonline_memberbit,forumbit_depth1_cat,forumbit_depth1_forum,forumbit_depth2_cat,forumbit_depth2_forum,forumbit_depth1_forum_lastpost,forumbit_depth2_forum_lastpost,index_modcolumn,forumbit_moderators,forumbit_subforums,index_welcomeguesttext"; $templatelist .= ",index_birthdays_birthday,index_birthdays,index_pms,index_loginform,index_logoutlink,index_stats,forumbit_depth3,forumbit_depth3_statusicon,index_boardstats";
| $templatelist = "index,index_whosonline,index_welcomemembertext,index_welcomeguest,index_whosonline_memberbit,forumbit_depth1_cat,forumbit_depth1_forum,forumbit_depth2_cat,forumbit_depth2_forum,forumbit_depth1_forum_lastpost,forumbit_depth2_forum_lastpost,index_modcolumn,forumbit_moderators,forumbit_subforums,index_welcomeguesttext"; $templatelist .= ",index_birthdays_birthday,index_birthdays,index_pms,index_loginform,index_logoutlink,index_stats,forumbit_depth3,forumbit_depth3_statusicon,index_boardstats";
|
Zeile 124 | Zeile 125 |
---|
}
// Build the who's online bit on the index page.
|
}
// Build the who's online bit on the index page.
|
$onlinecount = $membercount + $guestcount; if($onlinecount != 1)
| $onlinecount = $membercount + $guestcount + $botcount; // If we can see invisible users add them to the count if($mybb->usergroup['canviewwolinvis'] == 1) { $onlinecount += $anoncount; } // If we can't see invisible users but the user is an invisible user incriment the count by one if($mybb->usergroup['canviewwolinvis'] != 1 && $mybb->user['invisible'] == 1) { ++$onlinecount; } if($onlinecount != 1)
|
{ $onlinebit = $lang->online_online_plural;
|
{ $onlinebit = $lang->online_online_plural;
|
}
| }
|
else { $onlinebit = $lang->online_online_singular; } if($membercount != 1)
|
else { $onlinebit = $lang->online_online_singular; } if($membercount != 1)
|
{
| {
|
$memberbit = $lang->online_member_plural;
|
$memberbit = $lang->online_member_plural;
|
}
| }
|
else
|
else
|
{
| {
|
$memberbit = $lang->online_member_singular; } if($anoncount != 1) { $anonbit = $lang->online_anon_plural;
|
$memberbit = $lang->online_member_singular; } if($anoncount != 1) { $anonbit = $lang->online_anon_plural;
|
} else {
| } else {
|
$anonbit = $lang->online_anon_singular;
|
$anonbit = $lang->online_anon_singular;
|
}
| }
|
if($guestcount != 1) { $guestbit = $lang->online_guest_plural; } else
|
if($guestcount != 1) { $guestbit = $lang->online_guest_plural; } else
|
{
| {
|
$guestbit = $lang->online_guest_singular; } $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);
| $guestbit = $lang->online_guest_singular; } $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);
|
Zeile 174 | Zeile 188 |
---|
$bdaycache = $cache->read("birthdays"); if(!is_array($bdaycache))
|
$bdaycache = $cache->read("birthdays"); if(!is_array($bdaycache))
|
{
| {
|
$cache->update_birthdays(); $bdaycache = $cache->read("birthdays"); }
|
$cache->update_birthdays(); $bdaycache = $cache->read("birthdays"); }
|
|
|
$hiddencount = $bdaycache[$bdaydate]['hiddencount']; $today_bdays = $bdaycache[$bdaydate]['users']; $comma = ''; if(!empty($today_bdays))
|
$hiddencount = $bdaycache[$bdaydate]['hiddencount']; $today_bdays = $bdaycache[$bdaydate]['users']; $comma = ''; if(!empty($today_bdays))
|
{
| {
|
foreach($today_bdays as $bdayuser) { $bday = explode("-", $bdayuser['birthday']);
| foreach($today_bdays as $bdayuser) { $bday = explode("-", $bdayuser['birthday']);
|
Zeile 202 | Zeile 216 |
---|
++$bdaycount; $comma = ", "; }
|
++$bdaycount; $comma = ", "; }
|
if($hiddencount > 0)
| } if($hiddencount > 0) { if($bdaycount > 0)
|
{
|
{
|
if($bdaycount > 0) { $bdays .= " - "; } $bdays .= "{$hiddencount} {$lang->birthdayhidden}";
| $bdays .= " - ";
|
}
|
}
|
| $bdays .= "{$hiddencount} {$lang->birthdayhidden}";
|
} // If there are one or more birthdays, show them.
| } // If there are one or more birthdays, show them.
|