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_shibboleth");
21 <div class=
"subcontent loginsub">
24 if (!empty($errormsg)) {
25 echo '<div class="loginerrors">';
26 echo $OUTPUT->error_text($errormsg);
31 <div class=
"guestsub">
32 <p><label for=
"idp"><?php print_string("auth_shibboleth_select_organization", "auth_shibboleth"); ?></label></p>
33 <form action=
"login.php" method=
"post" id=
"guestlogin">
34 <select id=
"idp" name=
"idp">
35 <option value=
"-" ><?php print_string("auth_shibboleth_select_member", "auth_shibboleth"); ?></option>
39 </select><p><input type=
"submit" value=
"<?php print_string("select
"); ?>" accesskey
="s" /></p
>
43 print_string("auth_shib_contact_administrator", "auth_shibboleth", get_admin()->email
);
50 <?php if ($CFG->guestloginbutton
) { ?>
51 <div class=
"subcontent guestsub">
53 <?php print_string("someallowguest") ?>
55 <form action=
"../../login/index.php" method=
"post" id=
"guestlogin">
56 <div class=
"guestform">
57 <input type=
"hidden" name=
"username" value=
"guest" />
58 <input type=
"hidden" name=
"password" value=
"guest" />
59 <input type=
"submit" value=
"<?php print_string("loginguest
") ?>" />
67 <?php if ($show_instructions) { ?>
68 <div class=
"signuppanel">
69 <h2><?php print_string("firsttime") ?></h2>
70 <div class=
"subcontent">
71 <?php if (is_enabled_auth('none')) { // instructions override the rest for security reasons
72 print_string("loginstepsnone");
73 } else if ($CFG->registerauth
== 'email') {
74 if (!empty($config->auth_instructions
)) {
75 echo format_text($config->auth_instructions
);
77 print_string("loginsteps", "", "signup.php");
79 <div class=
"signupform">
80 <form action=
"../../login/signup.php" method=
"get" id=
"signup">
81 <div><input type=
"submit" value=
"<?php print_string("startsignup
") ?>" /></div
>
84 <?php
} else if (!empty($CFG->registerauth
)) {
85 echo format_text($config->auth_instructions
); ?>
86 <div class=
"signupform">
87 <form action=
"../../login/signup.php" method=
"get" id=
"signup">
88 <div><input type=
"submit" value=
"<?php print_string("startsignup
") ?>" /></div
>
92 echo format_text($config->auth_instructions
);