Vergleich index.php - 1.8.22 - 1.8.25

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 19Zeile 19
require_once MYBB_ROOT.'inc/functions_forumlist.php';
require_once MYBB_ROOT.'inc/class_parser.php';
$parser = new postParser;

require_once MYBB_ROOT.'inc/functions_forumlist.php';
require_once MYBB_ROOT.'inc/class_parser.php';
$parser = new postParser;


$plugins->run_hooks('index_start');

 

// Load global language phrases
$lang->load('index');


// Load global language phrases
$lang->load('index');

 

$plugins->run_hooks('index_start');


$logoutlink = '';
if($mybb->user['uid'] != 0)


$logoutlink = '';
if($mybb->user['uid'] != 0)

Zeile 33Zeile 33

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


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

{

{

	if(!empty($logoutlink))
{
$stats_page_separator = $lang->board_stats_link_separator;
}
eval('$statspage = "'.$templates->get('index_statspage').'";');
}

	if(!empty($logoutlink))
{
$stats_page_separator = $lang->board_stats_link_separator;
}
eval('$statspage = "'.$templates->get('index_statspage').'";');
}





$whosonline = '';
if($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0)
{

$whosonline = '';
if($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0)
{

Zeile 54Zeile 54
	{
$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'];


Zeile 68Zeile 68
				location1, COUNT(DISTINCT ip) AS guestcount
FROM
".TABLE_PREFIX."sessions

				location1, COUNT(DISTINCT ip) AS guestcount
FROM
".TABLE_PREFIX."sessions

			WHERE uid = 0 AND time > $timesearch

			WHERE uid = 0 AND location1 != 0 AND SUBSTR(sid,4,1) != '=' AND time > $timesearch

			GROUP BY location1
");

while($location = $db->fetch_array($query))
{

			GROUP BY location1
");

while($location = $db->fetch_array($query))
{

			$guestcount += $location['guestcount'];

if($location['location1'])
{
$forum_viewers[$location['location1']] += $location['guestcount'];
}

			$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->simple_select("sessions", "COUNT(DISTINCT ip) AS guestcount", "uid = 0 AND SUBSTR(sid,4,1) != '=' AND time > $timesearch");
$guestcount = $db->fetch_field($query, "guestcount");




$query = $db->query("
SELECT


$query = $db->query("
SELECT

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


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


	// Loop through all users.

	// Loop through all users and spiders.

	while($user = $db->fetch_array($query))
{
// Create a key to test if this user is a search bot.

	while($user = $db->fetch_array($query))
{
// Create a key to test if this user is a search bot.