2 <!-- $Id: login.tmpl,v 1.23 2003-11-17 16:00:08 carstenklapp 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 // This iso-8859-1 sample covers French, Spanish, Italian, German, and probably others
12 $examplechars = htmlentities("ÀñíçéàÖãæôßøü", ENT_QUOTES, 'iso-8859-1');
13 // Japanese login requires utf-8 and ALLOW_NONWIKIWORD_LOGINS
14 /*if ((CHARSET == 'utf-8') && defined('ALLOW_NONWIKIWORD_LOGINS') && ALLOW_NONWIKIWORD_LOGINS) {
15 //sample Japanese login name in unicode
16 $examplechars = $examplechars . "天道あかね";
18 <p><?= printf(_("You may sign in using any WikiWord as a UserId. (%s etc. may be used too). The UserId will be used as a link in RecentChanges to your UserId page, your HomePage."), $examplechars) ?>
19 <?php if (empty($pass_required)) ?>
20 <?= _("New users may use an empty password.") ?>
24 <form method="post" action="<?= $request->getPostURL() ?>" accept-charset="<?=CHARSET?>" name="login">
26 <table cellspacing="4">
28 <td align="right"><?= _("UserId:") ?></td>
29 <td><input type="text" name="auth[userid]" size="12" maxlength="256" value="<?=$userid?>" /></td>
32 <td align="right"><?= _("Password:") ?></td>
33 <td><input type="password" name="auth[passwd]" size="12" maxlength="256" /></td>
36 /* Related code for this doesn't seem to function yet.
37 Commented out for now until it is fixed or removed.
38 (I personally don't see the need for this feature. --CarstenKlapp)
39 $dbi = $request->getDbh();
40 $checked = (!empty($userid) and $dbi->isWikiPage($userid)) ? '' : 'checked="checked"';
42 <td align="right"><?= _("Create Homepage:") ?></td>
43 <td><input type="checkbox" name="auth[homepage]"<?php if ($checked) {
44 ?> checked="checked"<?php }?> /></td>
48 <tr><td align="center" colspan="2">
49 <?=Button("submit:", _("Sign In"), 'wikiaction')?>
50 <?php if (!$require_level) { ?>
51 <?=Button("submit:auth[cancel]", _("Cancel"), 'button')?>
56 <input type="hidden" name="auth[require_level]" value="<?=$require_level?>" />
57 <input type="hidden" name="auth[login]" value="1" />
58 <?= HiddenInputs($request->getArgs(), false, array('auth')) ?>
61 <script language="JavaScript" type="text/javascript">
62 <!-- // Really there's got to be a simpler way to do this....
63 function select_input (type) {
64 var elements = document.forms['login'].elements;
65 for (var i = 0; i < elements.length; i++) {
66 if (elements[i].type == type) {
72 select_input('<?= $userid ? "password" : "text" ?>');