Vergleich index.php - 1.8.0 - 1.8.16

  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)
{
eval('$showteamlink = "'.$templates->get('index_showteamlink').'";');

}

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

}

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

{

{

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

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





$whosonline = '';
if($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0)
{
// Get the online users.
if($mybb->settings['wolorder'] == 'username')

$whosonline = '';
if($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0)
{
// Get the online users.
if($mybb->settings['wolorder'] == 'username')

	{

	{

		$order_by = 'u.username ASC';
$order_by2 = 's.time DESC';

		$order_by = 'u.username ASC';
$order_by2 = 's.time DESC';

	}

	}

	else
{
$order_by = 's.time DESC';

	else
{
$order_by = 's.time DESC';

Zeile 53Zeile 59
	}

$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 64Zeile 69

$forum_viewers = $doneusers = array();
$membercount = $guestcount = $anoncount = $botcount = 0;


$forum_viewers = $doneusers = array();
$membercount = $guestcount = $anoncount = $botcount = 0;

	$onlinemembers = $comma = '';

	$onlinemembers = $onlinebots = $comma = '';


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


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

Zeile 100Zeile 105
					}

// Properly format the username and assign the template.

					}

// Properly format the username and assign the template.

					$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);

					$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;

					$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
eval('$onlinemembers .= "'.$templates->get('index_whosonline_memberbit', 1, 0).'";');
$comma = $lang->comma;

				}

				}

				// This user has been handled.
$doneusers[$user['uid']] = $user['time'];
}
}
elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey])

				// This user has been handled.
$doneusers[$user['uid']] = $user['time'];
}
}
elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey])

		{

		{

			// The user is a search bot.

			// The user is a search bot.

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

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

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

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

Zeile 120Zeile 125
		{
// The user is a guest.
++$guestcount;

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

		}


		}


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

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

 
 
if(trim($onlinebots) == "" || trim($onlinemembers) == "")
{
$comma = "";
}
else
{
$comma = $lang->comma;
}

$onlinemembers = $onlinebots.$comma.$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 241Zeile 257
					$age = ' ('.($year - $bday['2']).')';
}


					$age = ' ('.($year - $bday['2']).')';
}


				$bdayuser['username'] = format_name($bdayuser['username'], $bdayuser['usergroup'], $bdayuser['displaygroup']);

				$bdayuser['username'] = format_name(htmlspecialchars_uni($bdayuser['username']), $bdayuser['usergroup'], $bdayuser['displaygroup']);

				$bdayuser['profilelink'] = build_profile_link($bdayuser['username'], $bdayuser['uid']);
eval('$bdays .= "'.$templates->get('index_birthdays_birthday', 1, 0).'";');
++$bdaycount;
$comma = $lang->comma;
}

				$bdayuser['profilelink'] = build_profile_link($bdayuser['username'], $bdayuser['uid']);
eval('$bdays .= "'.$templates->get('index_birthdays_birthday', 1, 0).'";');
++$bdaycount;
$comma = $lang->comma;
}

		}
}


		}
}


	if($hiddencount > 0)
{
if($bdaycount > 0)

	if($hiddencount > 0)
{
if($bdaycount > 0)

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

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


$post_code_string = '';
if($mybb->user['uid'])
{
$post_code_string = '&my_post_key='.$mybb->post_code;
}


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






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


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