} Display::display_confirmation_message($message); } // Delete a category if (($action == 'deletereceivedcategory' or $action == 'deletesentcategory') and isset($_GET['id']) and is_numeric($_GET['id'])) { if (api_get_session_id() != 0 && !api_is_allowed_to_session_edit(false, true)) { api_not_allowed(); } $message = delete_category($action, $_GET['id']); Display::display_confirmation_message($message); } // Do an action on multiple files // only the download has is handled separately in dropbox_init_inc.php because this has to be done before the headers are sent // (which also happens in dropbox_init.inc.php if (!isset($_POST['feedback']) && (strstr($postAction, 'move_received') or $postAction == 'delete_received' or $postAction == 'download_received' or $postAction == 'delete_sent' or $postAction == 'download_sent')) { $display_message = handle_multiple_actions(); Display::display_normal_message($display_message); } // Store Feedback if (isset($_POST['feedback'])) { if (api_get_session_id() != 0 && !api_is_allowed_to_session_edit(false, true)) { api_not_allowed(); } $check = Security::check_token(); if ($check) { $display_message = store_feedback(); Display::display_normal_message($display_message); Security::check_token(); } } // Error Message
<meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="-1">'; $checked_files = false; if (!$view or $view == 'received') { $part = 'received'; } elseif ($view = 'sent') { $part = 'sent'; } else { header('location: index.php?view=' . $view . '&error=Error'); } if ($postAction == 'download_received' || $postAction == 'download_sent' and !$_POST['store_feedback']) { $checked_file_ids = $_POST['id']; if (!is_array($checked_file_ids) || count($checked_file_ids) == 0) { header('location: index.php?view=' . $view . '&error=CheckAtLeastOneFile'); } else { handle_multiple_actions(); } exit; } /* * AUTHORISATION SECTION * Prevents access of all users that are not course members */ if ((!$is_allowed_in_course || !$is_course_member) && !api_is_allowed_to_edit(null, true)) { if ($origin != 'learnpath') { api_not_allowed(true); //print headers/footers } else { api_not_allowed(); } exit;