Vergleich index.php - 1.8.23 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 34Zeile 34
$statspage = '';
if($mybb->settings['statsenabled'] != 0)
{

$statspage = '';
if($mybb->settings['statsenabled'] != 0)
{

 
	$stats_page_separator = '';

	if(!empty($logoutlink))
{
$stats_page_separator = $lang->board_stats_link_separator;

	if(!empty($logoutlink))
{
$stats_page_separator = $lang->board_stats_link_separator;

Zeile 41Zeile 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 74Zeile 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 107Zeile 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)

				if($user['invisible'] == 1 && $mybb->usergroup['canbeinvisible'] == 1)

				{
++$anoncount;
}

				{
++$anoncount;
}

Zeile 115Zeile 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)

					if($user['invisible'] == 1 && $mybb->usergroup['canbeinvisible'] == 1)

					{
$invisiblemark = '*';
}

					{
$invisiblemark = '*';
}

Zeile 133Zeile 142
				$doneusers[$user['uid']] = $user['time'];
}
}

				$doneusers[$user['uid']] = $user['time'];
}
}

		elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey])

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

		{
if($mybb->settings['wolorder'] == 'username')
{

		{
if($mybb->settings['wolorder'] == 'username')
{

Zeile 147Zeile 156
			// 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'])
{

		if($user['location1'])
{

			++$forum_viewers[$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

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

Zeile 163Zeile 179
	else
{
ksort($onlinebots);

	else
{
ksort($onlinebots);

	}

	}


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


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

	{

	{

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

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

Zeile 182Zeile 198
	if($onlinecount != 1)
{
$onlinebit = $lang->online_online_plural;

	if($onlinecount != 1)
{
$onlinebit = $lang->online_online_plural;

	}
else
{

	}
else
{

		$onlinebit = $lang->online_online_singular;
}
if($membercount != 1)

		$onlinebit = $lang->online_online_singular;
}
if($membercount != 1)

Zeile 232Zeile 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 257Zeile 280
				$query = $db->simple_select('users', 'uid, postnum', "uid IN ({$bday_sql})");

while($bdayuser = $db->fetch_array($query))

				$query = $db->simple_select('users', 'uid, postnum', "uid IN ({$bday_sql})");

while($bdayuser = $db->fetch_array($query))

				{

				{

					if($bdayuser['postnum'] < $mybb->settings['showbirthdayspostlimit'])
{
unset($today_bdays[$bdayusers[$bdayuser['uid']]]);

					if($bdayuser['postnum'] < $mybb->settings['showbirthdayspostlimit'])
{
unset($today_bdays[$bdayusers[$bdayuser['uid']]]);

Zeile 277Zeile 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 328Zeile 351
		$newestmember = $lang->nobody;;
}
else

		$newestmember = $lang->nobody;;
}
else

	{

	{

		$newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);
}


		$newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);
}


Zeile 339Zeile 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 365Zeile 388
		// Load the stats cache.
$stats = $cache->read('stats');
}

		// Load the stats cache.
$stats = $cache->read('stats');
}

	
$expaltext = (in_array("boardstats", $collapse)) ? "[+]" : "[-]";















if(!isset($collapsedthead['boardstats']))
{
$collapsedthead['boardstats'] = '';
}
if(!isset($collapsedimg['boardstats']))
{
$collapsedimg['boardstats'] = '';
}
if(!isset($collapsed['boardstats_e']))
{
$collapsed['boardstats_e'] = '';
}

$expaltext = (in_array("boardstats", $collapse)) ? $lang->expcol_expand : $lang->expcol_collapse;

	eval('$boardstats = "'.$templates->get('index_boardstats').'";');
}


	eval('$boardstats = "'.$templates->get('index_boardstats').'";');
}


Zeile 414Zeile 450
}

$excols = 'index';

}

$excols = 'index';

$permissioncache['-1'] = '1';

$permissioncache = null;

$bgcolor = 'trow1';

// Decide if we're showing first-level subforums on the index page.

$bgcolor = 'trow1';

// Decide if we're showing first-level subforums on the index page.