Vergleich index.php - 1.6.10 - 1.6.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 12Zeile 12
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'index.php');


define("IN_MYBB", 1);
define('THIS_SCRIPT', 'index.php');


$templatelist = "index,index_whosonline,index_whosonline_memberbit,forumbit_depth1_cat,forumbit_depth1_forum,forumbit_depth2_cat,forumbit_depth2_forum,forumbit_depth1_forum_lastpost,forumbit_depth2_forum_lastpost,forumbit_moderators,forumbit_subforums";

$templatelist = "index,index_whosonline,index_whosonline_memberbit,forumbit_depth1_cat,forumbit_depth2_cat,forumbit_depth2_forum,forumbit_depth1_forum_lastpost,forumbit_depth2_forum_lastpost,forumbit_moderators,forumbit_subforums";

$templatelist .= ",index_birthdays_birthday,index_birthdays,index_loginform,index_logoutlink,index_stats,forumbit_depth3,forumbit_depth3_statusicon,index_boardstats";

require_once "./global.php";

$templatelist .= ",index_birthdays_birthday,index_birthdays,index_loginform,index_logoutlink,index_stats,forumbit_depth3,forumbit_depth3_statusicon,index_boardstats";

require_once "./global.php";

Zeile 138Zeile 138

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

	



	if($onlinecount != 1)
{
$onlinebit = $lang->online_online_plural;

	if($onlinecount != 1)
{
$onlinebit = $lang->online_online_plural;

Zeile 184Zeile 184
	$bdaytime = TIME_NOW;
$bdaydate = my_date("j-n", $bdaytime, '', 0);
$year = my_date("Y", $bdaytime, '', 0);

	$bdaytime = TIME_NOW;
$bdaydate = my_date("j-n", $bdaytime, '', 0);
$year = my_date("Y", $bdaytime, '', 0);

	



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

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

	



	if(!is_array($bdaycache))
{
$cache->update_birthdays();
$bdaycache = $cache->read("birthdays");
}

	if(!is_array($bdaycache))
{
$cache->update_birthdays();
$bdaycache = $cache->read("birthdays");
}

	



	$hiddencount = $today_bdays = 0;
if(isset($bdaycache[$bdaydate]))
{

	$hiddencount = $today_bdays = 0;
if(isset($bdaycache[$bdaydate]))
{

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

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

	



	// If there are one or more birthdays, show them.
if($bdaycount > 0 || $hiddencount > 0)
{

	// If there are one or more birthdays, show them.
if($bdaycount > 0 || $hiddencount > 0)
{

Zeile 345Zeile 345
		WHERE active != 0
ORDER BY pid, disporder
");

		WHERE active != 0
ORDER BY pid, disporder
");

	



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

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

Zeile 375Zeile 375

// Get the forum moderators if the setting is enabled.
if($mybb->settings['modlist'] != "off")


// Get the forum moderators if the setting is enabled.
if($mybb->settings['modlist'] != "off")

{	

{

	$moderatorcache = $cache->read("moderators");
}


	$moderatorcache = $cache->read("moderators");
}