read($exercise_id); } //Only users can see their own results if (!$is_allowedToEdit) { if ($student_id != $current_user_id) { api_not_allowed($show_headers); } } if ($show_headers) { $interbreadcrumb[] = array("url" => "exercice.php","name" => get_lang('Exercices')); $interbreadcrumb[] = array("url" => "#","name" => get_lang('Result')); $this_section = SECTION_COURSES; Display::display_header(); } else { $htmlHeadXtra[] = " "; Display::display_reduced_header(); } display_question_list_by_attempt($objExercise, $id, false); if ($show_headers) { Display::display_footer(); }