mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
auth MDL-19788 Upgraded print_header and build_navigation calls to use PAGE and OUTPUT equivilants
This commit is contained in:
parent
d5bfce1f86
commit
cfc5b79b86
@ -132,11 +132,10 @@ class auth_plugin_cas extends auth_plugin_base {
|
||||
// test pgtIou parameter for proxy mode (https connection
|
||||
// in background from CAS server to the php server)
|
||||
if ($authCAS!="CAS" && !isset($_GET["pgtIou"])) {
|
||||
$navlinks = array();
|
||||
$navlinks[] = array('name' => $CASform, 'link' => null, 'type' => 'misc');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header("$site->fullname: $CASform", $site->fullname, $navigation);
|
||||
$PAGE->navbar->add($CASform);
|
||||
$PAGE->set_title("$site->fullname: $CASform");
|
||||
$PAGE->set_heading($site->fullname);
|
||||
echo $OUTPUT->header();
|
||||
include($CFG->dirroot."/auth/cas/cas_form.html");
|
||||
echo $OUTPUT->footer();
|
||||
exit();
|
||||
|
@ -96,11 +96,10 @@ class auth_plugin_email extends auth_plugin_base {
|
||||
if ($notify) {
|
||||
global $CFG;
|
||||
$emailconfirm = get_string('emailconfirm');
|
||||
$navlinks = array();
|
||||
$navlinks[] = array('name' => $emailconfirm, 'link' => null, 'type' => 'misc');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header($emailconfirm, $emailconfirm, $navigation);
|
||||
$PAGE->navbar->add($emailconfirm);
|
||||
$PAGE->set_title($emailconfirm);
|
||||
$PAGE->set_heading($emailconfirm);
|
||||
echo $OUTPUT->header();
|
||||
notice(get_string('emailconfirmsent', '', $user->email), "$CFG->wwwroot/index.php");
|
||||
} else {
|
||||
return true;
|
||||
|
@ -439,11 +439,10 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
if ($notify) {
|
||||
global $CFG;
|
||||
$emailconfirm = get_string('emailconfirm');
|
||||
$navlinks = array();
|
||||
$navlinks[] = array('name' => $emailconfirm, 'link' => null, 'type' => 'misc');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header($emailconfirm, $emailconfirm, $navigation);
|
||||
$PAGE->navbar->add($emailconfirm);
|
||||
$PAGE->set_title($emailconfirm);
|
||||
$PAGE->set_heading($emailconfirm);
|
||||
echo $OUTPUT->header();
|
||||
notice(get_string('emailconfirmsent', '', $user->email), "$CFG->wwwroot/index.php");
|
||||
} else {
|
||||
return true;
|
||||
|
@ -27,9 +27,10 @@ $sesskey = sesskey();
|
||||
// and FF 3.x (Windows version at least) where javascript timers fire up even
|
||||
// when we've already left the page that set the timer.
|
||||
$loginsite = get_string("loginsite");
|
||||
$navlinks = array(array('name' => $loginsite, 'link' => null, 'type' => 'misc'));
|
||||
$navigation = build_navigation($navlinks);
|
||||
print_header("$site->fullname: $loginsite", $site->fullname, $navigation, '', '', true);
|
||||
$PAGE->navbar->add($loginsite);
|
||||
$PAGE->set_title("$site->fullname: $loginsite");
|
||||
$PAGE->set_heading($site->fullname);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
$msg = '<p>'.get_string('ntlmsso_attempting','auth_ldap').'</p>'
|
||||
. '<img width="1", height="1" '
|
||||
|
@ -27,9 +27,10 @@ if (!$authplugin->ntlmsso_finish()) {
|
||||
// Display the page header. This makes redirect respect the timeout we specify
|
||||
// here (and not add 3 more secs).
|
||||
$loginsite = get_string("loginsite");
|
||||
$navlinks = array(array('name' => $loginsite, 'link' => null, 'type' => 'misc'));
|
||||
$navigation = build_navigation($navlinks);
|
||||
print_header("$site->fullname: $loginsite", $site->fullname, $navigation, '', '', true);
|
||||
$PAGE->navbar->add($loginsite);
|
||||
$PAGE->set_title("$site->fullname: $loginsite");
|
||||
$PAGE->set_heading($site->fullname);
|
||||
echo $OUTPUT->header();
|
||||
redirect($CFG->httpswwwroot . '/login/index.php?authldap_skipntlmsso=1',
|
||||
get_string('ntlmsso_failed','auth_ldap'), 3);
|
||||
}
|
||||
|
@ -71,12 +71,14 @@ httpsrequired();
|
||||
}
|
||||
|
||||
$loginsite = get_string("loginsite");
|
||||
$navlinks = array(array('name' => $loginsite, 'link' => null, 'type' => 'misc'));
|
||||
$navigation = build_navigation($navlinks);
|
||||
$focus = 'idp';
|
||||
print_header("$site->fullname: $loginsite", $site->fullname, $navigation, $focus,
|
||||
'', true, '<div class="langmenu">'.$langmenu.'</div>');
|
||||
|
||||
$PAGE->navbar->add($loginsite);
|
||||
$PAGE->set_title("$site->fullname: $loginsite");
|
||||
$PAGE->set_heading($site->fullname);
|
||||
$PAGE->set_focuscontrol('idp');
|
||||
$PAGE->set_headingmenu('<div class="langmenu">'.$langmenu.'</div>');
|
||||
|
||||
echo $OUTPUT->header();
|
||||
include("index_form.html");
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user