13 lines
No EOL
388 B
PHP
13 lines
No EOL
388 B
PHP
<?php
|
|
require_once('../../config.php');
|
|
|
|
$pmurl = optional_param('wantsurl',"/", PARAM_TEXT);
|
|
$id = optional_param('id',"1", PARAM_TEXT);
|
|
|
|
$PAGE->set_url(new moodle_url('local/auto_oauth2/redirector.php'));
|
|
|
|
$PAGE->set_context(\context_system::instance());
|
|
|
|
$PAGE->set_title("Redirect");
|
|
|
|
redirect($CFG->wwwroot.'/auth/oauth2/login.php?id='.$id.'&wantsurl='.$pmurl.'&sesskey='.sesskey()); |