moodle/course/jumpto.php

19 lines
234 B
PHP

<?php // $Id$
/*
* Jumps to a given URL. Mostly used for accessibility.
*
*/
require('../config.php');
$jump = parameter('jump');
if ($jump) {
redirect(urldecode($jump));
}
redirect($_SERVER['HTTP_REFERER']);
?>