Vergleich calendar.php - 1.8.2 - 1.8.3

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1487Zeile 1487
		}
$event['userstars'] = '';
}

		}
$event['userstars'] = '';
}

 

$event['usertitle'] = htmlspecialchars_uni($event['usertitle']);


if($event['ignoretimezone'] == 0)
{
$offset = $event['timezone'];
}
else


if($event['ignoretimezone'] == 0)
{
$offset = $event['timezone'];
}
else

	{

	{

		$offset = $mybb->user['timezone'];
}

$event['starttime_user'] = $event['starttime']+$offset*3600;

		$offset = $mybb->user['timezone'];
}

$event['starttime_user'] = $event['starttime']+$offset*3600;





	// Events over more than one day
$time_period = '';
if($event['endtime'] > 0 && $event['endtime'] != $event['starttime'])

	// Events over more than one day
$time_period = '';
if($event['endtime'] > 0 && $event['endtime'] != $event['starttime'])

Zeile 1530Zeile 1532
			$time_period = gmdate($mybb->settings['dateformat'], $event['starttime_user']).", ".gmdate($mybb->settings['timeformat'], $event['starttime_user']);
$time_period .= " - ";
$time_period .= gmdate($mybb->settings['dateformat'], $event['endtime_user']).", ".gmdate($mybb->settings['timeformat'], $event['endtime_user']);

			$time_period = gmdate($mybb->settings['dateformat'], $event['starttime_user']).", ".gmdate($mybb->settings['timeformat'], $event['starttime_user']);
$time_period .= " - ";
$time_period .= gmdate($mybb->settings['dateformat'], $event['endtime_user']).", ".gmdate($mybb->settings['timeformat'], $event['endtime_user']);

		}

		}

	}
else
{

	}
else
{

Zeile 1615Zeile 1617
	if($calendar_permissions['canviewcalendar']  != 1)
{
error_no_permission();

	if($calendar_permissions['canviewcalendar']  != 1)
{
error_no_permission();

	}

	}


// Incoming year?
$mybb->input['year'] = $mybb->get_input('year', 1);


// Incoming year?
$mybb->input['year'] = $mybb->get_input('year', 1);

Zeile 1626Zeile 1628
	else
{
$year = my_date("Y");

	else
{
$year = my_date("Y");

	}

	}


// Then the month
$mybb->input['month'] = $mybb->get_input('month', 1);


// Then the month
$mybb->input['month'] = $mybb->get_input('month', 1);

Zeile 1637Zeile 1639
	else
{
$month = my_date("n");

	else
{
$month = my_date("n");

	}

	}


// And day?
$mybb->input['day'] = $mybb->get_input('day', 1);
if($mybb->input['day'] && $mybb->input['day'] <= gmdate("t", gmmktime(0, 0, 0, $month, 1, $year)))


// And day?
$mybb->input['day'] = $mybb->get_input('day', 1);
if($mybb->input['day'] && $mybb->input['day'] <= gmdate("t", gmmktime(0, 0, 0, $month, 1, $year)))

	{

	{

		$day = $mybb->input['day'];
}
else

		$day = $mybb->input['day'];
}
else

Zeile 1658Zeile 1660
	// Load Birthdays for this day
$birthday_list = $birthdays = '';
if($calendar['showbirthdays'])

	// Load Birthdays for this day
$birthday_list = $birthdays = '';
if($calendar['showbirthdays'])

	{

	{

		$birthdays2 = get_birthdays($month, $day);
$bdayhidden = 0;
if(is_array($birthdays2))

		$birthdays2 = get_birthdays($month, $day);
$bdayhidden = 0;
if(is_array($birthdays2))

Zeile 1785Zeile 1787
							break;
}
}

							break;
}
}

				}


				}


				if($user_usergroup['stars'])
{
$event['stars'] = $user_usergroup['stars'];

				if($user_usergroup['stars'])
{
$event['stars'] = $user_usergroup['stars'];

Zeile 1795Zeile 1797
				if(empty($event['starimage']))
{
$event['starimage'] = $user_usergroup['starimage'];

				if(empty($event['starimage']))
{
$event['starimage'] = $user_usergroup['starimage'];

				}

$event['userstars'] = '';

				}

$event['userstars'] = '';

				for($i = 0; $i < $event['stars']; ++$i)
{
eval("\$event['userstars'] .= \"".$templates->get("calendar_event_userstar", 1, 0)."\";");

				for($i = 0; $i < $event['stars']; ++$i)
{
eval("\$event['userstars'] .= \"".$templates->get("calendar_event_userstar", 1, 0)."\";");

				}


				}


				if($event['userstars'] && $event['starimage'] && $event['stars'])
{
$event['userstars'] .= "<br />";

				if($event['userstars'] && $event['starimage'] && $event['stars'])
{
$event['userstars'] .= "<br />";

				}
}

				}
}

			// Created by a guest or an unknown user
else
{

			// Created by a guest or an unknown user
else
{

Zeile 1818Zeile 1820

$event['username'] = $event['username'];
$event['profilelink'] = format_name($event['username'], 1);


$event['username'] = $event['username'];
$event['profilelink'] = format_name($event['username'], 1);





				if($user_usergroup['usertitle'])
{
$event['usertitle'] = $user_usergroup['usertitle'];

				if($user_usergroup['usertitle'])
{
$event['usertitle'] = $user_usergroup['usertitle'];

Zeile 1829Zeile 1831
				}
$event['userstars'] = '';
}

				}
$event['userstars'] = '';
}

 

$event['usertitle'] = htmlspecialchars_uni($event['usertitle']);


if($event['ignoretimezone'] == 0)
{


if($event['ignoretimezone'] == 0)
{