Vergleich index.php - 1.8.23 - 1.8.38

  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 110Zeile 119
				if($user['invisible'] == 1)
{
++$anoncount;

				if($user['invisible'] == 1)
{
++$anoncount;

				}

				}

				++$membercount;
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid'])
{

				++$membercount;
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid'])
{

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 151Zeile 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 159Zeile 175
	{
// activity ordering is DESC, username is ASC
krsort($onlinebots);

	{
// activity ordering is DESC, username is ASC
krsort($onlinebots);

	}

	}

	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 175Zeile 191
	{
$onlinemembers = "";
}

	{
$onlinemembers = "";
}





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

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

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

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)

	{

	{

		$memberbit = $lang->online_member_plural;

		$memberbit = $lang->online_member_plural;

	}
else
{

	}
else
{

		$memberbit = $lang->online_member_singular;
}
if($anoncount != 1)

		$memberbit = $lang->online_member_singular;
}
if($anoncount != 1)

Zeile 218Zeile 234
// 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)

{

{

	// First, see what day this is.
$bdaycount = $bdayhidden = 0;
$bdaydate = my_date('j-n', TIME_NOW, '', 0);

	// First, see what day this is.
$bdaycount = $bdayhidden = 0;
$bdaydate = my_date('j-n', TIME_NOW, '', 0);

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 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 378Zeile 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

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.