Vergleich index.php - 1.8.19 - 1.8.22

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

	if(!empty($logoutlink))

	{
$stats_page_separator = $lang->board_stats_link_separator;

	{
$stats_page_separator = $lang->board_stats_link_separator;

	}

	}

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


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


Zeile 61Zeile 49
	{
$order_by = 'u.username ASC';
$order_by2 = 's.time DESC';

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

	}
else
{

	}
else
{

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


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


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
































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

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

if($mybb->settings['showforumviewing'] != 0)
{
$query = $db->query("
SELECT
location1, COUNT(DISTINCT ip) AS guestcount
FROM
".TABLE_PREFIX."sessions
WHERE uid = 0 AND time > $timesearch
GROUP BY location1
");

while($location = $db->fetch_array($query))
{
$guestcount += $location['guestcount'];

if($location['location1'])
{
$forum_viewers[$location['location1']] += $location['guestcount'];
}
}
}
else
{
$query = $db->simple_select("sessions", "COUNT(DISTINCT ip) AS guestcount", "uid = 0 AND time > $timesearch");
$guestcount = $db->fetch_field($query, "guestcount");
}


	$query = $db->query("

	$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
LEFT JOIN ".TABLE_PREFIX."users u ON (s.uid=u.uid)
WHERE s.time > '".$timesearch."'



		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
LEFT JOIN ".TABLE_PREFIX."users u ON (s.uid=u.uid)
WHERE (s.uid != 0 OR SUBSTR(s.sid,4,1) = '=') AND s.time > $timesearch

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

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


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

 

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


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

Zeile 125Zeile 143
		elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey])
{
if($mybb->settings['wolorder'] == 'username')

		elseif(my_strpos($user['sid'], 'bot=') !== false && $spiders[$botkey])
{
if($mybb->settings['wolorder'] == 'username')

			{

			{

				$key = $spiders[$botkey]['name'];

				$key = $spiders[$botkey]['name'];

			}

			}

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

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

Zeile 136Zeile 154
			// 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;

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

 
		}

if($user['location1'])

		}

if($user['location1'])