1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
3 This file is part of DisOrder.
4 Copyright (C)
2007 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 class=title
>@label:login.title@
</h1>
30 @if{@ne{@label:error@}{error}@}{
31 @#{error reporting from some earlier operation}@
32 <p class=error
>@label{error.@label:error@}@
</p>
35 @if{@ne{@label:status@}{status}@}{
36 @#{some action succeeded}@
37 <p class=loginstatus
>@label{login.@label:status@}@
</p>
40 @if{@eq{@user@}{guest}@}{
41 @#{guest user, allow login and registration}@
42 <h2>Existing users
</h2>
44 <p>If you have a username, use this form to log in.
</p>
46 <form class=login
action=
"@url@" method=POST
47 enctype=
"multipart/form-data" accept-charset=utf-
8>
50 <td>@label:login.username@
</td>
52 <input class=username name=username type=text size=
32
53 value=
"@arg:username@">
57 <td>@label:login.password@
</td>
59 <input class=password name=password type=password
value=
""
65 <button class=login name=action type=submit value=login
>
71 <input name=nonce type=hidden
value=
"@nonce@">
72 <input name=back type=hidden
value=
"@arg:back@">
78 <p>If you do not have a login enter a username, a password and your
79 email address here. You will be sent an email containing a URL,
80 which you must visit to activate your login before you can use
83 <form class=register
action=
"@url@" method=POST
84 enctype=
"multipart/form-data" accept-charset=utf-
8>
85 <table class=register
>
87 <td>@label:login.username@
</td>
89 <input class=username name=username type=text size=
32
92 <td class=extra
>@label:login.registerusernameextra@
</td>
95 <td>@label:login.email@
</td>
97 <input class=email name=email type=text size=
32
100 <td class=extra
>@label:login.registeremailextra@
</td>
103 <td>@label:login.password1@
</td>
105 <input class=password name=password1 type=password size=
32
108 <td class=extra
>@label:login.registerpassword1extra@
</td>
111 <td>@label:login.password2@
</td>
113 <input class=password name=password2 type=password size=
32
116 <td class=extra
>@label:login.registerpassword2extra@
</td>
120 <button class=register name=action type=submit value=register
>
121 @label:login.register@
126 <input name=nonce type=hidden
value=
"@nonce@">
129 @#{not the guest user, allow change of details and logout}@
131 <h2>Logged in as @user@
</h2>
133 <form class=logout
action=
"@url@" method=POST
134 enctype=
"multipart/form-data" accept-charset=utf-
8>
136 <button class=logout name=action type=submit value=logout
>
140 <input name=nonce type=hidden
value=
"@nonce@">
143 <p>Use this form to change your email address and/or password.
</p>
145 <form class=edituser
action=
"@url@" method=POST
146 enctype=
"multipart/form-data" accept-charset=utf-
8>
147 <table class=edituser
>
149 <td>@label:login.email@
</td>
151 <input class=email name=email type=text size=
32
152 value=
"@userinfo:email@">
154 <td class=extra
>@label:login.edituseremailextra@
</td>
157 <td>@label:login.newpassword@
</td>
159 <input class=password name=changepassword1 type=password size=
32
162 <td class=extra
>@label:login.edituserpassword1extra@
</td>
165 <td>@label:login.newpassword@
</td>
167 <input class=password name=changepassword2 type=password size=
32
170 <td class=extra
>@label:login.edituserpassword2extra@
</td>
174 <button class=edituser name=action type=submit value=edituser
>
175 @label:login.edituser@
180 <input name=nonce type=hidden
value=
"@nonce@">
192 sgml-always-quote-attributes:nil