d19cd02b3f56c2b63141c1f4c40930cb5c08048e
[moodle.git] / sso / hive / expired.php
1 <?php
2        // expired.php - called by hive when the session has expired.
4     require('../../config.php');
6     require('lib.php');
8     require_login();
10     //MW theres no easy way to log in seamlessly. We need the users unhashed password.
11     // It's a security risk to carry that in $SESSION so we put up login form.
12     $PAGE->set_url(new moodle_url($CFG->wwwroot.'/sso/hive/expired.php'));
13     echo $OUTPUT->header();
14     echo $OUTPUT->notification('Your session has expired. Please log in again.'); 
15 ?>
16       <form action="login.php" method="post" id="login">
17         <table border="0" align="center">
18         <tr>
19           <td width="80%">
20             <table align="center" class="loginform">
21               <tr class="username">
22                 <td align="right" class="c0">
23                   <?php print_string("username") ?>:
24                 </td>
25                 <td class="c1">
26                   <input type="text" name="username" size="15" value="<?php p($frm->username) ?>" alt="<?php print_string("username") ?>" />
27                 </td>
28               </tr>
29               <tr class="password">
30                 <td align="right" class="c0">
31                   <?php print_string("password") ?>:
32                 </td>
33                 <td class="c1">
34                   <input type="password" name="password" size="15" value="" alt="<?php print_string("password") ?>" />
35                 </td>
36               </tr>
37             </table>
38           </td>
39           <td width="20%">
40             <input type="submit" value="<?php print_string("login") ?>" />
41           </td>
42         </tr>
43         </table>
44       </form>
45 <br />
46 <?php
47     echo $OUTPUT->close_window_button();
48 ?>