2 $config = get_config('auth/shibboleth');
4 if ($show_instructions) {
5 $columns = 'twocolumns';
7 $columns = 'onecolumn';
10 <div class=
"loginbox clearfix <?php echo $columns ?>">
11 <div
class="loginpanel">
12 <!--<h2
><?php
print_string("returningtosite") ?></h2>-->
15 if (isset($config->login_name
) && !empty($config->login_name
)){
16 echo $config->login_name
;
18 print_string("auth_shibboleth_login_long", "auth");
21 <div class=
"subcontent loginsub">
24 if (!empty($errormsg)) {
25 echo '<div class="loginerrors">';
31 <div class=
"guestsub">
32 <p><?php print_string("auth_shibboleth_select_organization", "auth"); ?></p>
33 <form action=
"login.php" method=
"post" id=
"guestlogin">
35 <option value=
"-" ><?php print_string("auth_shibboleth_select_member", "auth"); ?></option>
39 </select><p><input type=
"submit" value=
"<?php print_string("select
"); ?>" accesskey
="s" /></p
>
43 print_string("auth_shibboleth_contact_administrator", "auth");
44 echo '<a href="mailto:'.get_admin()->email
.'"> Moodle Administrator</a>.';
51 <?php if ($CFG->guestloginbutton
) { ?>
52 <div class=
"subcontent guestsub">
54 <?php print_string("someallowguest") ?>
56 <form action=
"../../login/index.php" method=
"post" id=
"guestlogin">
57 <div class=
"guestform">
58 <input type=
"hidden" name=
"username" value=
"guest" />
59 <input type=
"hidden" name=
"password" value=
"guest" />
60 <input type=
"hidden" name=
"testcookies" value=
"1" />
61 <input type=
"submit" value=
"<?php print_string("loginguest
") ?>" />
69 <?php if ($show_instructions) { ?>
70 <div class=
"signuppanel">
71 <h2><?php print_string("firsttime") ?></h2>
72 <div class=
"subcontent">
73 <?php if (is_enabled_auth('none')) { // instructions override the rest for security reasons
74 print_string("loginstepsnone");
75 } else if ($CFG->registerauth
== 'email') {
76 if (!empty($CFG->auth_instructions
)) {
77 echo format_text($CFG->auth_instructions
);
79 print_string("loginsteps", "", "signup.php");
81 <div class=
"signupform">
82 <form action=
"../../login/signup.php" method=
"get" id=
"signup">
83 <div><input type=
"submit" value=
"<?php print_string("startsignup
") ?>" /></div
>
86 <?php
} else if (!empty($CFG->registerauth
)) {
87 echo format_text($CFG->auth_instructions
); ?>
88 <div class=
"signupform">
89 <form action=
"../../login/signup.php" method=
"get" id=
"signup">
90 <div><input type=
"submit" value=
"<?php print_string("startsignup
") ?>" /></div
>
94 echo format_text($CFG->auth_instructions
);