diff --git a/main/tracking/courseLog.php b/main/tracking/courseLog.php index 7d44eeaf8b..01ce111aa6 100644 --- a/main/tracking/courseLog.php +++ b/main/tracking/courseLog.php @@ -28,10 +28,8 @@ if ($from == 'myspace') { // Access restrictions. $is_allowedToTrack = api_is_platform_admin() || api_is_allowed_to_create_course() || api_is_session_admin() || api_is_drh() || api_is_course_tutor(); -if (!$is_allowedToTrack) { - Display :: display_header(null); - api_not_allowed(); - Display :: display_footer(); +if (!$is_allowedToTrack) { + api_not_allowed(); exit; } diff --git a/main/tracking/course_session_report.php b/main/tracking/course_session_report.php index dc72302bbb..7479078908 100644 --- a/main/tracking/course_session_report.php +++ b/main/tracking/course_session_report.php @@ -9,7 +9,6 @@ $language_file = array ('registration', 'index', 'tracking', 'exercice','survey'); $cidReset = true; require_once '../inc/global.inc.php'; -require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'; require_once api_get_path(LIBRARY_PATH).'pear/Spreadsheet_Excel_Writer/Writer.php'; require_once api_get_path(SYS_CODE_PATH).'exercice/exercise.class.php'; diff --git a/main/tracking/exams.php b/main/tracking/exams.php index b58fa58a0e..78e4e8df9d 100644 --- a/main/tracking/exams.php +++ b/main/tracking/exams.php @@ -16,10 +16,8 @@ $this_section = SECTION_TRACKING; $is_allowedToTrack = $is_courseAdmin || $is_platformAdmin || $is_courseCoach || $is_sessionAdmin; -if(!$is_allowedToTrack) { - Display :: display_header(null); +if(!$is_allowedToTrack) { api_not_allowed(); - Display :: display_footer(); } $export_to_xls = false; diff --git a/main/tracking/userLog.php b/main/tracking/userLog.php old mode 100755 new mode 100644 index 4e11322eb5..92044e9e46 --- a/main/tracking/userLog.php +++ b/main/tracking/userLog.php @@ -78,7 +78,7 @@ $tbl_session_course_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_U $tbl_session = Database::get_main_table(TABLE_MAIN_SESSION); $TABLECOURSE_GROUPSUSER = Database::get_course_table(TABLE_GROUP_USER); -if(api_get_setting('use_session_mode') == "true") { +if (api_get_setting('use_session_mode') == "true") { $sql = "SELECT 1 FROM $tbl_session_course_user AS session_course_user INNER JOIN $tbl_session AS session