Vergleich index.php - 1.8.27 - 1.8.28

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 42Zeile 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 75Zeile 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 135Zeile 143
			}
}
elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey] && $mybb->settings['woldisplayspiders'] == 1)

			}
}
elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey] && $mybb->settings['woldisplayspiders'] == 1)

		{

		{

			if($mybb->settings['wolorder'] == 'username')
{
$key = $spiders[$botkey]['name'];

			if($mybb->settings['wolorder'] == 'username')
{
$key = $spiders[$botkey]['name'];

Zeile 144Zeile 152
			{
$key = $user['time'];
}

			{
$key = $user['time'];
}





			// The user is a search bot.
$onlinebots[$key] = format_name($spiders[$botkey]['name'], $spiders[$botkey]['usergroup']);
++$botcount;
}


			// The user is a search bot.
$onlinebots[$key] = format_name($spiders[$botkey]['name'], $spiders[$botkey]['usergroup']);
++$botcount;
}


		if($user['location1'])
{
++$forum_viewers[$user['location1']];
}
}









		if($user['location1'])
{
if(isset($forum_viewers[$user['location1']]))
{
++$forum_viewers[$user['location1']];
}
else
{
$forum_viewers[$user['location1']] = 1;
}
}
}


	if($mybb->settings['wolorder'] == 'activity')
{
// activity ordering is DESC, username is ASC
krsort($onlinebots);

	if($mybb->settings['wolorder'] == 'activity')
{
// activity ordering is DESC, username is ASC
krsort($onlinebots);

	}

	}

	else
{
ksort($onlinebots);

	else
{
ksort($onlinebots);

Zeile 168Zeile 183

$onlinemembers = array_merge($onlinebots, $onlinemembers);
if(!empty($onlinemembers))


$onlinemembers = array_merge($onlinebots, $onlinemembers);
if(!empty($onlinemembers))

	{

	{

		$comma = $lang->comma." ";
$onlinemembers = implode($comma, $onlinemembers);
}
else
{
$onlinemembers = "";

		$comma = $lang->comma." ";
$onlinemembers = implode($comma, $onlinemembers);
}
else
{
$onlinemembers = "";

	}

	}


// Build the who's online bit on the index page.
$onlinecount = $membercount + $guestcount + $botcount;


// Build the who's online bit on the index page.
$onlinecount = $membercount + $guestcount + $botcount;

Zeile 184Zeile 199
	{
$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;
}
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 215Zeile 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 233Zeile 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 278Zeile 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 340Zeile 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;