MDL-16553 Assignment, student view: whitespace fix
[moodle.git] / user / action_redir.php
blob9880d356f99d2d35d67ddbdbc7ae0c0c4f862b3c
1 <?php
2 /**
3 * Wrapper script redirecting user operations to correct destination.
4 */
6 require_once("../config.php");
8 $formaction = required_param('formaction', PARAM_FILE);
9 $id = required_param('id', PARAM_INT);
11 // Add every page will be redirected by this script
12 $actions = array(
13 'messageselect.php',
14 'extendenrol.php',
15 'groupextendenrol.php',
16 'addnote.php',
17 'groupaddnote.php',
20 if (array_search($formaction, $actions) === false) {
21 print_error('unknownuseraction');
24 if (!confirm_sesskey()) {
25 print_error('confirmsesskeybad');
28 require_once($formaction);