Vergleich calendar.php - 1.8.16 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 227Zeile 227
	$calendar = $db->fetch_array($query);

// Invalid calendar?

	$calendar = $db->fetch_array($query);

// Invalid calendar?

	if(!$calendar['cid'])

	if(!$calendar)

	{
error($lang->invalid_calendar);

	{
error($lang->invalid_calendar);

	}

	}


// Do we have permission to view this calendar or post events?
$calendar_permissions = get_calendar_permissions($calendar['cid']);
if($calendar_permissions['canviewcalendar'] != 1 || $calendar_permissions['canaddevents'] != 1)


// Do we have permission to view this calendar or post events?
$calendar_permissions = get_calendar_permissions($calendar['cid']);
if($calendar_permissions['canviewcalendar'] != 1 || $calendar_permissions['canaddevents'] != 1)

	{

	{

		error_no_permission();
}

		error_no_permission();
}





	add_breadcrumb(htmlspecialchars_uni($calendar['name']), get_calendar_link($calendar['cid']));
add_breadcrumb($lang->nav_addevent);

	add_breadcrumb(htmlspecialchars_uni($calendar['name']), get_calendar_link($calendar['cid']));
add_breadcrumb($lang->nav_addevent);





	$plugins->run_hooks("calendar_addevent_start");

// If MyCode is on for this forum and the MyCode editor is enabled inthe Admin CP, draw the code buttons and smilie inserter.

	$plugins->run_hooks("calendar_addevent_start");

// If MyCode is on for this forum and the MyCode editor is enabled inthe Admin CP, draw the code buttons and smilie inserter.

Zeile 249Zeile 249
	{
$codebuttons = build_mycode_inserter("message", $calendar['allowsmilies']);
if($calendar['allowsmilies'] == 1)

	{
$codebuttons = build_mycode_inserter("message", $calendar['allowsmilies']);
if($calendar['allowsmilies'] == 1)

		{

		{

			$smilieinserter = build_clickable_smilies();
}
}

			$smilieinserter = build_clickable_smilies();
}
}

Zeile 257Zeile 257
	// Previous selections
$name = $description = '';
if(isset($mybb->input['name']))

	// Previous selections
$name = $description = '';
if(isset($mybb->input['name']))

	{

	{

		$name = htmlspecialchars_uni($mybb->get_input('name'));

		$name = htmlspecialchars_uni($mybb->get_input('name'));

	}


	}


	if(isset($mybb->input['description']))
{
$description = htmlspecialchars_uni($mybb->get_input('description'));

	if(isset($mybb->input['description']))
{
$description = htmlspecialchars_uni($mybb->get_input('description'));

Zeile 272Zeile 272
		$single_month[$number] = $start_month[$number] = $end_month[$number] = $repeats_5_month[$number] = $repeats_5_month2[$number] = '';
}
foreach(range(1, 5) as $number)

		$single_month[$number] = $start_month[$number] = $end_month[$number] = $repeats_5_month[$number] = $repeats_5_month2[$number] = '';
}
foreach(range(1, 5) as $number)

	{

	{

		$repeats_sel[$number] = '';
}
foreach(range(0, 6) as $number)

		$repeats_sel[$number] = '';
}
foreach(range(0, 6) as $number)

Zeile 409Zeile 409
		$repeats_5_month2[1] = "selected=\"selected\"";
$repeats_5_years2 = 1;
$timezone = $mybb->user['timezone'];

		$repeats_5_month2[1] = "selected=\"selected\"";
$repeats_5_years2 = 1;
$timezone = $mybb->user['timezone'];

	}

$single_years = $start_years = $end_years = '';

