[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 $config = get_config('auth/shibboleth'); 3 4 if ($show_instructions) { 5 $columns = 'twocolumns'; 6 } else { 7 $columns = 'onecolumn'; 8 } 9 ?> 10 <div class="loginbox clearfix <?php echo $columns ?>"> 11 <div class="loginpanel"> 12 <!--<h2><?php print_string("returningtosite") ?></h2>--> 13 14 <h2><?php 15 if (isset($config->login_name) && !empty($config->login_name)){ 16 echo $config->login_name; 17 } else { 18 print_string("auth_shibboleth_login_long", "auth_shibboleth"); 19 } 20 ?></h2> 21 <div class="subcontent loginsub"> 22 <div class="desc"> 23 <?php 24 if (!empty($errormsg)) { 25 echo '<div class="loginerrors">'; 26 echo $OUTPUT->error_text($errormsg); 27 echo '</div>'; 28 } 29 30 ?> 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> 36 <?php 37 print_idp_list(); 38 ?> 39 </select><p><input type="submit" value="<?php print_string("select"); ?>" accesskey="s" /></p> 40 </form> 41 <p> 42 <?php 43 print_string("auth_shib_contact_administrator", "auth_shibboleth", get_admin()->email); 44 ?> 45 </p> 46 </div> 47 </div> 48 </div> 49 50 <?php if ($CFG->guestloginbutton) { ?> 51 <div class="subcontent guestsub"> 52 <div class="desc"> 53 <?php print_string("someallowguest") ?> 54 </div> 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") ?>" /> 60 </div> 61 </form> 62 </div> 63 <?php } ?> 64 </div> 65 66 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($CFG->auth_instructions)) { 75 echo format_text($CFG->auth_instructions); 76 } else { 77 print_string("loginsteps", "", "signup.php"); 78 } ?> 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> 82 </form> 83 </div> 84 <?php } else if (!empty($CFG->registerauth)) { 85 echo format_text($CFG->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> 89 </form> 90 </div> 91 <?php } else { 92 echo format_text($CFG->auth_instructions); 93 } ?> 94 </div> 95 </div> 96 <?php } ?> 97 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |