Vergleich calendar.php - 1.6.6 - 1.6.7

  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: calendar.php 5420 2011-04-05 08:20:02Z Tomm $

 * $Id: calendar.php 5746 2012-02-03 10:03:25Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 674Zeile 674
	}

$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($lang->nav_editevent);

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

Zeile 948Zeile 948
			$single_days .= "<option value=\"{$i}\">{$i}</option>\n";
}
if($i == $start_day)

			$single_days .= "<option value=\"{$i}\">{$i}</option>\n";
}
if($i == $start_day)

		{

		{

			$start_days .= "<option value=\"{$i}\" selected=\"selected\">{$i}</option>\n";
}
else

			$start_days .= "<option value=\"{$i}\" selected=\"selected\">{$i}</option>\n";
}
else

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

if(!is_numeric($event['eid']))

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

if(!is_numeric($event['eid']))

	{
error($lang->error_invalidevent);
}

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

// Invalid calendar?

	{
error($lang->error_invalidevent);
}

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

// Invalid calendar?

	if(!$calendar['cid'])
{
error($lang->invalid_calendar);

	if(!$calendar['cid'])
{
error($lang->invalid_calendar);

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

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

$plugins->run_hooks("calendar_unapprove_start");

	{
error_no_permission();
}

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

$plugins->run_hooks("calendar_unapprove_start");


$updated_event = array(
"visible" => 0


$updated_event = array(
"visible" => 0

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

$plugins->run_hooks("calendar_unapprove_end");

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

$plugins->run_hooks("calendar_unapprove_end");





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


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


Zeile 1206Zeile 1206

// Invalid calendar?
if(!$calendar['cid'])


// Invalid calendar?
if(!$calendar['cid'])

	{

	{

		error($lang->invalid_calendar);
}


		error($lang->invalid_calendar);
}


Zeile 1218Zeile 1218
	}

$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'],