Removed to match original MOODLE_16_STABLE ... not sure how this got in again.
[moodle.git] / user / action_redir.php
blob157ff1b096086ab96ff9ddee999e1d04bdd8e9c9
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'
17 if (array_search($formaction, $actions) === false) {
18 print_error('unknownuseraction');
21 if (!confirm_sesskey()) {
22 print_error('confirmsesskeybad');
25 require_once($formaction);