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
27 <h1>@label:login.title@</h1>
29 @if{@ne{@label:error@}{error}@}{
30 @#{error reporting from some earlier operation}@
32 <p class=error>@label{error.@label:error@}@</p>
36 @if{@ne{@label:status@}{status}@}{
37 @#{some action succeeded}@
38 <div class=loginstatus>
39 <p>@label{login.@label:status@}@</p>
43 @if{@eq{@user@}{guest}@}{
44 @#{guest user, allow login and registration}@
45 <h2>Existing users</h2>
47 <p>If you have a username, use this form to log in.</p>
49 <form class=login action="@url@" method=POST
50 enctype="multipart/form-data" accept-charset=utf-8>
53 <td>@label:login.username@</td>
55 <input class=username name=username type=text size=32
56 value="@arg:username@">
60 <td>@label:login.password@</td>
62 <input class=password name=password type=password value=""
68 <button class=login name=button type=submit>
74 <input name=action type=hidden value=login>
75 <input name=back type=hidden value="@arg:back@">
78 <p>If you've forgotten your password, use this form to request an
79 email reminder. A reminder can only be sent if you registered with
80 your email address, and if a reminder has been sent too recently
81 then it won't be possible to send one.</p>
83 <form class=reminder action="@url@" method=POST
84 enctype="multipart/form-data" accept-charset=utf-8>
87 <td>@label:login.username@</td>
89 <input class=username name=username type=text size=32
90 value="@arg:username@">
95 <button class=login name=button type=submit>
96 @label:login.reminder@
101 <input name=action type=hidden value=reminder>
107 <p>If you do not have a login enter a username, a password and your
108 email address here. You will be sent an email containing a URL,
109 which you must visit to activate your login before you can use
112 <form class=register action="@url@" method=POST
113 enctype="multipart/form-data" accept-charset=utf-8>
114 <table class=register>
116 <td>@label:login.username@</td>
118 <input class=username name=username type=text size=32
121 <td class=extra>@label:login.registerusernameextra@</td>
124 <td>@label:login.email@</td>
126 <input class=email name=email type=text size=32
129 <td class=extra>@label:login.registeremailextra@</td>
132 <td>@label:login.password1@</td>
134 <input class=password name=password1 type=password size=32
137 <td class=extra>@label:login.registerpassword1extra@</td>
140 <td>@label:login.password2@</td>
142 <input class=password name=password2 type=password size=32
145 <td class=extra>@label:login.registerpassword2extra@</td>
149 <button class=register name=button>
150 @label:login.register@
155 <input name=action type=hidden value=register>
158 @#{not the guest user, allow change of details and logout}@
160 <h2>Logged in as @user@</h2>
162 <form class=logout action="@url@" method=POST
163 enctype="multipart/form-data" accept-charset=utf-8>
165 <button class=logout name=submit type=submit>
169 <input name=action type=hidden value=logout>
172 <p>Use this form to change your email address and/or password.</p>
174 <form class=edituser action="@url@" method=POST
175 enctype="multipart/form-data" accept-charset=utf-8>
176 <table class=edituser>
178 <td>@label:login.email@</td>
180 <input class=email name=email type=text size=32
181 value="@userinfo:email@">
183 <td class=extra>@label:login.edituseremailextra@</td>
186 <td>@label:login.newpassword@</td>
188 <input class=password name=changepassword1 type=password size=32
191 <td class=extra>@label:login.edituserpassword1extra@</td>
194 <td>@label:login.newpassword@</td>
196 <input class=password name=changepassword2 type=password size=32
199 <td class=extra>@label:login.edituserpassword2extra@</td>
203 <button class=edituser name=submit type=submit>
204 @label:login.edituser@
209 <input name=action type=hidden value=edituser>
220 sgml-always-quote-attributes:nil