Vergleich calendar.php - 1.8.1 - 1.8.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 57Zeile 57
// Make navigation
add_breadcrumb($lang->nav_calendar, "calendar.php");


// Make navigation
add_breadcrumb($lang->nav_calendar, "calendar.php");


$mybb->input['calendar'] = $mybb->get_input('calendar', 1);

$mybb->input['calendar'] = $mybb->get_input('calendar', MyBB::INPUT_INT);

$calendars = cache_calendars();

$calendar_jump = '';

$calendars = cache_calendars();

$calendar_jump = '';

Zeile 104Zeile 104
		"uid" => $mybb->user['uid'],
"name" => $mybb->get_input('name'),
"description" => $mybb->get_input('description'),

		"uid" => $mybb->user['uid'],
"name" => $mybb->get_input('name'),
"description" => $mybb->get_input('description'),

		"private" => $mybb->get_input('private', 1),

		"private" => $mybb->get_input('private', MyBB::INPUT_INT),

		"type" => $mybb->input['type']
);


		"type" => $mybb->input['type']
);


Zeile 112Zeile 112
	if($mybb->input['type'] == "single")
{
$event['start_date'] = array(

	if($mybb->input['type'] == "single")
{
$event['start_date'] = array(

			"day" => $mybb->get_input('single_day', 1),
"month" => $mybb->get_input('single_month', 1),
"year" => $mybb->get_input('single_year', 1)

			"day" => $mybb->get_input('single_day', MyBB::INPUT_INT),
"month" => $mybb->get_input('single_month', MyBB::INPUT_INT),
"year" => $mybb->get_input('single_year', MyBB::INPUT_INT)

		);
$event['repeats'] = '';
}
else if($mybb->input['type'] == "ranged")
{
$event['start_date'] = array(

		);
$event['repeats'] = '';
}
else if($mybb->input['type'] == "ranged")
{
$event['start_date'] = array(

			"day" => $mybb->get_input('start_day', 1),
"month" => $mybb->get_input('start_month', 1),
"year" => $mybb->get_input('start_year', 1),

			"day" => $mybb->get_input('start_day', MyBB::INPUT_INT),
"month" => $mybb->get_input('start_month', MyBB::INPUT_INT),
"year" => $mybb->get_input('start_year', MyBB::INPUT_INT),

			"time" => $mybb->get_input('start_time')
);
$event['end_date'] = array(

			"time" => $mybb->get_input('start_time')
);
$event['end_date'] = array(

			"day" => $mybb->get_input('end_day', 1),
"month" => $mybb->get_input('end_month', 1),
"year" => $mybb->get_input('end_year', 1),

			"day" => $mybb->get_input('end_day', MyBB::INPUT_INT),
"month" => $mybb->get_input('end_month', MyBB::INPUT_INT),
"year" => $mybb->get_input('end_year', MyBB::INPUT_INT),

			"time" => $mybb->get_input('end_time')
);
$event['timezone'] = $mybb->get_input('timezone');

			"time" => $mybb->get_input('end_time')
);
$event['timezone'] = $mybb->get_input('timezone');

		$event['ignoretimezone'] =	$mybb->get_input('ignoretimezone', 1);

		$event['ignoretimezone'] =	$mybb->get_input('ignoretimezone', MyBB::INPUT_INT);

		$repeats = array();
switch($mybb->input['repeats'])
{
case 1:
$repeats['repeats'] = 1;

		$repeats = array();
switch($mybb->input['repeats'])
{
case 1:
$repeats['repeats'] = 1;

				$repeats['days'] = $mybb->get_input('repeats_1_days', 1);

				$repeats['days'] = $mybb->get_input('repeats_1_days', MyBB::INPUT_INT);

				break;
case 2:
$repeats['repeats'] = 2;
break;
case 3:
$repeats['repeats'] = 3;

				break;
case 2:
$repeats['repeats'] = 2;
break;
case 3:
$repeats['repeats'] = 3;

				$repeats['weeks'] = $mybb->get_input('repeats_3_weeks', 1);
$mybb->input['repeats_3_days'] = $mybb->get_input('repeats_3_days', 2);

				$repeats['weeks'] = $mybb->get_input('repeats_3_weeks', MyBB::INPUT_INT);
$mybb->input['repeats_3_days'] = $mybb->get_input('repeats_3_days', MyBB::INPUT_ARRAY);

				ksort($mybb->input['repeats_3_days']);
$days = array();
foreach($mybb->input['repeats_3_days'] as $weekday => $value)

				ksort($mybb->input['repeats_3_days']);
$days = array();
foreach($mybb->input['repeats_3_days'] as $weekday => $value)

Zeile 162Zeile 162
				break;
case 4:
$repeats['repeats'] = 4;

				break;
case 4:
$repeats['repeats'] = 4;

				if($mybb->get_input('repeats_4_type', 1) == 1)

				if($mybb->get_input('repeats_4_type', MyBB::INPUT_INT) == 1)

				{

				{

					$repeats['day'] = $mybb->get_input('repeats_4_day', 1);
$repeats['months'] = $mybb->get_input('repeats_4_months', 1);

					$repeats['day'] = $mybb->get_input('repeats_4_day', MyBB::INPUT_INT);
$repeats['months'] = $mybb->get_input('repeats_4_months', MyBB::INPUT_INT);

				}
else
{

				}
else
{

					$repeats['months'] = $mybb->get_input('repeats_4_months2', 1);

					$repeats['months'] = $mybb->get_input('repeats_4_months2', MyBB::INPUT_INT);

					$repeats['occurance'] = $mybb->get_input('repeats_4_occurance');

					$repeats['occurance'] = $mybb->get_input('repeats_4_occurance');

					$repeats['weekday'] = $mybb->get_input('repeats_4_weekday', 1);

					$repeats['weekday'] = $mybb->get_input('repeats_4_weekday', MyBB::INPUT_INT);

				}
break;
case 5:
$repeats['repeats'] = 5;

				}
break;
case 5:
$repeats['repeats'] = 5;

				if($mybb->get_input('repeats_5_type', 1) == 1)

				if($mybb->get_input('repeats_5_type', MyBB::INPUT_INT) == 1)

				{

				{

					$repeats['day'] = $mybb->get_input('repeats_5_day', 1);
$repeats['month'] = $mybb->get_input('repeats_5_month', 1);
$repeats['years'] = $mybb->get_input('repeats_5_years', 1);

					$repeats['day'] = $mybb->get_input('repeats_5_day', MyBB::INPUT_INT);
$repeats['month'] = $mybb->get_input('repeats_5_month', MyBB::INPUT_INT);
$repeats['years'] = $mybb->get_input('repeats_5_years', MyBB::INPUT_INT);

				}
else
{
$repeats['occurance'] = $mybb->get_input('repeats_5_occurance');

				}
else
{
$repeats['occurance'] = $mybb->get_input('repeats_5_occurance');

					$repeats['weekday'] = $mybb->get_input('repeats_5_weekday', 1);
$repeats['month'] = $mybb->get_input('repeats_5_month2', 1);
$repeats['years'] = $mybb->get_input('repeats_5_years', 1);

					$repeats['weekday'] = $mybb->get_input('repeats_5_weekday', MyBB::INPUT_INT);
$repeats['month'] = $mybb->get_input('repeats_5_month2', MyBB::INPUT_INT);
$repeats['years'] = $mybb->get_input('repeats_5_years', MyBB::INPUT_INT);

				}
break;
default:

				}
break;
default:

Zeile 288Zeile 288

if($mybb->request_method == "post")
{


if($mybb->request_method == "post")
{

		$single_day = $mybb->get_input('single_day', 1);
$single_month[$mybb->get_input('single_month', 1)] = " selected=\"selected\"";
$single_year = $mybb->get_input('single_year', 1);
$start_day = $mybb->get_input('start_day', 1);
$start_month[$mybb->get_input('start_month', 1)] = " selected=\"selected\"";
$start_year = $mybb->get_input('start_year', 1);

		$single_day = $mybb->get_input('single_day', MyBB::INPUT_INT);
$single_month[$mybb->get_input('single_month', MyBB::INPUT_INT)] = " selected=\"selected\"";
$single_year = $mybb->get_input('single_year', MyBB::INPUT_INT);
$start_day = $mybb->get_input('start_day', MyBB::INPUT_INT);
$start_month[$mybb->get_input('start_month', MyBB::INPUT_INT)] = " selected=\"selected\"";
$start_year = $mybb->get_input('start_year', MyBB::INPUT_INT);

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

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

		$end_day = $mybb->get_input('end_day', 1);
$end_month[$mybb->get_input('end_month', 1)] = " selected=\"selected\"";
$end_year = $mybb->get_input('end_year', 1);

		$end_day = $mybb->get_input('end_day', MyBB::INPUT_INT);
$end_month[$mybb->get_input('end_month', MyBB::INPUT_INT)] = " selected=\"selected\"";
$end_year = $mybb->get_input('end_year', MyBB::INPUT_INT);

		$end_time = htmlspecialchars_uni($mybb->get_input('end_time'));
if($mybb->get_input('type') == "single")
{

		$end_time = htmlspecialchars_uni($mybb->get_input('end_time'));
if($mybb->get_input('type') == "single")
{

Zeile 313Zeile 313
		}
if(!empty($mybb->input['repeats']))
{

		}
if(!empty($mybb->input['repeats']))
{

			$repeats_sel[$mybb->get_input('repeats', 1)] = " selected=\"selected\"";

			$repeats_sel[$mybb->get_input('repeats', MyBB::INPUT_INT)] = " selected=\"selected\"";

		}

		}

		$repeats_1_days = $mybb->get_input('repeats_1_days', 1);
$repeats_3_weeks = $mybb->get_input('repeats_3_weeks', 1);
foreach($mybb->get_input('repeats_3_days', 2) as $day => $val)

		$repeats_1_days = $mybb->get_input('repeats_1_days', MyBB::INPUT_INT);
$repeats_3_weeks = $mybb->get_input('repeats_3_weeks', MyBB::INPUT_INT);
foreach($mybb->get_input('repeats_3_days', MyBB::INPUT_ARRAY) as $day => $val)

		{
if($val != 1)
{

		{
if($val != 1)
{

Zeile 327Zeile 327
			$repeats_3_days[$day] = " checked=\"checked\"";
}
$repeats_4_type = array();

			$repeats_3_days[$day] = " checked=\"checked\"";
}
$repeats_4_type = array();

		if($mybb->get_input('repeats_4_type', 1) == 1)

		if($mybb->get_input('repeats_4_type', MyBB::INPUT_INT) == 1)

		{
$repeats_4_type[1] = "checked=\"checked\"";
$repeats_4_type[2] = '';

		{
$repeats_4_type[1] = "checked=\"checked\"";
$repeats_4_type[2] = '';

Zeile 337Zeile 337
			$repeats_4_type[2] = "checked=\"checked\"";
$repeats_4_type[1] = '';
}

			$repeats_4_type[2] = "checked=\"checked\"";
$repeats_4_type[1] = '';
}

		$repeats_4_day = $mybb->get_input('repeats_4_day', 1);
$repeats_4_months = $mybb->get_input('repeats_4_months', 1);

		$repeats_4_day = $mybb->get_input('repeats_4_day', MyBB::INPUT_INT);
$repeats_4_months = $mybb->get_input('repeats_4_months', MyBB::INPUT_INT);

		$repeats_4_occurance[$mybb->get_input('repeats_4_occurance')] = "selected=\"selected\"";

		$repeats_4_occurance[$mybb->get_input('repeats_4_occurance')] = "selected=\"selected\"";

		$repeats_4_weekday[$mybb->get_input('repeats_4_weekday', 1)] = "selected=\"selected\"";
$repeats_4_months2 = $mybb->get_input('repeats_4_months2', 1);
if($mybb->get_input('repeats_5_type', 1) == 1)

		$repeats_4_weekday[$mybb->get_input('repeats_4_weekday', MyBB::INPUT_INT)] = "selected=\"selected\"";
$repeats_4_months2 = $mybb->get_input('repeats_4_months2', MyBB::INPUT_INT);
if($mybb->get_input('repeats_5_type', MyBB::INPUT_INT) == 1)

		{
$repeats_5_type[1] = "checked=\"checked\"";
}

		{
$repeats_5_type[1] = "checked=\"checked\"";
}

Zeile 350Zeile 350
		{
$repeats_5_type[2] = "checked=\"checked\"";
}

		{
$repeats_5_type[2] = "checked=\"checked\"";
}

		$repeats_5_day = $mybb->get_input('repeats_5_day', 1);
$repeats_5_month[$mybb->get_input('repeats_5_month', 1)] = "selected=\"selected\"";
$repeats_5_years = $mybb->get_input('repeats_5_years', 1);

		$repeats_5_day = $mybb->get_input('repeats_5_day', MyBB::INPUT_INT);
$repeats_5_month[$mybb->get_input('repeats_5_month', MyBB::INPUT_INT)] = "selected=\"selected\"";
$repeats_5_years = $mybb->get_input('repeats_5_years', MyBB::INPUT_INT);

		$repeats_5_occurance[$mybb->get_input('repeats_5_occurance')] = "selected=\"selected\"";

		$repeats_5_occurance[$mybb->get_input('repeats_5_occurance')] = "selected=\"selected\"";

		$repeats_5_weekday[$mybb->get_input('repeats_5_weekday', 1)] = "selected=\"selected\"";
$repeats_5_month2[$mybb->get_input('repeats_5_month2', 1)] = "selected=\"selected\"";
$repeats_5_years2 = $mybb->get_input('repeats_5_years2', 1);

		$repeats_5_weekday[$mybb->get_input('repeats_5_weekday', MyBB::INPUT_INT)] = "selected=\"selected\"";
$repeats_5_month2[$mybb->get_input('repeats_5_month2', MyBB::INPUT_INT)] = "selected=\"selected\"";
$repeats_5_years2 = $mybb->get_input('repeats_5_years2', MyBB::INPUT_INT);





		$timezone = $mybb->get_input('timezone', 1);

		$timezone = $mybb->get_input('timezone', MyBB::INPUT_INT);

	}
else
{
if(!empty($mybb->input['day']))
{

	}
else
{
if(!empty($mybb->input['day']))
{

			$single_day = $start_day = $end_day = $mybb->get_input('day', 1);

			$single_day = $start_day = $end_day = $mybb->get_input('day', MyBB::INPUT_INT);

		}
else
{

		}
else
{

Zeile 372Zeile 372
		}
if(!empty($mybb->input['month']))
{

		}
if(!empty($mybb->input['month']))
{

			$month = $mybb->get_input('month', 1);

			$month = $mybb->get_input('month', MyBB::INPUT_INT);

		}
else
{

		}
else
{

Zeile 381Zeile 381
		$single_month[$month] = $start_month[$month] = $end_month[$month] = "selected=\"selected\"";
if(!empty($mybb->input['year']))
{

		$single_month[$month] = $start_month[$month] = $end_month[$month] = "selected=\"selected\"";
if(!empty($mybb->input['year']))
{

			$single_year = $start_year = $end_year = $mybb->get_input('year', 1);

			$single_year = $start_year = $end_year = $mybb->get_input('year', MyBB::INPUT_INT);

		}
else
{

		}
else
{

Zeile 490Zeile 490

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



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


	if($mybb->get_input('ignoretimezone', 1) == 1)

	if($mybb->get_input('ignoretimezone', MyBB::INPUT_INT) == 1)

	{
$ignore_timezone = "checked=\"checked\"";
}

	{
$ignore_timezone = "checked=\"checked\"";
}

Zeile 499Zeile 499
		$ignore_timezone = '';
}


		$ignore_timezone = '';
}


	if($mybb->get_input('private', 1) == 1)

	if($mybb->get_input('private', MyBB::INPUT_INT) == 1)

	{
$privatecheck = " checked=\"checked\"";
}

	{
$privatecheck = " checked=\"checked\"";
}

Zeile 542Zeile 542
		eval("\$calendar_select .= \"".$templates->get("calendar_addevent_calendarselect_hidden")."\";");
}


		eval("\$calendar_select .= \"".$templates->get("calendar_addevent_calendarselect_hidden")."\";");
}


	$event_errors = '';





	if(!isset($event_errors))
{
$event_errors = '';
}


	$plugins->run_hooks("calendar_addevent_end");

	$plugins->run_hooks("calendar_addevent_end");





	eval("\$addevent = \"".$templates->get("calendar_addevent")."\";");
output_page($addevent);

	eval("\$addevent = \"".$templates->get("calendar_addevent")."\";");
output_page($addevent);

 
}

// Delete an event
if($mybb->input['action'] == "do_deleteevent" && $mybb->request_method == "post")
{
$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 or post events?
$calendar_permissions = get_calendar_permissions($calendar['cid']);
if($calendar_permissions['canviewcalendar'] != 1 || $calendar_permissions['canaddevents'] != 1)
{
error_no_permission();
}

if(($event['uid'] != $mybb->user['uid'] || $mybb->user['uid'] == 0) && $calendar_permissions['canmoderateevents'] != 1)
{
error_no_permission();
}

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

$plugins->run_hooks("calendar_do_deleteevent_start");

// Is the checkbox set?
if($mybb->get_input('delete', MyBB::INPUT_INT) == 1)
{
$db->delete_query("events", "eid='{$event['eid']}'");
$plugins->run_hooks("calendar_do_deleteevent_end");

// Redirect back to the main calendar view.
redirect("calendar.php", $lang->redirect_eventdeleted);
}
else
{
error($lang->delete_no_checkbox);
}

}

// Edit an event

}

// Edit an event

Zeile 559Zeile 614
	if(!$event)
{
error($lang->error_invalidevent);

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

	}


	}


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

// Invalid calendar?
if(!$calendar)

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

// Invalid calendar?
if(!$calendar)

	{

	{

		error($lang->invalid_calendar);
}


		error($lang->invalid_calendar);
}


Zeile 584Zeile 639

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


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


// Are we going to delete this event or just edit it?
if($mybb->get_input('delete', 1) == 1)
{
$db->delete_query("events", "eid='{$event['eid']}'");

// Redirect back to the main calendar view.
redirect("calendar.php", $lang->redirect_eventdeleted);
}

 

$plugins->run_hooks("calendar_do_editevent_start");



$plugins->run_hooks("calendar_do_editevent_start");


Zeile 607Zeile 653
		"eid" => $event['eid'],
"name" => $mybb->get_input('name'),
"description" => $mybb->get_input('description'),

		"eid" => $event['eid'],
"name" => $mybb->get_input('name'),
"description" => $mybb->get_input('description'),

		"private" => $mybb->get_input('private', 1),

		"private" => $mybb->get_input('private', MyBB::INPUT_INT),

		"type" => $mybb->input['type']
);


		"type" => $mybb->input['type']
);


Zeile 615Zeile 661
	if($mybb->input['type'] == "single")
{
$event['start_date'] = array(

	if($mybb->input['type'] == "single")
{
$event['start_date'] = array(

			"day" => $mybb->get_input('single_day', 1),
"month" => $mybb->get_input('single_month', 1),
"year" => $mybb->get_input('single_year', 1)

			"day" => $mybb->get_input('single_day', MyBB::INPUT_INT),
"month" => $mybb->get_input('single_month', MyBB::INPUT_INT),
"year" => $mybb->get_input('single_year', MyBB::INPUT_INT)

		);
$event['repeats'] = '';
}
else if($mybb->input['type'] == "ranged")
{
$event['start_date'] = array(

		);
$event['repeats'] = '';
}
else if($mybb->input['type'] == "ranged")
{
$event['start_date'] = array(

			"day" => $mybb->get_input('start_day', 1),
"month" => $mybb->get_input('start_month', 1),
"year" => $mybb->get_input('start_year', 1),

			"day" => $mybb->get_input('start_day', MyBB::INPUT_INT),
"month" => $mybb->get_input('start_month', MyBB::INPUT_INT),
"year" => $mybb->get_input('start_year', MyBB::INPUT_INT),

			"time" => $mybb->get_input('start_time')
);
$event['end_date'] = array(

			"time" => $mybb->get_input('start_time')
);
$event['end_date'] = array(

			"day" => $mybb->get_input('end_day', 1),
"month" => $mybb->get_input('end_month', 1),
"year" => $mybb->get_input('end_year', 1),

			"day" => $mybb->get_input('end_day', MyBB::INPUT_INT),
"month" => $mybb->get_input('end_month', MyBB::INPUT_INT),
"year" => $mybb->get_input('end_year', MyBB::INPUT_INT),

			"time" => $mybb->get_input('end_time')
);
$event['timezone'] = $mybb->get_input('timezone');

			"time" => $mybb->get_input('end_time')
);
$event['timezone'] = $mybb->get_input('timezone');

		$event['ignoretimezone'] =	$mybb->get_input('ignoretimezone', 1);

		$event['ignoretimezone'] =	$mybb->get_input('ignoretimezone', MyBB::INPUT_INT);

		$repeats = array();
switch($mybb->input['repeats'])
{
case 1:
$repeats['repeats'] = 1;

		$repeats = array();
switch($mybb->input['repeats'])
{
case 1:
$repeats['repeats'] = 1;

				$repeats['days'] = $mybb->get_input('repeats_1_days', 1);

				$repeats['days'] = $mybb->get_input('repeats_1_days', MyBB::INPUT_INT);

				break;
case 2:
$repeats['repeats'] = 2;
break;
case 3:
$repeats['repeats'] = 3;

				break;
case 2:
$repeats['repeats'] = 2;
break;
case 3:
$repeats['repeats'] = 3;

				$repeats['weeks'] = $mybb->get_input('repeats_3_weeks', 1);
$mybb->input['repeats_3_days'] = $mybb->get_input('repeats_3_days', 2);

				$repeats['weeks'] = $mybb->get_input('repeats_3_weeks', MyBB::INPUT_INT);
$mybb->input['repeats_3_days'] = $mybb->get_input('repeats_3_days', MyBB::INPUT_ARRAY);

				ksort($mybb->input['repeats_3_days']);
$days = array();
foreach($mybb->input['repeats_3_days'] as $weekday => $value)

				ksort($mybb->input['repeats_3_days']);
$days = array();
foreach($mybb->input['repeats_3_days'] as $weekday => $value)

Zeile 665Zeile 711
				break;
case 4:
$repeats['repeats'] = 4;

				break;
case 4:
$repeats['repeats'] = 4;

				if($mybb->get_input('repeats_4_type', 1) == 1)

				if($mybb->get_input('repeats_4_type', MyBB::INPUT_INT) == 1)

				{

				{

					$repeats['day'] = $mybb->get_input('repeats_4_day', 1);
$repeats['months'] = $mybb->get_input('repeats_4_months', 1);

					$repeats['day'] = $mybb->get_input('repeats_4_day', MyBB::INPUT_INT);
$repeats['months'] = $mybb->get_input('repeats_4_months', MyBB::INPUT_INT);

				}
else
{

				}
else
{

					$repeats['months'] = $mybb->get_input('repeats_4_months2', 1);

					$repeats['months'] = $mybb->get_input('repeats_4_months2', MyBB::INPUT_INT);

					$repeats['occurance'] = $mybb->get_input('repeats_4_occurance');

					$repeats['occurance'] = $mybb->get_input('repeats_4_occurance');

					$repeats['weekday'] = $mybb->get_input('repeats_4_weekday', 1);

					$repeats['weekday'] = $mybb->get_input('repeats_4_weekday', MyBB::INPUT_INT);

				}
break;
case 5:
$repeats['repeats'] = 5;

				}
break;
case 5:
$repeats['repeats'] = 5;

				if($mybb->get_input('repeats_5_type', 1) == 1)

				if($mybb->get_input('repeats_5_type', MyBB::INPUT_INT) == 1)

				{

				{

					$repeats['day'] = $mybb->get_input('repeats_5_day', 1);
$repeats['month'] = $mybb->get_input('repeats_5_month', 1);
$repeats['years'] = $mybb->get_input('repeats_5_years', 1);

					$repeats['day'] = $mybb->get_input('repeats_5_day', MyBB::INPUT_INT);
$repeats['month'] = $mybb->get_input('repeats_5_month', MyBB::INPUT_INT);
$repeats['years'] = $mybb->get_input('repeats_5_years', MyBB::INPUT_INT);

				}
else
{
$repeats['occurance'] = $mybb->get_input('repeats_5_occurance');

				}
else
{
$repeats['occurance'] = $mybb->get_input('repeats_5_occurance');

					$repeats['weekday'] = $mybb->get_input('repeats_5_weekday', 1);
$repeats['month'] = $mybb->get_input('repeats_5_month2', 1);
$repeats['years'] = $mybb->get_input('repeats_5_years', 1);

					$repeats['weekday'] = $mybb->get_input('repeats_5_weekday', MyBB::INPUT_INT);
$repeats['month'] = $mybb->get_input('repeats_5_month2', MyBB::INPUT_INT);
$repeats['years'] = $mybb->get_input('repeats_5_years', MyBB::INPUT_INT);

				}
break;
default:

				}
break;
default:

Zeile 795Zeile 841
	{
$name = htmlspecialchars_uni($mybb->get_input('name'));
$description = htmlspecialchars_uni($mybb->get_input('description'));

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

		$single_day = $mybb->get_input('single_day', 1);
$single_month[$mybb->get_input('single_month', 1)] = " selected=\"selected\"";
$single_year = $mybb->get_input('single_year', 1);
$start_day = $mybb->get_input('start_day', 1);
$start_month[$mybb->get_input('start_month', 1)] = " selected=\"selected\"";
$start_year = $mybb->get_input('start_year', 1);

		$single_day = $mybb->get_input('single_day', MyBB::INPUT_INT);
$single_month[$mybb->get_input('single_month', MyBB::INPUT_INT)] = " selected=\"selected\"";
$single_year = $mybb->get_input('single_year', MyBB::INPUT_INT);
$start_day = $mybb->get_input('start_day', MyBB::INPUT_INT);
$start_month[$mybb->get_input('start_month', MyBB::INPUT_INT)] = " selected=\"selected\"";
$start_year = $mybb->get_input('start_year', MyBB::INPUT_INT);

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

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

		$end_day = $mybb->get_input('end_day', 1);
$end_month[$mybb->get_input('end_month', 1)] = " selected=\"selected\"";
$end_year = $mybb->get_input('end_year', 1);

		$end_day = $mybb->get_input('end_day', MyBB::INPUT_INT);
$end_month[$mybb->get_input('end_month', MyBB::INPUT_INT)] = " selected=\"selected\"";
$end_year = $mybb->get_input('end_year', MyBB::INPUT_INT);

		$end_time = htmlspecialchars_uni($mybb->get_input('end_time'));
if($mybb->get_input('type') == "single")
{

		$end_time = htmlspecialchars_uni($mybb->get_input('end_time'));
if($mybb->get_input('type') == "single")
{

Zeile 820Zeile 866
		}
if(!empty($mybb->input['repeats']))
{

		}
if(!empty($mybb->input['repeats']))
{

			$repeats_sel[$mybb->get_input('repeats', 1)] = " selected=\"selected\"";

			$repeats_sel[$mybb->get_input('repeats', MyBB::INPUT_INT)] = " selected=\"selected\"";

		}

		}

		$repeats_1_days = $mybb->get_input('repeats_1_days', 1);
$repeats_3_weeks = $mybb->get_input('repeats_3_weeks', 1);
foreach($mybb->get_input('repeats_3_days', 2) as $day => $val)

		$repeats_1_days = $mybb->get_input('repeats_1_days', MyBB::INPUT_INT);
$repeats_3_weeks = $mybb->get_input('repeats_3_weeks', MyBB::INPUT_INT);
foreach($mybb->get_input('repeats_3_days', MyBB::INPUT_ARRAY) as $day => $val)

		{
if($val != 1)
{

		{
if($val != 1)
{

Zeile 834Zeile 880
			$repeats_3_days[$day] = " checked=\"checked\"";
}
$repeats_4_type = array();

			$repeats_3_days[$day] = " checked=\"checked\"";
}
$repeats_4_type = array();

		if($mybb->get_input('repeats_4_type', 1) == 1)

		if($mybb->get_input('repeats_4_type', MyBB::INPUT_INT) == 1)

		{
$repeats_4_type[1] = "checked=\"checked\"";
$repeats_4_type[2] = '';

		{
$repeats_4_type[1] = "checked=\"checked\"";
$repeats_4_type[2] = '';

Zeile 844Zeile 890
			$repeats_4_type[2] = "checked=\"checked\"";
$repeats_4_type[1] = '';
}

			$repeats_4_type[2] = "checked=\"checked\"";
$repeats_4_type[1] = '';
}

		$repeats_4_day = $mybb->get_input('repeats_4_day', 1);
$repeats_4_months = $mybb->get_input('repeats_4_months', 1);

		$repeats_4_day = $mybb->get_input('repeats_4_day', MyBB::INPUT_INT);
$repeats_4_months = $mybb->get_input('repeats_4_months', MyBB::INPUT_INT);

		$repeats_4_occurance[$mybb->get_input('repeats_4_occurance')] = "selected=\"selected\"";

		$repeats_4_occurance[$mybb->get_input('repeats_4_occurance')] = "selected=\"selected\"";

		$repeats_4_weekday[$mybb->get_input('repeats_4_weekday', 1)] = "selected=\"selected\"";
$repeats_4_months2 = $mybb->get_input('repeats_4_months2', 1);
if($mybb->get_input('repeats_5_type', 1) == 1)

		$repeats_4_weekday[$mybb->get_input('repeats_4_weekday', MyBB::INPUT_INT)] = "selected=\"selected\"";
$repeats_4_months2 = $mybb->get_input('repeats_4_months2', MyBB::INPUT_INT);
if($mybb->get_input('repeats_5_type', MyBB::INPUT_INT) == 1)

		{
$repeats_5_type[1] = "checked=\"checked\"";
}

		{
$repeats_5_type[1] = "checked=\"checked\"";
}

Zeile 857Zeile 903
		{
$repeats_5_type[2] = "checked=\"checked\"";
}

		{
$repeats_5_type[2] = "checked=\"checked\"";
}

		$repeats_5_day = $mybb->get_input('repeats_5_day', 1);
$repeats_5_month[$mybb->get_input('repeats_5_month', 1)] = "selected=\"selected\"";
$repeats_5_years = $mybb->get_input('repeats_5_years', 1);

		$repeats_5_day = $mybb->get_input('repeats_5_day', MyBB::INPUT_INT);
$repeats_5_month[$mybb->get_input('repeats_5_month', MyBB::INPUT_INT)] = "selected=\"selected\"";
$repeats_5_years = $mybb->get_input('repeats_5_years', MyBB::INPUT_INT);

		$repeats_5_occurance[$mybb->get_input('repeats_5_occurance')] = "selected=\"selected\"";

		$repeats_5_occurance[$mybb->get_input('repeats_5_occurance')] = "selected=\"selected\"";

		$repeats_5_weekday[$mybb->get_input('repeats_5_weekday', 1)] = "selected=\"selected\"";
$repeats_5_month2[$mybb->get_input('repeats_5_month2', 1)] = "selected=\"selected\"";
$repeats_5_years2 = $mybb->get_input('repeats_5_years2', 1);

		$repeats_5_weekday[$mybb->get_input('repeats_5_weekday', MyBB::INPUT_INT)] = "selected=\"selected\"";
$repeats_5_month2[$mybb->get_input('repeats_5_month2', MyBB::INPUT_INT)] = "selected=\"selected\"";
$repeats_5_years2 = $mybb->get_input('repeats_5_years2', MyBB::INPUT_INT);





		if($mybb->get_input('private', 1) == 1)

		if($mybb->get_input('private', MyBB::INPUT_INT) == 1)

		{
$privatecheck = " checked=\"checked\"";
}

		{
$privatecheck = " checked=\"checked\"";
}

Zeile 874Zeile 920
			$privatecheck = '';
}


			$privatecheck = '';
}


		if($mybb->get_input('ignoretimezone', 1) == 1)

		if($mybb->get_input('ignoretimezone', MyBB::INPUT_INT) == 1)

		{
$ignore_timezone = "checked=\"checked\"";
}

		{
$ignore_timezone = "checked=\"checked\"";
}

Zeile 1052Zeile 1098
		}

if($year == $start_year)

		}

if($year == $start_year)

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

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






		}

		}








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


		if($year == $end_year)

		if($year == $end_year)

		{

		{

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

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

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

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

		else
{
$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)

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

// 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("\$start_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 = "";
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);

$plugins->run_hooks("calendar_editevent_end");

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

$plugins->run_hooks("calendar_editevent_end");





	eval("\$editevent = \"".$templates->get("calendar_editevent")."\";");
output_page($editevent);
}

	eval("\$editevent = \"".$templates->get("calendar_editevent")."\";");
output_page($editevent);
}





// Move an event to another calendar
if($mybb->input['action'] == "move")

// Move an event to another calendar
if($mybb->input['action'] == "move")

{
$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?

{
$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);

	if(!$calendar)
{
error($lang->invalid_calendar);

	}


	}


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

	// Do we have permission to view this calendar or post events?
$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)
{
error_no_permission();
}

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

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

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





	add_breadcrumb(htmlspecialchars_uni($calendar['name']), get_calendar_link($calendar['cid']));
add_breadcrumb($event['name'], get_event_link($event['eid']));
add_breadcrumb($lang->nav_move_event);

	add_breadcrumb(htmlspecialchars_uni($calendar['name']), get_calendar_link($calendar['cid']));
add_breadcrumb($event['name'], get_event_link($event['eid']));
add_breadcrumb($lang->nav_move_event);





	$plugins->run_hooks("calendar_move_start");

	$plugins->run_hooks("calendar_move_start");





	$calendar_select = $selected = '';

	$calendar_select = $selected = '';





	// Build calendar select
$query = $db->simple_select("calendars", "*", "", array("order_by" => "name", "order_dir" => "asc"));
while($calendar_option = $db->fetch_array($query))

	// Build calendar select
$query = $db->simple_select("calendars", "*", "", array("order_by" => "name", "order_dir" => "asc"));
while($calendar_option = $db->fetch_array($query))

Zeile 1172Zeile 1218
			$calendar_option['name'] = htmlspecialchars_uni($calendar_option['name']);
eval("\$calendar_select .= \"".$templates->get("calendar_select")."\";");
}

			$calendar_option['name'] = htmlspecialchars_uni($calendar_option['name']);
eval("\$calendar_select .= \"".$templates->get("calendar_select")."\";");
}

	}


	}


	$plugins->run_hooks("calendar_move_end");

