Vergleich index.php - 1.6.6 - 1.6.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: index.php 5594 2011-09-14 13:13:41Z Tomm $

 * $Id: index.php 5765 2012-03-27 09:52:45Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 38Zeile 38
	//Function call is not fatal
if(login_attempt_check(false) !== false)
{

	//Function call is not fatal
if(login_attempt_check(false) !== false)
{

 
		switch($mybb->settings['username_method'])
{
case 0:
$login_username = $lang->login_username;
break;
case 1:
$login_username = $lang->login_username1;
break;
case 2:
$login_username = $lang->login_username2;
break;
default:
$login_username = $lang->login_username;
break;
}

		eval("\$loginform = \"".$templates->get("index_loginform")."\";");
}
}

		eval("\$loginform = \"".$templates->get("index_loginform")."\";");
}
}

Zeile 113Zeile 128
			++$botcount;
}
else

			++$botcount;
}
else

		{

		{

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

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

Zeile 303Zeile 318
}

// Show the board statistics table only if one or more index statistics are enabled.

}

// Show the board statistics table only if one or more index statistics are enabled.

if($mybb->settings['showwol'] != 0 || $mybb->settings['showindexstats'] != 0 || ($mybb->settings['showbirthdays'] != 0 && $bdaycount > 0))
{

if(($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0) || $mybb->settings['showindexstats'] != 0 || ($mybb->settings['showbirthdays'] != 0 && $bdaycount > 0))
{

	if(!is_array($stats))
{
// Load the stats cache.
$stats = $cache->read("stats");

	if(!is_array($stats))
{
// Load the stats cache.
$stats = $cache->read("stats");

	}

	}


$post_code_string = '';
if($mybb->user['uid'])


$post_code_string = '';
if($mybb->user['uid'])

Zeile 318Zeile 333
	}

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

	}

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

}

}


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


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

{
// Build a forum cache.
$query = $db->query("

{
// Build a forum cache.
$query = $db->query("

		SELECT *
FROM ".TABLE_PREFIX."forums
WHERE active != 0

		SELECT *
FROM ".TABLE_PREFIX."forums
WHERE active != 0

		ORDER BY pid, disporder
");

		ORDER BY pid, disporder
");

	

	

	$forumsread = unserialize($mybb->cookies['mybb']['forumread']);

	$forumsread = my_unserialize($mybb->cookies['mybb']['forumread']);

}
else
{

}
else
{

Zeile 343Zeile 358
		ORDER BY pid, disporder
");
}

		ORDER BY pid, disporder
");
}

 


while($forum = $db->fetch_array($query))
{
if($mybb->user['uid'] == 0)

while($forum = $db->fetch_array($query))
{
if($mybb->user['uid'] == 0)