Vergleich index.php - 1.6.10 - 1.6.16

  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;

	}
else
{

	}
else
{

		$onlinebit = $lang->online_online_singular;
}
if($membercount != 1)

		$onlinebit = $lang->online_online_singular;
}
if($membercount != 1)

	{

	{

		$memberbit = $lang->online_member_plural;

		$memberbit = $lang->online_member_plural;

	}
else

	}
else

	{
$memberbit = $lang->online_member_singular;
}
if($anoncount != 1)
{
$anonbit = $lang->online_anon_plural;

	{
$memberbit = $lang->online_member_singular;
}
if($anoncount != 1)
{
$anonbit = $lang->online_anon_plural;

	}

	}

	else
{
$anonbit = $lang->online_anon_singular;

	else
{
$anonbit = $lang->online_anon_singular;

	}

	}

	if($guestcount != 1)
{
$guestbit = $lang->online_guest_plural;

	if($guestcount != 1)
{
$guestbit = $lang->online_guest_plural;

	}
else

	}
else

	{
$guestbit = $lang->online_guest_singular;
}

	{
$guestbit = $lang->online_guest_singular;
}

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

	if(!is_array($bdaycache))

	{

	{

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

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

	



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

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

	}


	}


	$comma = '';
if(!empty($today_bdays))
{

	$comma = '';
if(!empty($today_bdays))
{

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 316Zeile 316
	$lang->stats_mostonline = $lang->sprintf($lang->stats_mostonline, my_number_format($recordcount), $recorddate, $recordtime);

eval("\$forumstats = \"".$templates->get("index_stats")."\";");

	$lang->stats_mostonline = $lang->sprintf($lang->stats_mostonline, my_number_format($recordcount), $recorddate, $recordtime);

eval("\$forumstats = \"".$templates->get("index_stats")."\";");

}

}


// Show the board statistics table only if one or more index statistics are enabled.
if(($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0) || $mybb->settings['showindexstats'] != 0 || ($mybb->settings['showbirthdays'] != 0 && $bdaycount > 0))


// Show the board statistics table only if one or more index statistics are enabled.
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.

	if(!is_array($stats))
{
// Load the stats cache.

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");
}