mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
29 lines
622 B
PHP
29 lines
622 B
PHP
<?php
|
|
/**
|
|
* Wrapper script redirecting user operations to correct destination.
|
|
*/
|
|
|
|
require_once("../config.php");
|
|
|
|
$formaction = required_param('formaction', PARAM_FILE);
|
|
$id = required_param('id', PARAM_INT);
|
|
|
|
// Add every page will be redirected by this script
|
|
$actions = array(
|
|
'messageselect.php',
|
|
'extendenrol.php',
|
|
'groupextendenrol.php',
|
|
'addnote.php',
|
|
'groupaddnote.php',
|
|
);
|
|
|
|
if (array_search($formaction, $actions) === false) {
|
|
print_error('unknownuseraction');
|
|
}
|
|
|
|
if (!confirm_sesskey()) {
|
|
print_error('confirmsesskeybad');
|
|
}
|
|
|
|
require_once($formaction);
|
|
?>
|