<?php

/**
 * Redirect the user to the appropriate submission related page
 *
 * @author Leônidas O. Brandão
 * @version v 0.1 2019/03/04
 * @package   mod_nasatlx
 * @category  grade
 * @copyright 2014 LInE - http://line.ime.usp.br
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

require_once(__DIR__ . "../../config.php");

$id = required_param('id', PARAM_INT);          // Course module ID
$itemnumber = optional_param('itemnumber', 0, PARAM_INT); // Item number, may be != 0 for activities that allow more than one grade per user
$userid = optional_param('userid', 0, PARAM_INT); // Graded user ID (optional)

//in the simplest case just redirect to the view page
redirect('view.php?id='.$id);