2005-09-29 06:30:58 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* Wrapper script redirecting user operations to correct destination
|
|
|
|
*/
|
|
|
|
require_once("../config.php");
|
|
|
|
|
2005-11-08 02:34:19 +00:00
|
|
|
if (empty($_POST) || empty($_POST['formaction']) || empty($_POST['id'])) {
|
2005-09-29 06:30:58 +00:00
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Add every page will be redirected by this script
|
|
|
|
$actions = array(
|
|
|
|
'messageselect.php',
|
|
|
|
'extendenrol.php'
|
|
|
|
);
|
|
|
|
|
2005-11-08 02:34:19 +00:00
|
|
|
if (array_search($_POST['formaction'], $actions) === false) {
|
2005-09-29 06:30:58 +00:00
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!confirm_sesskey()) {
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
2005-11-08 02:34:19 +00:00
|
|
|
require_once($_POST['formaction']);
|
2005-09-29 06:30:58 +00:00
|
|
|
?>
|