Commit | Line | Data |
---|---|---|
fdf98378 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 | <!-- | |
3 | This file is part of DisOrder. | |
5aff007d | 4 | Copyright (C) 2007, 2008 Richard Kettlewell |
fdf98378 | 5 | |
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. | |
10 | ||
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. | |
15 | ||
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 | |
19 | USA | |
20 | --> | |
21 | <html> | |
22 | <head> | |
0d0253c9 | 23 | @stdhead{login} |
fdf98378 | 24 | </head> |
25 | <body> | |
0d0253c9 | 26 | @stdmenu{login} |
3225872d | 27 | <h1>@label:login.title@</h1> |
fdf98378 | 28 | |
29 | @if{@ne{@label:error@}{error}@}{ | |
30 | @#{error reporting from some earlier operation}@ | |
328248ba | 31 | <div class=error> |
32 | <p class=error>@label{error.@label:error@}@</p> | |
33 | </div> | |
fdf98378 | 34 | }@ |
35 | ||
ac152d06 | 36 | @if{@ne{@label:status@}{status}@}{ |
37 | @#{some action succeeded}@ | |
328248ba | 38 | <div class=loginstatus> |
3225872d | 39 | <p>@label{login.@label:status@}@</p> |
328248ba | 40 | </div> |
fdf98378 | 41 | }@ |
42 | ||
43 | @if{@eq{@user@}{guest}@}{ | |
44 | @#{guest user, allow login and registration}@ | |
45 | <h2>Existing users</h2> | |
46 | ||
47 | <p>If you have a username, use this form to log in.</p> | |
48 | ||
49 | <form class=login action="@url@" method=POST | |
50 | enctype="multipart/form-data" accept-charset=utf-8> | |
51 | <table class=login> | |
52 | <tr> | |
53 | <td>@label:login.username@</td> | |
54 | <td> | |
968f044a | 55 | <input class=username name=username type=text size=32 |
56 | value="@arg:username@"> | |
fdf98378 | 57 | </td> |
58 | </tr> | |
59 | <tr> | |
60 | <td>@label:login.password@</td> | |
968f044a | 61 | <td> |
62 | <input class=password name=password type=password value="" | |
63 | size=32> | |
64 | </td> | |
65 | </tr> | |
66 | <tr> | |
6207d2f3 | 67 | <td colspan=2> |
bf9df44a | 68 | <button class=login name=button type=submit> |
fdf98378 | 69 | @label:login.login@ |
70 | </button> | |
71 | </td> | |
72 | </tr> | |
73 | </table> | |
bf9df44a | 74 | <input name=action type=hidden value=login> |
fdf98378 | 75 | <input name=back type=hidden value="@arg:back@"> |
76 | </form> | |
77 | ||
6207d2f3 | 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> | |
82 | ||
83 | <form class=reminder action="@url@" method=POST | |
84 | enctype="multipart/form-data" accept-charset=utf-8> | |
85 | <table class=login> | |
86 | <tr> | |
87 | <td>@label:login.username@</td> | |
88 | <td> | |
89 | <input class=username name=username type=text size=32 | |
90 | value="@arg:username@"> | |
91 | </td> | |
92 | </tr> | |
93 | <tr> | |
94 | <td colspan=2> | |
95 | <button class=login name=button type=submit> | |
96 | @label:login.reminder@ | |
97 | </button> | |
98 | </td> | |
99 | </tr> | |
100 | </table> | |
101 | <input name=action type=hidden value=reminder> | |
6207d2f3 | 102 | </form> |
103 | ||
d2777468 | 104 | @right{register}{ |
fdf98378 | 105 | <h2>New Users</h2> |
106 | ||
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 | |
110 | it.<p> | |
111 | ||
112 | <form class=register action="@url@" method=POST | |
113 | enctype="multipart/form-data" accept-charset=utf-8> | |
114 | <table class=register> | |
115 | <tr> | |
116 | <td>@label:login.username@</td> | |
117 | <td> | |
968f044a | 118 | <input class=username name=username type=text size=32 |
119 | value=""> | |
fdf98378 | 120 | </td> |
968f044a | 121 | <td class=extra>@label:login.registerusernameextra@</td> |
fdf98378 | 122 | </tr> |
123 | <tr> | |
124 | <td>@label:login.email@</td> | |
125 | <td> | |
968f044a | 126 | <input class=email name=email type=text size=32 |
127 | value=""> | |
fdf98378 | 128 | </td> |
968f044a | 129 | <td class=extra>@label:login.registeremailextra@</td> |
130 | </tr> | |
131 | <tr> | |
132 | <td>@label:login.password1@</td> | |
133 | <td> | |
134 | <input class=password name=password1 type=password size=32 | |
135 | value=""> | |
136 | </td> | |
137 | <td class=extra>@label:login.registerpassword1extra@</td> | |
138 | </tr> | |
139 | <tr> | |
140 | <td>@label:login.password2@</td> | |
141 | <td> | |
142 | <input class=password name=password2 type=password size=32 | |
143 | value=""> | |
144 | </td> | |
145 | <td class=extra>@label:login.registerpassword2extra@</td> | |
fdf98378 | 146 | </tr> |
147 | <tr> | |
6207d2f3 | 148 | <td colspan=3> |
bf9df44a | 149 | <button class=register name=button> |
ac152d06 | 150 | @label:login.register@ |
fdf98378 | 151 | </button> |
152 | </td> | |
153 | </tr> | |
154 | </table> | |
bf9df44a | 155 | <input name=action type=hidden value=register> |
d2777468 | 156 | </form>}@ |
fdf98378 | 157 | }{ |
158 | @#{not the guest user, allow change of details and logout}@ | |
159 | ||
160 | <h2>Logged in as @user@</h2> | |
161 | ||
968f044a | 162 | <form class=logout action="@url@" method=POST |
163 | enctype="multipart/form-data" accept-charset=utf-8> | |
164 | <div class=logout> | |
bf9df44a | 165 | <button class=logout name=submit type=submit> |
968f044a | 166 | @label:login.logout@ |
167 | </button> | |
168 | </div> | |
bf9df44a | 169 | <input name=action type=hidden value=logout> |
968f044a | 170 | </form> |
fdf98378 | 171 | |
172 | <p>Use this form to change your email address and/or password.</p> | |
173 | ||
f230d1d6 | 174 | <form class=edituser action="@url@" method=POST |
fdf98378 | 175 | enctype="multipart/form-data" accept-charset=utf-8> |
176 | <table class=edituser> | |
177 | <tr> | |
178 | <td>@label:login.email@</td> | |
179 | <td> | |
968f044a | 180 | <input class=email name=email type=text size=32 |
181 | value="@userinfo:email@"> | |
fdf98378 | 182 | </td> |
968f044a | 183 | <td class=extra>@label:login.edituseremailextra@</td> |
184 | </tr> | |
185 | <tr> | |
186 | <td>@label:login.newpassword@</td> | |
187 | <td> | |
188 | <input class=password name=changepassword1 type=password size=32 | |
189 | value=""> | |
190 | </td> | |
191 | <td class=extra>@label:login.edituserpassword1extra@</td> | |
192 | </tr> | |
193 | <tr> | |
194 | <td>@label:login.newpassword@</td> | |
195 | <td> | |
196 | <input class=password name=changepassword2 type=password size=32 | |
197 | value=""> | |
198 | </td> | |
199 | <td class=extra>@label:login.edituserpassword2extra@</td> | |
fdf98378 | 200 | </tr> |
201 | <tr> | |
6207d2f3 | 202 | <td colspan=3> |
bf9df44a | 203 | <button class=edituser name=submit type=submit> |
fdf98378 | 204 | @label:login.edituser@ |
205 | </button> | |
206 | </td> | |
207 | </tr> | |
208 | </table> | |
bf9df44a | 209 | <input name=action type=hidden value=edituser> |
fdf98378 | 210 | </form> |
211 | ||
fdf98378 | 212 | }@ |
213 | ||
0d0253c9 | 214 | @credits |
fdf98378 | 215 | </body> |
216 | </html> | |
0d0253c9 | 217 | @discard{ |
fdf98378 | 218 | Local variables: |
219 | mode:sgml | |
220 | sgml-always-quote-attributes:nil | |
221 | sgml-indent-step:1 | |
222 | sgml-indent-data:t | |
0d0253c9 RK |
223 | indent-tabs-mode:nil |
224 | fill-column:79 | |
fdf98378 | 225 | End: |
0d0253c9 | 226 | }@# |