} // If we have to approve or reject a booking, check that we have rights to do so // for this room if (($action == "approve" || $action == "reject") && !auth_book_admin($user, $room_id)) { showAccessDenied($day, $month, $year, $area, isset($room) ? $room : ""); exit; } switch ($action) { // ACTION = "APPROVE" case 'approve': if ($need_to_send_mail) { $is_new_entry = FALSE; // Get the current booking data, before we change anything, for use in emails $mail_previous = mrbsGetBookingInfo($id, $series); } $start_times = mrbsApproveEntry($id, $series); $result = $start_times !== FALSE; if ($result === FALSE) { $returl .= "&error=approve_failed"; } break; // ACTION = "MORE_INFO" // ACTION = "MORE_INFO" case 'more_info': // update the last reminded time (the ball is back in the // originator's court, so the clock gets reset) mrbsUpdateLastReminded($id, $series); // update the more info fields mrbsUpdateMoreInfo($id, $series, $user, $note); $result = TRUE; // We'll assume success and end an email anyway
} // If we have to approve or reject a booking, check that we have rights to do so // for this room if (($action == "approve" || $action == "reject") && !auth_book_admin($user, $room_id)) { showAccessDenied($day, $month, $year, $area, isset($room) ? $room : ""); exit; } switch ($action) { // ACTION = "APPROVE" case 'approve': if ($need_to_send_mail) { $is_new_entry = FALSE; // Get the current booking data, before we change anything, for use in emails $mail_previous = mrbsGetBookingInfo($id, $series); } $result = mrbsApproveEntry($id, $series); if (!$result) { $returl .= "&error=approve_failed"; } break; // ACTION = "MORE_INFO" // ACTION = "MORE_INFO" case 'more_info': // update the last reminded time (the ball is back in the // originator's court, so the clock gets reset) mrbsUpdateLastReminded($id, $series); // update the more info fields mrbsUpdateMoreInfo($id, $series, $user, $note); $result = TRUE; // We'll assume success and end an email anyway break;