// Construct option list for years
for($year = my_date('Y'); $year < (my_date('Y') + 5); ++$year)
{
if($year == $single_year)
{
$selected = "selected=\"selected\"";
eval("\$single_years .= \"".$templates->get("calendar_year")."\";");
}
else
{
$selected = "";
eval("\$single_years .= \"".$templates->get("calendar_year")."\";");
}

if($year == $start_year)
{
$selected = "selected=\"selected\"";
eval("\$start_years .= \"".$templates->get("calendar_year")."\";");
}
else
{
$selected = "";
eval("\$start_years .= \"".$templates->get("calendar_year")."\";");
}

if($year == $end_year)
{
$selected = "selected=\"selected\"";
eval("\$end_years .= \"".$templates->get("calendar_year")."\";");
}
else
{
$selected = "";
eval("\$end_years .= \"".$templates->get("calendar_year")."\";");
}
}

$single_days = $start_days = $end_days = '';

// Construct option list for days
for($day = 1; $day <= 31; ++$day)
{
if($day == $single_day)
{
$selected = "selected=\"selected\"";
eval("\$single_days .= \"".$templates->get("calendar_day")."\";");
}
else
{
$selected = "";
eval("\$single_days .= \"".$templates->get("calendar_day")."\";");
}

if($day == $start_day)
{
$selected = "selected=\"selected\"";
eval("\$start_days .= \"".$templates->get("calendar_day")."\";");
}
else
{
$selected = "";
eval("\$start_days .= \"".$templates->get("calendar_day")."\";");
}

if($day == $end_day)
{
$selected = "selected=\"selected\"";
eval("\$end_days .= \"".$templates->get("calendar_day")."\";");
}
else
{
$selected = "";

	}

$single_years = $start_years = $end_years = '';

// Construct option list for years
for($year = my_date('Y'); $year < (my_date('Y') + 5); ++$year)
{
if($year == $single_year)
{
$selected = "selected=\"selected\"";
eval("\$single_years .= \"".$templates->get("calendar_year")."\";");
}
else
{
$selected = "";
eval("\$single_years .= \"".$templates->get("calendar_year")."\";");
}

if($year == $start_year)
{
$selected = "selected=\"selected\"";
eval("\$start_years .= \"".$templates->get("calendar_year")."\";");
}
else
{
$selected = "";
eval("\$start_years .= \"".$templates->get("calendar_year")."\";");
}

if($year == $end_year)
{
$selected = "selected=\"selected\"";
eval("\$end_years .= \"".$templates->get("calendar_year")."\";");
}
else
{
$selected = "";
eval("\$end_years .= \"".$templates->get("calendar_year")."\";");
}
}

$single_days = $start_days = $end_days = '';

// Construct option list for days
for($day = 1; $day <= 31; ++$day)
{
if($day == $single_day)
{
$selected = "selected=\"selected\"";
eval("\$single_days .= \"".$templates->get("calendar_day")."\";");
}
else
{
$selected = "";
eval("\$single_days .= \"".$templates->get("calendar_day")."\";");
}

if($day == $start_day)
{
$selected = "selected=\"selected\"";
eval("\$start_days .= \"".$templates->get("calendar_day")."\";");
}
else
{
$selected = "";
eval("\$start_days .= \"".$templates->get("calendar_day")."\";");
}

if($day == $end_day)
{
$selected = "selected=\"selected\"";
eval("\$end_days .= \"".$templates->get("calendar_day")."\";");
}
else
{
$selected = "";

			eval("\$end_days .= \"".$templates->get("calendar_day")."\";");
}
}

			eval("\$end_days .= \"".$templates->get("calendar_day")."\";");
}
}

Zeile 780Zeile 780
		$calendar = $db->fetch_array($query);

// Invalid calendar?

		$calendar = $db->fetch_array($query);

// Invalid calendar?

		if(!$calendar['cid'])

		if(!$calendar)

		{
error($lang->invalid_calendar);
}

		{
error($lang->invalid_calendar);
}

