Vergleich index.php - 1.8.12 - 1.8.19

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 29Zeile 29
if($mybb->user['uid'] != 0)
{
eval('$logoutlink = "'.$templates->get('index_logoutlink').'";');

if($mybb->user['uid'] != 0)
{
eval('$logoutlink = "'.$templates->get('index_logoutlink').'";');

 
}

$showteamlink = '';
if($mybb->settings['enableshowteam'] != 0)
{
$show_team_link_separator = '';
if(!empty($logoutlink))
{
$show_team_link_separator = $lang->board_stats_link_separator;
}

eval('$showteamlink = "'.$templates->get('index_showteamlink').'";');

}

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

}

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

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

	eval('$statspage = "'.$templates->get('index_statspage').'";');
}


	eval('$statspage = "'.$templates->get('index_statspage').'";');
}


Zeile 53Zeile 69
	}

$timesearch = TIME_NOW - (int)$mybb->settings['wolcutoff'];

	}

$timesearch = TIME_NOW - (int)$mybb->settings['wolcutoff'];

	$comma = '';

 
	$query = $db->query("
SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.invisible, u.usergroup, u.displaygroup
FROM ".TABLE_PREFIX."sessions s

	$query = $db->query("
SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.invisible, u.usergroup, u.displaygroup
FROM ".TABLE_PREFIX."sessions s

Zeile 62Zeile 77
		ORDER BY {$order_by}, {$order_by2}
");


		ORDER BY {$order_by}, {$order_by2}
");


	$forum_viewers = $doneusers = array();

	$forum_viewers = $doneusers = $onlinemembers = $onlinebots = array();

	$membercount = $guestcount = $anoncount = $botcount = 0;

	$membercount = $guestcount = $anoncount = $botcount = 0;

	$onlinemembers = $comma = '';

 

// Fetch spiders
$spiders = $cache->read('spiders');


// Fetch spiders
$spiders = $cache->read('spiders');





	// Loop through all users.
while($user = $db->fetch_array($query))
{

	// Loop through all users.
while($user = $db->fetch_array($query))
{

Zeile 102Zeile 116
					// Properly format the username and assign the template.
$user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);

					// Properly format the username and assign the template.
$user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);

					eval('$onlinemembers .= "'.$templates->get('index_whosonline_memberbit', 1, 0).'";');
$comma = $lang->comma;

					eval('$onlinemembers[] = "'.$templates->get('index_whosonline_memberbit', 1, 0).'";');


				}
// This user has been handled.
$doneusers[$user['uid']] = $user['time'];

				}
// This user has been handled.
$doneusers[$user['uid']] = $user['time'];

Zeile 111Zeile 124
		}
elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey])
{

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

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


			// The user is a search bot.

			// The user is a search bot.

			$onlinemembers .= $comma.format_name($spiders[$botkey]['name'], $spiders[$botkey]['usergroup']);
$comma = $lang->comma;

			$onlinebots[$key] = format_name($spiders[$botkey]['name'], $spiders[$botkey]['usergroup']);


			++$botcount;
}
else
{
// The user is a guest.
++$guestcount;

			++$botcount;
}
else
{
// The user is a guest.
++$guestcount;

		}

		}


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


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

	}























	}

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

$onlinemembers = array_merge($onlinebots, $onlinemembers);
if(!empty($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 142Zeile 184
	if($membercount != 1)
{
$memberbit = $lang->online_member_plural;

	if($membercount != 1)
{
$memberbit = $lang->online_member_plural;

	}

	}

	else
{
$memberbit = $lang->online_member_singular;

	else
{
$memberbit = $lang->online_member_singular;

Zeile 150Zeile 192
	if($anoncount != 1)
{
$anonbit = $lang->online_anon_plural;

	if($anoncount != 1)
{
$anonbit = $lang->online_anon_plural;

	}
else

	}
else

	{
$anonbit = $lang->online_anon_singular;
}
if($guestcount != 1)

	{
$anonbit = $lang->online_anon_singular;
}
if($guestcount != 1)

	{

	{

		$guestbit = $lang->online_guest_plural;
}
else

		$guestbit = $lang->online_guest_plural;
}
else

Zeile 177Zeile 219
	$year = my_date('Y', TIME_NOW, '', 0);

$bdaycache = $cache->read('birthdays');

	$year = my_date('Y', TIME_NOW, '', 0);

$bdaycache = $cache->read('birthdays');





	if(!is_array($bdaycache))
{
$cache->update_birthdays();

	if(!is_array($bdaycache))
{
$cache->update_birthdays();

Zeile 247Zeile 289
				++$bdaycount;
$comma = $lang->comma;
}

				++$bdaycount;
$comma = $lang->comma;
}

		}

		}

	}

if($hiddencount > 0)

	}

if($hiddencount > 0)

Zeile 256Zeile 298
		{
$bdays .= ' - ';
}

		{
$bdays .= ' - ';
}





		$bdays .= "{$hiddencount} {$lang->birthdayhidden}";
}


		$bdays .= "{$hiddencount} {$lang->birthdayhidden}";
}


Zeile 282Zeile 324
	else
{
$newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);

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

	}

	}


// Format the stats language.
$lang->stats_posts_threads = $lang->sprintf($lang->stats_posts_threads, my_number_format($stats['numposts']), my_number_format($stats['numthreads']));


// Format the stats language.
$lang->stats_posts_threads = $lang->sprintf($lang->stats_posts_threads, my_number_format($stats['numposts']), my_number_format($stats['numthreads']));

Zeile 304Zeile 346

// Then format that language string.
$lang->stats_mostonline = $lang->sprintf($lang->stats_mostonline, my_number_format($recordcount), $recorddate, $recordtime);


// Then format that language string.
$lang->stats_mostonline = $lang->sprintf($lang->stats_mostonline, my_number_format($recordcount), $recorddate, $recordtime);





	eval('$forumstats = "'.$templates->get('index_stats').'";');
}


	eval('$forumstats = "'.$templates->get('index_stats').'";');
}


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

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




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

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


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