3 $nomoodlecookie = true; // session not used here
4 require '../../../config.php';
6 $id = required_param('id', PARAM_INT
); // course id
7 if (!$course = get_record('course', 'id', $id)) {
8 print_error('nocourseid');
11 require_user_key_login('grade/export', $id); // we want different keys for each course
13 if (empty($CFG->gradepublishing
)) {
14 error('Grade publishing disabled');
17 $context = get_context_instance(CONTEXT_COURSE
, $id);
18 require_capability('gradeexport/ods:publish', $context);
20 // use the same page parameters as export.php and append &key=sdhakjsahdksahdkjsahksadjksahdkjsadhksa