* Login works again when using an old-style default skin
[lhc/web/wiklou.git] / includes / templates / Userlogin.php
1 <?php
2
3 if( !defined( 'MEDIAWIKI' ) ) die();
4
5 require_once( 'includes/SkinTemplate.php' );
6
7 /**
8 * HTML template for Special:Userlogin form
9 * @package MediaWiki
10 * @subpackage Templates
11 */
12 class UserloginTemplate extends QuickTemplate {
13 function execute() {
14 if( $this->data['error'] ) {
15 ?>
16 <h2><?php $this->msg('loginerror') ?>:</h2>
17 <p class='error'><?php $this->html('error') ?></p>
18 <?php } else { ?>
19 <h2><?php $this->msg('login' ) ?>:</h2>
20 <p><?php $this->msg('loginprompt') ?></p>
21 <?php } ?>
22 <form name="userlogin" id="userlogin" method="post" action="<?php $this->text('action') ?>">
23 <table border='0'>
24 <tr>
25 <td align='right'><?php $this->msg('yourname') ?>:</td>
26 <td align='left'>
27 <input tabindex='1' type='text' name="wpName"
28 value="<?php $this->text('name') ?>" size='20' />
29 </td>
30 <td align='left'>
31 <input tabindex='3' type='submit' name="wpLoginattempt"
32 value="<?php $this->msg('login') ?>" />
33 </td>
34 </tr>
35 <tr>
36 <td align='right'><?php $this->msg('yourpassword') ?>:</td>
37 <td align='left'>
38 <input tabindex='2' type='password' name="wpPassword"
39 value="<?php $this->text('password') ?>" size='20' />
40 </td>
41 <td align='left'>
42 <input tabindex='4' type='checkbox' name="wpRemember"
43 value="1" id="wpRemember"
44 <?php if( $this->data['remember'] ) { ?>checked="checked"<?php } ?>
45 /><label for="wpRemember"><?php $this->msg('remembermypassword') ?></label>
46 </td>
47 </tr>
48 <?php if( $this->data['create'] ) { ?>
49 <tr>
50 <td colspan='3'>&nbsp;</td>
51 </tr>
52 <tr>
53 <td align='right'><?php $this->msg('yourpasswordagain') ?>:</td>
54 <td align='left'>
55 <input tabindex='5' type='password' name="wpRetype"
56 value="<?php $this->text('retype') ?>"
57 size='20' />
58 </td>
59 <td><?php $this->msg('newusersonly') ?></td>
60 </tr>
61 <tr>
62 <?php if( $this->data['useemail'] ) { ?>
63 <td align='right'><?php $this->msg('youremail') ?>:</td>
64 <td align='left'>
65 <input tabindex='7' type='text' name="wpEmail"
66 value="<?php $this->text('email') ?>" size='20' />
67 </td>
68 <?php } ?>
69 <?php if( $this->data['userealname'] ) { ?>
70 </tr>
71 <tr>
72 <td align='right'><?php $this->msg('yourrealname') ?>:</td>
73 <td align='left'>
74 <input tabindex='8' type='text' name="wpRealName"
75 value="<?php $this->text('realname') ?>" size='20' />
76 </td>
77 <?php } ?>
78 <td align='left'>
79 <input tabindex='9' type='submit' name="wpCreateaccount"
80 value="<?php $this->msg('createaccount') ?>" />
81 <?php if( $this->data['createemail'] ) { ?>
82 <input tabindex='6' type='submit' name="wpCreateaccountMail"
83 value="<?php $this->msg('createaccountmail') ?>" />
84 <?php } ?>
85 </td>
86 </tr>
87 <?php } ?>
88 <?php if( $this->data['useemail'] ) { ?>
89 <tr>
90 <td colspan='3'>&nbsp;</td>
91 </tr>
92 <tr>
93 <td colspan='3' align='left'>
94 <p>
95 <?php $this->msgHtml( 'emailforlost' ) ?><br />
96 <input tabindex='10' type='submit' name="wpMailmypassword"
97 value="<?php $this->msg('mailmypassword') ?>" />
98 </p>
99 </td>
100 </tr>
101 <?php } ?>
102 </table>
103 </form>
104 <?php
105 $this->msgHtml( 'loginend' );
106 }
107 }
108
109 ?>