eval("\$moveevent = \"".$templates->get("calendar_move")."\";");

	$plugins->run_hooks("calendar_move_end");

eval("\$moveevent = \"".$templates->get("calendar_move")."\";");

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

{
// 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("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);


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

Zeile 1201Zeile 1247
	if(!$calendar)
{
error($lang->invalid_calendar);

	if(!$calendar)
{
error($lang->invalid_calendar);

	}


	}


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

Zeile 1211Zeile 1257
	}

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

	}

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

	{
error_no_permission();
}

$query = $db->simple_select("calendars", "*", "cid='".$mybb->get_input('new_calendar', 1)."'");
$new_calendar = $db->fetch_array($query);

	{
error_no_permission();
}

$query = $db->simple_select("calendars", "*", "cid='".$mybb->get_input('new_calendar', MyBB::INPUT_INT)."'");
$new_calendar = $db->fetch_array($query);


if(!$new_calendar)


if(!$new_calendar)

	{
error($lang->invalid_calendar);

	{
error($lang->invalid_calendar);

	}

if($calendar_permissions[$mybb->input['new_calendar']]['canviewcalendar'] != 1)
{
error_no_permission();
}

	}

if($calendar_permissions[$mybb->input['new_calendar']]['canviewcalendar'] != 1)
{
error_no_permission();
}





	$updated_event = array(
"cid" => $new_calendar['cid']

	$updated_event = array(
"cid" => $new_calendar['cid']

	);

$plugins->run_hooks("calendar_do_move_start");


	);

