[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/user/ -> action_redir.php (source)

   1  <?php
   2  /**
   3  * Wrapper script redirecting user operations to correct destination.
   4  */
   5  
   6  require_once("../config.php");
   7  
   8  $formaction = required_param('formaction', PARAM_FILE);
   9  $id = required_param('id', PARAM_INT);
  10  
  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',
  18          );
  19  
  20  if (array_search($formaction, $actions) === false) {
  21      print_error('unknownuseraction');
  22  }
  23  
  24  if (!confirm_sesskey()) {
  25      print_error('confirmsesskeybad');
  26  }
  27  
  28  require_once($formaction);
  29  ?>


Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7