Source for file sl_enrolment.php

Documentation is available at sl_enrolment.php

  1. <?php
  2.  
  3. /**
  4. * Sloodle enrolment forwarding script.
  5. * This script will force the user to login, then forward them to the appropriate Moodle course enrolment page.
  6. * This is necessary due to the behaviour of some browsers when given a URL by SL.
  7. *
  8. @copyright Copyright (c) 2008 Sloodle (various contributors)
  9. @contributor Peter R. Bloomfield
  10. @package sloodlelogin
  11. */
  12.  
  13. require_once('../config.php');
  14.  
  15. $sloodlecourseid required_param('sloodlecourseid'PARAM_INT);
  16. require_login();
  17.  
  18. redirect("{$CFG->wwwroot}/course/enrol.php?id=$sloodlecourseid");
  19.  
  20. exit;
  21.  
  22. ?>

Documentation generated on Tue, 04 Mar 2008 15:08:39 +0000 by phpDocumentor 1.4.0