$plugins->run_hooks("calendar_do_move_start");


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

$plugins->run_hooks("calendar_do_move_end");

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

$plugins->run_hooks("calendar_do_move_end");

Zeile 1243Zeile 1289

// 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();
}


{
// 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();

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

Zeile 1299Zeile 1345
	$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);

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

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

	}

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

	{
error_no_permission();
}


	{
error_no_permission();
}


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

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

Zeile 1326Zeile 1372

$updated_event = array(
"visible" => 0


$updated_event = array(
"visible" => 0

	);


	);


	$plugins->run_hooks("calendar_unapprove_start");

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

	$plugins->run_hooks("calendar_unapprove_start");

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

Zeile 1365Zeile 1411
	// Do we have permission to view this calendar?
$calendar_permissions = get_calendar_permissions($calendar['cid']);
if($calendar_permissions['canviewcalendar'] != 1 || ($calendar_permissions['canmoderateevents'] != 1 && $event['visible'] == 0))

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

	{

	{

		error_no_permission();
}


		error_no_permission();
}


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


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


	add_breadcrumb(htmlspecialchars_uni($calendar['name']), get_calendar_link($calendar['cid']));
add_breadcrumb($event['name'], get_event_link($event['eid']));


	add_breadcrumb(htmlspecialchars_uni($calendar['name']), get_calendar_link($calendar['cid']));
