set_url('/calendar/view.php'); redirect($CFG->wwwroot.'/calendar/view.php');