2 // Logs the user out and sends them to the home page
4 require_once("../config.php");
7 $sesskey = optional_param('sesskey', '__notpresent__', PARAM_RAW
); // we want not null default to prevent required sesskey warning
9 if (!confirm_sesskey($sesskey)) {
10 print_header($SITE->fullname
, $SITE->fullname
, 'home');
11 notice_yesno(get_string('logoutconfirm'), 'logout.php', $CFG->wwwroot
.'/', array('sesskey'=>sesskey()), null, 'post', 'get');
18 redirect("$CFG->wwwroot/");