add_breadcrumb($event['name'], get_event_link($event['eid']));


	$plugins->run_hooks("calendar_event_start");


	$plugins->run_hooks("calendar_event_start");


	$event_parser_options = array(
"allow_html" => $calendar['allowhtml'],
"allow_mycode" => $calendar['allowmycode'],

	$event_parser_options = array(
"allow_html" => $calendar['allowhtml'],
"allow_mycode" => $calendar['allowmycode'],

Zeile 1385Zeile 1431
	);

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

	);

if($mybb->user['showimages'] != 1 && $mybb->user['uid'] != 0 || $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['showvideos'] != 1 && $mybb->user['uid'] != 0 || $mybb->settings['guestvideos'] != 1 && $mybb->user['uid'] == 0)

	{

	{

		$event_parser_options['allow_videocode'] = 0;
}

		$event_parser_options['allow_videocode'] = 0;
}





	$event['description'] = $parser->parse_message($event['description'], $event_parser_options);

// Get the usergroup

	$event['description'] = $parser->parse_message($event['description'], $event_parser_options);

// Get the usergroup

Zeile 1404Zeile 1450
			$event['displaygroup'] = $event['usergroup'];
}
$user_usergroup = $groupscache[$event['displaygroup']];

			$event['displaygroup'] = $event['usergroup'];
}
$user_usergroup = $groupscache[$event['displaygroup']];

	}

	}

	else
{
$user_usergroup = $groupscache[1];

	else
{
$user_usergroup = $groupscache[1];

Zeile 1487Zeile 1533
		}
$event['userstars'] = '';
}

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

 

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


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


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

