Vergleich index.php - 1.6.3 - 1.6.6

  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 5440 2011-04-15 10:18:35Z Tomm $

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

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

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

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

	



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

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

		foreach($today_bdays as $bdayuser)

		if(intval($mybb->settings['showbirthdayspostlimit']) > 0)

		{

		{

			$bday = explode("-", $bdayuser['birthday']);
if($year > $bday['2'] && $bday['2'] != '')

























			$bdayusers = array();
foreach($today_bdays as $key => $bdayuser_pc)
{
$bdayusers[$bdayuser_pc['uid']] = $key;
}

if(!empty($bdayusers))
{
// Find out if our users have enough posts to be seen on our birthday list
$bday_sql = implode(",", array_keys($bdayusers));
$query = $db->simple_select("users", "uid, postnum", "uid IN ({$bday_sql})");

while($bdayuser = $db->fetch_array($query))
{
if($bdayuser['postnum'] < $mybb->settings['showbirthdayspostlimit'])
{
unset($today_bdays[$bdayusers[$bdayuser['uid']]]);
}
}
}
}

// We still have birthdays - display them in our list!
if(!empty($today_bdays))
{
foreach($today_bdays as $bdayuser)

			{

			{

				$age = " (".($year - $bday['2']).")";


























				if($bdayuser['displaygroup'] == 0)
{
$bdayuser['displaygroup'] = $bdayuser['usergroup'];
}

// If this user's display group can't be seen in the birthday list, skip it
if($groupscache[$bdayuser['displaygroup']] && $groupscache[$bdayuser['displaygroup']]['showinbirthdaylist'] != 1)
{
continue;
}

$bday = explode("-", $bdayuser['birthday']);
if($year > $bday['2'] && $bday['2'] != '')
{
$age = " (".($year - $bday['2']).")";
}
else
{
$age = '';
}

$bdayuser['username'] = format_name($bdayuser['username'], $bdayuser['usergroup'], $bdayuser['displaygroup']);
$bdayuser['profilelink'] = build_profile_link($bdayuser['username'], $bdayuser['uid']);
eval("\$bdays .= \"".$templates->get("index_birthdays_birthday", 1, 0)."\";");
++$bdaycount;
$comma = $lang->comma;

			}

			}

			else
{
$age = '';
}
$bdayuser['username'] = format_name($bdayuser['username'], $bdayuser['usergroup'], $bdayuser['displaygroup']);
$bdayuser['profilelink'] = build_profile_link($bdayuser['username'], $bdayuser['uid']);
eval("\$bdays .= \"".$templates->get("index_birthdays_birthday", 1, 0)."\";");
++$bdaycount;
$comma = $lang->comma;

 
		}
}

		}
}

	



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

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

Zeile 274Zeile 314
	$post_code_string = '';
if($mybb->user['uid'])
{

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

		$post_code_string = "&my_post_key=".$mybb->post_code;

		$post_code_string = "&amp;my_post_key=".$mybb->post_code;

	}

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

	}

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