1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
3 This file is part of DisOrder.
4 Copyright (C) 2007, 2008 Richard Kettlewell
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 <title>@label:login.title@</title>
28 <h1>@label:login.title@</h1>
30 @if{@ne{@label:error@}{error}@}{
31 @#{error reporting from some earlier operation}@
33 <p class=error>@label{error.@label:error@}@</p>
37 @if{@ne{@label:status@}{status}@}{
38 @#{some action succeeded}@
39 <div class=loginstatus>
40 <p>@label{login.@label:status@}@</p>
44 @if{@eq{@user@}{guest}@}{
45 @#{guest user, allow login and registration}@
46 <h2>Existing users</h2>
48 <p>If you have a username, use this form to log in.</p>
50 <form class=login action="@url@" method=POST
51 enctype="multipart/form-data" accept-charset=utf-8>
54 <td>@label:login.username@</td>
56 <input class=username name=username type=text size=32
57 value="@arg:username@">
61 <td>@label:login.password@</td>
63 <input class=password name=password type=password value=""
69 <button class=login name=button type=submit>
75 <input name=action type=hidden value=login>
76 <input name=back type=hidden value="@arg:back@">
79 <p>If you've forgotten your password, use this form to request an
80 email reminder. A reminder can only be sent if you registered with
81 your email address, and if a reminder has been sent too recently
82 then it won't be possible to send one.</p>
84 <form class=reminder action="@url@" method=POST
85 enctype="multipart/form-data" accept-charset=utf-8>
88 <td>@label:login.username@</td>
90 <input class=username name=username type=text size=32
91 value="@arg:username@">
96 <button class=login name=button type=submit>
97 @label:login.reminder@
102 <input name=action type=hidden value=reminder>
108 <p>If you do not have a login enter a username, a password and your
109 email address here. You will be sent an email containing a URL,
110 which you must visit to activate your login before you can use
113 <form class=register action="@url@" method=POST
114 enctype="multipart/form-data" accept-charset=utf-8>
115 <table class=register>
117 <td>@label:login.username@</td>
119 <input class=username name=username type=text size=32
122 <td class=extra>@label:login.registerusernameextra@</td>
125 <td>@label:login.email@</td>
127 <input class=email name=email type=text size=32
130 <td class=extra>@label:login.registeremailextra@</td>
133 <td>@label:login.password1@</td>
135 <input class=password name=password1 type=password size=32
138 <td class=extra>@label:login.registerpassword1extra@</td>
141 <td>@label:login.password2@</td>
143 <input class=password name=password2 type=password size=32
146 <td class=extra>@label:login.registerpassword2extra@</td>
150 <button class=register name=button>
151 @label:login.register@
156 <input name=action type=hidden value=register>
159 @#{not the guest user, allow change of details and logout}@
161 <h2>Logged in as @user@</h2>
163 <form class=logout action="@url@" method=POST
164 enctype="multipart/form-data" accept-charset=utf-8>
166 <button class=logout name=submit type=submit>
170 <input name=action type=hidden value=logout>
173 <p>Use this form to change your email address and/or password.</p>
175 <form class=edituser action="@url@" method=POST
176 enctype="multipart/form-data" accept-charset=utf-8>
177 <table class=edituser>
179 <td>@label:login.email@</td>
181 <input class=email name=email type=text size=32
182 value="@userinfo:email@">
184 <td class=extra>@label:login.edituseremailextra@</td>
187 <td>@label:login.newpassword@</td>
189 <input class=password name=changepassword1 type=password size=32
192 <td class=extra>@label:login.edituserpassword1extra@</td>
195 <td>@label:login.newpassword@</td>
197 <input class=password name=changepassword2 type=password size=32
200 <td class=extra>@label:login.edituserpassword2extra@</td>
204 <button class=edituser name=submit type=submit>
205 @label:login.edituser@
210 <input name=action type=hidden value=edituser>
222 sgml-always-quote-attributes:nil