Zeile 937Zeile 937
	{
$event_errors = '';
$mybb->input['calendar'] = $event['cid'];

	{
$event_errors = '';
$mybb->input['calendar'] = $event['cid'];

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

		$name = $event['name'];

		$description = htmlspecialchars_uni($event['description']);
if($event['private'] == 1)
{

		$description = htmlspecialchars_uni($event['description']);
if($event['private'] == 1)
{

Zeile 1000Zeile 1000
						$repeats_1_days = 1;
$repeats_3_weeks = $repeats['weeks'];
if(is_array($repeats['days']))

						$repeats_1_days = 1;
$repeats_3_weeks = $repeats['weeks'];
if(is_array($repeats['days']))

						{

						{

							foreach($repeats['days'] as $weekday)
{
$repeats_3_days[$weekday] = " checked=\"checked\"";

							foreach($repeats['days'] as $weekday)
{
$repeats_3_days[$weekday] = " checked=\"checked\"";

Zeile 1089Zeile 1089
	for($year = my_date('Y'); $year < (my_date('Y') + 5); ++$year)
{
if($year == $single_year)

	for($year = my_date('Y'); $year < (my_date('Y') + 5); ++$year)
{
if($year == $single_year)

		{
$selected = "selected=\"selected\"";
eval("\$single_years .= \"".$templates->get("calendar_year")."\";");
}
else
{
$selected = "";

		{
$selected = "selected=\"selected\"";
eval("\$single_years .= \"".$templates->get("calendar_year")."\";");
}
else
{
$selected = "";

			eval("\$single_years .= \"".$templates->get("calendar_year")."\";");
}

if($year == $start_year)
{

			eval("\$single_years .= \"".$templates->get("calendar_year")."\";");
}

if($year == $start_year)
{

			$selected = "selected=\"selected\"";
eval("\$start_years .= \"".$templates->get("calendar_year")."\";");
}
else
{
$selected = "";

			$selected = "selected=\"selected\"";
eval("\$start_years .= \"".$templates->get("calendar_year")."\";");
}
else
{
$selected = "";

			eval("\$start_years .= \"".$templates->get("calendar_year")."\";");
}


			eval("\$start_years .= \"".$templates->get("calendar_year")."\";");
}


Zeile 1126Zeile 1126

// Construct option list for days
for($day = 1; $day <= 31; ++$day)


// Construct option list for days
for($day = 1; $day <= 31; ++$day)

	{

	{

		if($day == $single_day)

		if($day == $single_day)

		{
$selected = "selected=\"selected\"";
eval("\$single_days .= \"".$templates->get("calendar_day")."\";");
}
else
{
$selected = "";

		{
$selected = "selected=\"selected\"";






			eval("\$single_days .= \"".$templates->get("calendar_day")."\";");

			eval("\$single_days .= \"".$templates->get("calendar_day")."\";");

		}

if($day == $start_day)
{
$selected = "selected=\"selected\"";
eval("\$start_days .= \"".$templates->get("calendar_day")."\";");
}
else
{
$selected = "";






		}
else
{
$selected = "";
eval("\$single_days .= \"".$templates->get("calendar_day")."\";");
}

if($day == $start_day)
{
$selected = "selected=\"selected\"";
eval("\$start_days .= \"".$templates->get("calendar_day")."\";");
}
else
{
$selected = "";

			eval("\$start_days .= \"".$templates->get("calendar_day")."\";");
}


			eval("\$start_days .= \"".$templates->get("calendar_day")."\";");
}


		if($day == $end_day)

		if($day == $end_day)

		{
$selected = "selected=\"selected\"";

		{
$selected = "selected=\"selected\"";

			eval("\$end_days .= \"".$templates->get("calendar_day")."\";");
}

			eval("\$end_days .= \"".$templates->get("calendar_day")."\";");
}

		else
{
$selected = "";
eval("\$end_days .= \"".$templates->get("calendar_day")."\";");

		else
{
$selected = "";
eval("\$end_days .= \"".$templates->get("calendar_day")."\";");

		}
}

$timezones = build_timezone_select("timezone", $timezone);

		}
}

$timezones = build_timezone_select("timezone", $timezone);


$plugins->run_hooks("calendar_editevent_end");



$plugins->run_hooks("calendar_editevent_end");


Zeile 1190Zeile 1190
	}

// Do we have permission to view this calendar or post events?

	}

// Do we have permission to view this calendar or post events?

	$calendar_permissions = get_calendar_permissions();

	$calendar_permissions = get_calendar_permissions();

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

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

Zeile 1254Zeile 1254
	// Do we have permission to view this calendar?
$calendar_permissions = get_calendar_permissions();
if($calendar_permissions[$calendar['cid']]['canviewcalendar'] != 1)

	// Do we have permission to view this calendar?
$calendar_permissions = get_calendar_permissions();
if($calendar_permissions[$calendar['cid']]['canviewcalendar'] != 1)

	{
error_no_permission();
}

	{
error_no_permission();
}


if($calendar_permissions[$calendar['cid']]['canmoderateevents'] != 1)
{


if($calendar_permissions[$calendar['cid']]['canmoderateevents'] != 1)
{

Zeile 1291Zeile 1291

// Approve an event
if($mybb->input['action'] == "approve")


// Approve an event
if($mybb->input['action'] == "approve")

{
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

$query = $db->simple_select("events", "*", "eid='{$mybb->input['eid']}'");
$event = $db->fetch_array($query);

if(!$event)
{
error($lang->error_invalidevent);
}

$query = $db->simple_select("calendars", "*", "cid='{$event['cid']}'");
$calendar = $db->fetch_array($query);

// Invalid calendar?
if(!$calendar)
{
error($lang->invalid_calendar);
}

// Do we have permission to view this calendar?
$calendar_permissions = get_calendar_permissions($calendar['cid']);
if($calendar_permissions['canviewcalendar'] != 1)
{
error_no_permission();
}

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

{
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

$query = $db->simple_select("events", "*", "eid='{$mybb->input['eid']}'");
$event = $db->fetch_array($query);

if(!$event)
{
error($lang->error_invalidevent);
}

$query = $db->simple_select("calendars", "*", "cid='{$event['cid']}'");
$calendar = $db->fetch_array($query);

// Invalid calendar?
if(!$calendar)
{
error($lang->invalid_calendar);
}

// Do we have permission to view this calendar?
$calendar_permissions = get_calendar_permissions($calendar['cid']);
if($calendar_permissions['canviewcalendar'] != 1)
{
error_no_permission();
}

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

	}

$updated_event = array(

	}

$updated_event = array(

Zeile 1329Zeile 1329
	);

$plugins->run_hooks("calendar_approve_start");

	);

$plugins->run_hooks("calendar_approve_start");





	$db->update_query("events", $updated_event, "eid='{$event['eid']}'");

$plugins->run_hooks("calendar_approve_end");

	$db->update_query("events", $updated_event, "eid='{$event['eid']}'");

$plugins->run_hooks("calendar_approve_end");





	redirect(get_event_link($event['eid']), $lang->redirect_eventapproved);
}


	redirect(get_event_link($event['eid']), $lang->redirect_eventapproved);
}


Zeile 1347Zeile 1347
	$event = $db->fetch_array($query);

if(!$event)

	$event = $db->fetch_array($query);

if(!$event)

	{
error($lang->error_invalidevent);
}

$query = $db->simple_select("calendars", "*", "cid='{$event['cid']}'");
$calendar = $db->fetch_array($query);


	{
error($lang->error_invalidevent);
}

$query = $db->simple_select("calendars", "*", "cid='{$event['cid']}'");
$calendar = $db->fetch_array($query);


	// Invalid calendar?
if(!$calendar)
{

	// Invalid calendar?
if(!$calendar)
{

Zeile 1432Zeile 1432
		"allow_videocode" => $calendar['allowvideocode']
);


		"allow_videocode" => $calendar['allowvideocode']
);


	if($mybb->user['showimages'] != 1 && $mybb->user['uid'] != 0 || $mybb->settings['guestimages'] != 1 && $mybb->user['uid'] == 0)

	if($mybb->user['uid'] != 0 && $mybb->user['showimages'] != 1 || $mybb->settings['guestimages'] != 1 && $mybb->user['uid'] == 0)

	{
$event_parser_options['allow_imgcode'] = 0;
}


	{
$event_parser_options['allow_imgcode'] = 0;
}


	if($mybb->user['showvideos'] != 1 && $mybb->user['uid'] != 0 || $mybb->settings['guestvideos'] != 1 && $mybb->user['uid'] == 0)

	if($mybb->user['uid'] != 0 && $mybb->user['showvideos'] != 1 || $mybb->settings['guestvideos'] != 1 && $mybb->user['uid'] == 0)

	{
$event_parser_options['allow_videocode'] = 0;
}

	{
$event_parser_options['allow_videocode'] = 0;
}

Zeile 1455Zeile 1455
	}

$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

	}

$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

 

if(!$event['displaygroup'])
{
$event['displaygroup'] = $event['usergroup'];
}


	$display_group = usergroup_displaygroup($event['displaygroup']);
if(is_array($display_group))
{

	$display_group = usergroup_displaygroup($event['displaygroup']);
if(is_array($display_group))
{

Zeile 1515Zeile 1521
		}
}
// Created by a guest or an unknown user

		}
}
// Created by a guest or an unknown user

	else

	else

	{
if(!$event['username'])
{

	{
if(!$event['username'])
{

Zeile 1775Zeile 1781
				"allow_videocode" => $calendar['allowvideocode']
);


				"allow_videocode" => $calendar['allowvideocode']
);


			if($mybb->user['showimages'] != 1 && $mybb->user['uid'] != 0 || $mybb->settings['guestimages'] != 1 && $mybb->user['uid'] == 0)

			if($mybb->user['uid'] != 0 && $mybb->user['showimages'] != 1 || $mybb->settings['guestimages'] != 1 && $mybb->user['uid'] == 0)

			{
$event_parser_options['allow_imgcode'] = 0;
}


			{
$event_parser_options['allow_imgcode'] = 0;
}


			if($mybb->user['showvideos'] != 1 && $mybb->user['uid'] != 0 || $mybb->settings['guestvideos'] != 1 && $mybb->user['uid'] == 0)

			if($mybb->user['uid'] != 0 && $mybb->user['showvideos'] != 1 || $mybb->settings['guestvideos'] != 1 && $mybb->user['uid'] == 0)

			{
$event_parser_options['allow_videocode'] = 0;
}

			{
$event_parser_options['allow_videocode'] = 0;
}

Zeile 1798Zeile 1804
			}

$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

			}

$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

 

if(!$event['displaygroup'])
{
$event['displaygroup'] = $event['usergroup'];
}


			$display_group = usergroup_displaygroup($event['displaygroup']);
if(is_array($display_group))
{

			$display_group = usergroup_displaygroup($event['displaygroup']);
if(is_array($display_group))
{

Zeile 1883Zeile 1895
			if($event['ignoretimezone'] == 0)
{
$offset = (float)$event['timezone'];

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

			}
else
{

			}
else
{

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


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


Zeile 1907Zeile 1919
					$time_period = gmdate($mybb->settings['dateformat'], $event['starttime_user']);
// Event runs all day
if($start_time != 0000 && $end_time != 2359)

					$time_period = gmdate($mybb->settings['dateformat'], $event['starttime_user']);
// Event runs all day
if($start_time != 0000 && $end_time != 2359)

					{

					{

						$time_period .= $lang->comma.gmdate($mybb->settings['timeformat'], $event['starttime_user'])." - ".gmdate($mybb->settings['timeformat'], $event['endtime_user']);
}
else
{
$time_period .= $lang->comma.$lang->all_day;

						$time_period .= $lang->comma.gmdate($mybb->settings['timeformat'], $event['starttime_user'])." - ".gmdate($mybb->settings['timeformat'], $event['endtime_user']);
}
else
{
$time_period .= $lang->comma.$lang->all_day;

					}
}

					}
}

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

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

Zeile 1968Zeile 1980

$addevent = '';
if($mybb->usergroup['canaddevents'] == 1)


$addevent = '';
if($mybb->usergroup['canaddevents'] == 1)

	{
eval("\$addevent = \"".$templates->get("calendar_addeventlink")."\";");
}

if(!$events)
{

	{
eval("\$addevent = \"".$templates->get("calendar_addeventlink")."\";");
}

if(!$events)
{

		$lang->no_events = $lang->sprintf($lang->no_events, $calendar['cid'], $day, $month, $year);
eval("\$events = \"".$templates->get("calendar_dayview_noevents")."\";");
}

		$lang->no_events = $lang->sprintf($lang->no_events, $calendar['cid'], $day, $month, $year);
eval("\$events = \"".$templates->get("calendar_dayview_noevents")."\";");
}

Zeile 2031Zeile 2043
		// So now we have the start day of this week to show
$start_day = $day-$my_weekday;
$mybb->input['week'] = adodb_gmmktime(0, 0, 0, $month, $start_day, $year);

		// So now we have the start day of this week to show
$start_day = $day-$my_weekday;
$mybb->input['week'] = adodb_gmmktime(0, 0, 0, $month, $start_day, $year);

	}

	}

	else
{
$mybb->input['week'] = (int)str_replace("n", "-", $mybb->get_input('week'));

	else
{
$mybb->input['week'] = (int)str_replace("n", "-", $mybb->get_input('week'));

Zeile 2062Zeile 2074
		$different_months = true;
$week_months = array(array($week_from[1], $week_from[2]), array($week_to[1], $week_to[2]));
$bday_months = array($week_from[1], $week_to[1]);

		$different_months = true;
$week_months = array(array($week_from[1], $week_from[2]), array($week_to[1], $week_to[2]));
$bday_months = array($week_from[1], $week_to[1]);

	}
else

	}
else

	{
$week_months = array(array($week_from[1], $week_from[2]));
$bday_months = array($week_from[1]);

	{
$week_months = array(array($week_from[1], $week_from[2]));
$bday_months = array($week_from[1]);

Zeile 2124Zeile 2136
		if(gmdate("dnY", $weekday_date) == $today)
{
$day_shaded = ' trow_shaded';

		if(gmdate("dnY", $weekday_date) == $today)
{
$day_shaded = ' trow_shaded';

		}

$day_events = '';


		}

$day_events = '';


		// Any events on this specific day?
if(is_array($events_cache) && array_key_exists("{$weekday_day}-{$weekday_month}-{$weekday_year}", $events_cache))
{

		// Any events on this specific day?
if(is_array($events_cache) && array_key_exists("{$weekday_day}-{$weekday_month}-{$weekday_year}", $events_cache))
{

Zeile 2159Zeile 2171
						else
{
$time_period = gmdate($mybb->settings['timeformat'], $event['starttime_user'])." - ".gmdate($mybb->settings['timeformat'], $event['endtime_user']);

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

						}

						}

					}
// Event starts on this day
else if($start_day == $weekday_date)

					}
// Event starts on this day
else if($start_day == $weekday_date)

Zeile 2288Zeile 2300
	}

// Invalid calendar?

	}

// Invalid calendar?

	if(!$calendar['cid'])

	if(!$calendar)

	{
error($lang->invalid_calendar);
}

	{
error($lang->invalid_calendar);
}

Zeile 2536Zeile 2548
			// Is the current day
if($day.$calendar_month.$year == $today && $month == $calendar_month)
{

			// Is the current day
if($day.$calendar_month.$year == $today && $month == $calendar_month)
{

				$day_class = "trow_sep";

				eval("\$day_bits .= \"".$templates->get("calendar_weekrow_currentday")."\";");

			}
// Not in this month
else if($in_month == 0)
{

			}
// Not in this month
else if($in_month == 0)
{

				$day_class = "trow1";

				eval("\$day_bits .= \"".$templates->get("calendar_weekrow_day")."\";");

			}
// Just a normal day in this month
else
{

			}
// Just a normal day in this month
else
{

				$day_class = "trow2";

				eval("\$day_bits .= \"".$templates->get("calendar_weekrow_thismonth")."\";");

			}

			}

			eval("\$day_bits .= \"".$templates->get("calendar_weekrow_day")."\";");

 
			$day_birthdays = $day_events = "";
++$day;
}

			$day_birthdays = $day_events = "";
++$day;
}