2 <!-- $Id: login.tmpl,v 1.4 2002-01-23 05:10:22 dairiki Exp $ -->
3 <!-- The login form -->
5 <?php if ($FAILURE_MESSAGE) { ?>
6 <h2><?=_("Signin Failed")?></h2>
7 <p><?=$FAILURE_MESSAGE?></p>
8 <hr noshade="noshade" />
11 <?php if (ALLOW_BOGO_LOGIN && $require_level <= WIKIAUTH_BOGO) { ?>
12 <p>You may sign in using any WikiWord as a user id. You do not need to enter a password. Yadda, yadda. (FIXME:)</p>
15 <form method="post" action="<?=BASE_URL?>" accept-charset="<?=CHARSET?>" name="login">
17 <table cellspacing="4">
19 <td align="right">UserId:</td>
20 <td><input type="text" name="auth[userid]" size="12" value="<?=$userid?>" /></td>
23 <td align="right">Password:</td>
24 <td><input type="password" name="auth[password]" size="12" /></td>
26 <tr><td align="center" colspan="2">
27 <?=$Theme->makeButton(_("Sign In"), "submit:", "wikiaction")?>
28 <?php if (!$require_level) { ?>
29 <?=$Theme->makeButton(_("Cancel"), "submit:auth[cancel]", "wikiaction")?>
34 <input type="hidden" name="auth[require_level]" value="<?=$require_level?>" />
35 <input type="hidden" name="auth[login]" value="1" />
36 <?php foreach ($query_args as $key => $val) { ?>
37 <input type="hidden" name="<?=$key?>" value="<?=$val?>" />
41 <script language="JavaScript" type="text/javascript">
42 <!-- // Really there's got to be a simpler way to do this....
43 function select_input (type) {
44 var elements = document.forms['login'].elements;
45 for (var i = 0; i < elements.length; i++) {
46 if (elements[i].type == type) {
52 select_input('<?= $userid ? "password" : "text" ?>');