Vergleich calendar.php - 1.6.5 - 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 673Zeile 673
		error_no_permission();
}


		error_no_permission();
}


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


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

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

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

	add_breadcrumb($event['name'], get_event_link($event['eid']));

	add_breadcrumb($lang->nav_editevent);

$plugins->run_hooks("calendar_editevent_start");

	add_breadcrumb($lang->nav_editevent);

$plugins->run_hooks("calendar_editevent_start");

Zeile 1002Zeile 1004
	{
error_no_permission();
}

	{
error_no_permission();
}

 

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


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


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

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

	add_breadcrumb($event['name'], get_event_link($event['eid']));

	add_breadcrumb($lang->nav_move_event);

$plugins->run_hooks("calendar_move_start");

	add_breadcrumb($lang->nav_move_event);

$plugins->run_hooks("calendar_move_start");

Zeile 1144Zeile 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);


	{
error($lang->error_invalidevent);
}

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


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

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

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

	{
error_no_permission();
}

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


$plugins->run_hooks("calendar_unapprove_start");



$plugins->run_hooks("calendar_unapprove_start");


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


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


	$plugins->run_hooks("calendar_unapprove_end");


	$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 1212Zeile 1216
	{
error_no_permission();
}

	{
error_no_permission();
}

 

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


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


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

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

	add_breadcrumb($event['name'], get_event_link($event['eid']));


$plugins->run_hooks("calendar_event_start");


$plugins->run_hooks("calendar_event_start");


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

 

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


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