| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?php 2 3 require_once dirname(dirname(__FILE__)) . '/config.php'; 4 httpsrequired(); 5 6 $username = required_param('u', PARAM_ALPHANUM); 7 $sesskey = sesskey(); 8 9 // if you are logged in then you shouldn't be here 10 if (isloggedin() and !isguestuser()) { 11 redirect( $CFG->wwwroot.'/', get_string('loginalready'), 5); 12 } 13 $navigation = build_navigation(array(array('name' => 'MNET ID Provider', 'link' => null, 'type' => 'misc'))); 14 15 print_header('MNET ID Provider', 'MNET ID Provider', $navigation, 'form.email' ); 16 17 if ($form = data_submitted() and confirm_sesskey()) { 18 if ($user = get_record('user', 'username', $username, 'email', $form->email)) { 19 if (!empty($user->mnethostid) and $host = get_record('mnet_host', 'id', $user->mnethostid)) { 20 notice("You should be able to login at your <a href=\"{$host->wwwroot}/login/\">{$host->name}</a> provider."); 21 } 22 } 23 } 24 25 echo '<p> </p>'; 26 print_simple_box_start('center','50%','','20'); 27 28 ?> 29 <form method="post"> 30 <input type="hidden" name="sesskey" value="<?php echo $sesskey; ?>"> 31 <?php echo get_string('email') ?>: 32 <input type="text" name="email" size="" maxlength="100" /> 33 <input type="submit" value="Find Login" /> 34 </form> 35 <?php 36 37 print_simple_box_end(); 38 print_footer(); 39 40 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |