Zeile 672 | Zeile 672 |
---|
{ 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 1002 | Zeile 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 1079 | Zeile 1083 |
---|
$updated_event = array( "cid" => $new_calendar['cid']
|
$updated_event = array( "cid" => $new_calendar['cid']
|
); $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");
|
redirect(get_event_link($event['eid']), $lang->redirect_eventmoved); }
// Approve an event if($mybb->input['action'] == "approve")
|
redirect(get_event_link($event['eid']), $lang->redirect_eventmoved); }
// Approve an event if($mybb->input['action'] == "approve")
|
{ // Verify incoming POST request verify_post_check($mybb->input['my_post_key']);
$query = $db->simple_select("events", "*", "eid='".intval($mybb->input['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);
| { // Verify incoming POST request verify_post_check($mybb->input['my_post_key']);
$query = $db->simple_select("events", "*", "eid='".intval($mybb->input['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? if(!$calendar['cid']) {
| // Invalid calendar? if(!$calendar['cid']) {
|
Zeile 1119 | Zeile 1123 |
---|
if($calendar_permissions['canmoderateevents'] != 1) {
|
if($calendar_permissions['canmoderateevents'] != 1) {
|
error_no_permission();
| error_no_permission();
|
}
|
}
|
|
|
$plugins->run_hooks("calendar_approve_start");
$updated_event = array( "visible" => 1 );
|
$plugins->run_hooks("calendar_approve_start");
$updated_event = array( "visible" => 1 );
|
$db->update_query("events", $updated_event, "eid='{$event['eid']}'");
| $db->update_query("events", $updated_event, "eid='{$event['eid']}'");
|
$plugins->run_hooks("calendar_approve_end");
| $plugins->run_hooks("calendar_approve_end");
|
Zeile 1144 | Zeile 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 1160 | Zeile 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 1176 | Zeile 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 1193 | Zeile 1197 |
---|
$event = $db->fetch_array($query);
if(!is_numeric($event['eid']) || ($event['private'] == 1 && $event['uid'] != $mybb->user['uid']))
|
$event = $db->fetch_array($query);
if(!is_numeric($event['eid']) || ($event['private'] == 1 && $event['uid'] != $mybb->user['uid']))
|
{
| {
|
error($lang->error_invalidevent); }
| error($lang->error_invalidevent); }
|
Zeile 1213 | Zeile 1217 |
---|
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'], "allow_mycode" => $calendar['allowmycode'],
| $event_parser_options = array( "allow_html" => $calendar['allowhtml'], "allow_mycode" => $calendar['allowmycode'],
|