2 <!-- $Id: login.tmpl,v 1.15 2002-08-22 23:28:32 rurban Exp $ -->
3 <!-- The login form -->
5 <?php if ($fail_message) { ?>
6 <p><strong><?=$fail_message?></strong></p>
7 <hr noshade="noshade" />
10 <?php if (ALLOW_BOGO_LOGIN && $require_level <= WIKIAUTH_BOGO) { ?>
11 <p><?= _("You may sign in using any WikiWord as a UserId. (ÀÖØöøÿßö etc. may be used too). The UserId will be used as a link in RecentChanges to your UserId page, your HomePage.") ?>
12 <?php if (! $pass_required) ?>
13 <?= _('You do not need to enter a password.') ?>
17 <form method="POST" action="<?= $request->getURLtoSelf() ?>" accept-charset="<?=CHARSET?>" name="login">
19 <table cellspacing="4">
21 <td align="right"><?= _("UserId") ?>:</td>
22 <td><input type="text" name="auth[userid]" size="12" maxlength="256" value="<?=$userid?>" /></td>
25 <td align="right"><?= _("Password") ?>:</td>
26 <td><input type="password" name="auth[passwd]" size="12" maxlength="256" /></td>
28 <?php $dbi = $request->getDbh();
29 if (!(!empty($userid) and $dbi->isWikiPage($userid))) { ?>
31 <td align="right"><?= _("Create Homepage") ?>:</td>
32 <td><input type="checkbox" name="auth[homepage]" checked="checked" /></td>
35 <tr><td align="center" colspan="2">
36 <?=Button("submit:", _("Sign In"), 'wikiaction')?>
37 <?php if (!$require_level) { ?>
38 <?=Button("submit:auth[cancel]", _("Cancel"), 'button')?>
43 <input type="hidden" name="auth[require_level]" value="<?=$require_level?>" />
44 <input type="hidden" name="auth[login]" value="1" />
45 <?= HiddenGets(array('auth')) ?>
48 <script language="JavaScript" type="text/javascript">
49 <!-- // Really there's got to be a simpler way to do this....
50 function select_input (type) {
51 var elements = document.forms['login'].elements;
52 for (var i = 0; i < elements.length; i++) {
53 if (elements[i].type == type) {
59 select_input('<?= $userid ? "password" : "text" ?>');