Vergleich index.php - 1.4.0 - 1.4.16

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: index.php 3973 2008-07-03 18:15:00Z Tikitiki $

 * $Id: index.php 5379 2011-02-21 11:06:42Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

 
define('THIS_SCRIPT', 'index.php');


$templatelist = "index,index_whosonline,index_welcomemembertext,index_welcomeguest,index_whosonline_memberbit,forumbit_depth1_cat,forumbit_depth1_forum,forumbit_depth2_cat,forumbit_depth2_forum,forumbit_depth1_forum_lastpost,forumbit_depth2_forum_lastpost,index_modcolumn,forumbit_moderators,forumbit_subforums,index_welcomeguesttext";
$templatelist .= ",index_birthdays_birthday,index_birthdays,index_pms,index_loginform,index_logoutlink,index_stats,forumbit_depth3,forumbit_depth3_statusicon,index_boardstats";


$templatelist = "index,index_whosonline,index_welcomemembertext,index_welcomeguest,index_whosonline_memberbit,forumbit_depth1_cat,forumbit_depth1_forum,forumbit_depth2_cat,forumbit_depth2_forum,forumbit_depth1_forum_lastpost,forumbit_depth2_forum_lastpost,index_modcolumn,forumbit_moderators,forumbit_subforums,index_welcomeguesttext";
$templatelist .= ",index_birthdays_birthday,index_birthdays,index_pms,index_loginform,index_logoutlink,index_stats,forumbit_depth3,forumbit_depth3_statusicon,index_boardstats";

Zeile 124Zeile 125
	}

// Build the who's online bit on the index page.

	}

// Build the who's online bit on the index page.

	$onlinecount = $membercount + $guestcount;


	$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)
{
$memberbit = $lang->online_member_plural;

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

	}

	}

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

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

	{

	{

		$anonbit = $lang->online_anon_plural;

		$anonbit = $lang->online_anon_plural;

	}
else

	}
else

	{
$anonbit = $lang->online_anon_singular;
}

	{
$anonbit = $lang->online_anon_singular;
}

Zeile 159Zeile 161
	}
$lang->online_note = $lang->sprintf($lang->online_note, my_number_format($onlinecount), $onlinebit, $mybb->settings['wolcutoffmins'], my_number_format($membercount), $memberbit, my_number_format($anoncount), $anonbit, my_number_format($guestcount), $guestbit);
eval("\$whosonline = \"".$templates->get("index_whosonline")."\";");

	}
$lang->online_note = $lang->sprintf($lang->online_note, my_number_format($onlinecount), $onlinebit, $mybb->settings['wolcutoffmins'], my_number_format($membercount), $memberbit, my_number_format($anoncount), $anonbit, my_number_format($guestcount), $guestbit);
eval("\$whosonline = \"".$templates->get("index_whosonline")."\";");

}

}


// Build the birthdays for to show on the index page.
$bdays = $birthdays = '';


// Build the birthdays for to show on the index page.
$bdays = $birthdays = '';

Zeile 177Zeile 179
	{
$cache->update_birthdays();
$bdaycache = $cache->read("birthdays");

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

	}

	}

	
$hiddencount = $bdaycache[$bdaydate]['hiddencount'];
$today_bdays = $bdaycache[$bdaydate]['users'];

	
$hiddencount = $bdaycache[$bdaydate]['hiddencount'];
$today_bdays = $bdaycache[$bdaydate]['users'];

Zeile 202Zeile 204
			++$bdaycount;
$comma = ", ";
}

			++$bdaycount;
$comma = ", ";
}

		
if($hiddencount > 0)




	}

if($hiddencount > 0)
{
if($bdaycount > 0)

		{

		{

			if($bdaycount > 0)
{
$bdays .= " - ";
}
$bdays .= "{$hiddencount} {$lang->birthdayhidden}";

			$bdays .= " - ";





		}

		}

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

	}

// If there are one or more birthdays, show them.

	}

// If there are one or more birthdays, show them.

Zeile 234Zeile 236
	else
{
$newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);

	else
{
$newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);

	}

	}


// Format the stats language.
$lang->stats_posts_threads = $lang->sprintf($lang->stats_posts_threads, my_number_format($stats['numposts']), my_number_format($stats['numthreads']));


// Format the stats language.
$lang->stats_posts_threads = $lang->sprintf($lang->stats_posts_threads, my_number_format($stats['numposts']), my_number_format($stats['numthreads']));

Zeile 268Zeile 270
		// Load the stats cache.
$stats = $cache->read("stats");
}

		// Load the stats cache.
$stats = $cache->read("stats");
}

	








$post_code_string = '';
if($mybb->user['uid'])
{
$post_code_string = "&my_post_key=".$mybb->post_code;
}


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


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