Zeile 1519Zeile 1567
			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']);

			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;

			else
{
$time_period .= $lang->comma.$lang->all_day;

Zeile 1618Zeile 1666
	}

// Incoming year?

	}

// Incoming year?

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

	$mybb->input['year'] = $mybb->get_input('year', MyBB::INPUT_INT);

	if($mybb->input['year'] && $mybb->input['year'] <= my_date("Y")+5)
{
$year = $mybb->input['year'];

	if($mybb->input['year'] && $mybb->input['year'] <= my_date("Y")+5)
{
$year = $mybb->input['year'];

Zeile 1629Zeile 1677
	}

// Then the month

	}

// Then the month

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

	$mybb->input['month'] = $mybb->get_input('month', MyBB::INPUT_INT);

	if($mybb->input['month'] >= 1 && $mybb->input['month'] <= 12)
{
$month = $mybb->input['month'];

	if($mybb->input['month'] >= 1 && $mybb->input['month'] <= 12)
{
$month = $mybb->input['month'];

Zeile 1640Zeile 1688
	}

// And day?

	}

// And day?

	$mybb->input['day'] = $mybb->get_input('day', 1);

	$mybb->input['day'] = $mybb->get_input('day', MyBB::INPUT_INT);

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

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

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

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

 

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


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


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

Zeile 2233Zeile 2283
	$plugins->run_hooks("calendar_main_view");

// Incoming year?

	$plugins->run_hooks("calendar_main_view");

// Incoming year?

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

	$mybb->input['year'] = $mybb->get_input('year', MyBB::INPUT_INT);

	if($mybb->input['year'] && $mybb->input['year'] <= my_date("Y")+5)
{
$year = $mybb->input['year'];

	if($mybb->input['year'] && $mybb->input['year'] <= my_date("Y")+5)
{
$year = $mybb->input['year'];

Zeile 2244Zeile 2294
	}

// Then the month

	}

// Then the month

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

	$mybb->input['month'] = $mybb->get_input('month', MyBB::INPUT_INT);

	if($mybb->input['month'] >= 1 && $mybb->input['month'] <= 12)
{
$month = $mybb->input['month'];

	if($mybb->input['month'] >= 1 && $mybb->input['month'] <= 12)
{
$month = $mybb->input['month'];