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 | |
e7eb3a27 | 6 | This program is free software: you can redistribute it and/or modify |
fdf98378 | 7 | it under the terms of the GNU General Public License as published by |
e7eb3a27 | 8 | the Free Software Foundation, either version 3 of the License, or |
fdf98378 | 9 | (at your option) any later version. |
10 | ||
e7eb3a27 RK |
11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
fdf98378 | 15 | |
16 | You should have received a copy of the GNU General Public License | |
e7eb3a27 | 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
fdf98378 | 18 | --> |
19 | <html> | |
20 | <head> | |
0d0253c9 | 21 | @stdhead{login} |
fdf98378 | 22 | </head> |
23 | <body> | |
0d0253c9 | 24 | @stdmenu{login} |
343d9c2b RK |
25 | <h1>@label{login.title}</h1> |
26 | ||
27 | @if{@ne{@error}{}} | |
28 | {@# Error reporting from some earlier operation | |
29 | <div class=error> | |
30 | <p class=error>@label{error.@error}</p> | |
31 | </div>} | |
32 | ||
33 | @if{@ne{@status}{}} | |
34 | {@# Some action succeeded | |
35 | <div class=loginstatus> | |
36 | <p>@label{login.@status}</p> | |
37 | </div>} | |
38 | ||
39 | @if{@eq{@user}{guest}} | |
40 | {@# Guest user, allow login and registration | |
fdf98378 | 41 | <h2>Existing users</h2> |
42 | ||
43 | <p>If you have a username, use this form to log in.</p> | |
44 | ||
343d9c2b | 45 | <form class=login action="@url" method=POST |
fdf98378 | 46 | enctype="multipart/form-data" accept-charset=utf-8> |
47 | <table class=login> | |
48 | <tr> | |
343d9c2b | 49 | <td>@label{login.username}</td> |
fdf98378 | 50 | <td> |
968f044a | 51 | <input class=username name=username type=text size=32 |
343d9c2b | 52 | value="@argq{username}"> |
fdf98378 | 53 | </td> |
54 | </tr> | |
55 | <tr> | |
343d9c2b | 56 | <td>@label{login.password}</td> |
968f044a | 57 | <td> |
58 | <input class=password name=password type=password value="" | |
59 | size=32> | |
60 | </td> | |
61 | </tr> | |
62 | <tr> | |
6207d2f3 | 63 | <td colspan=2> |
8b15f02d | 64 | @submit{@label{login.login}} |
fdf98378 | 65 | </td> |
66 | </tr> | |
67 | </table> | |
bf9df44a | 68 | <input name=action type=hidden value=login> |
343d9c2b | 69 | <input name=back type=hidden value="@argq{back}"> |
fdf98378 | 70 | </form> |
71 | ||
6207d2f3 | 72 | <p>If you've forgotten your password, use this form to request an |
73 | email reminder. A reminder can only be sent if you registered with | |
74 | your email address, and if a reminder has been sent too recently | |
75 | then it won't be possible to send one.</p> | |
76 | ||
343d9c2b | 77 | <form class=reminder action="@url" method=POST |
6207d2f3 | 78 | enctype="multipart/form-data" accept-charset=utf-8> |
79 | <table class=login> | |
80 | <tr> | |
343d9c2b | 81 | <td>@label{login.username}</td> |
6207d2f3 | 82 | <td> |
83 | <input class=username name=username type=text size=32 | |
343d9c2b | 84 | value="@argq{username}"> |
6207d2f3 | 85 | </td> |
86 | </tr> | |
87 | <tr> | |
88 | <td colspan=2> | |
8b15f02d | 89 | @submit{@label{login.reminder}} |
6207d2f3 | 90 | </td> |
91 | </tr> | |
92 | </table> | |
93 | <input name=action type=hidden value=reminder> | |
6207d2f3 | 94 | </form> |
95 | ||
d2777468 | 96 | @right{register}{ |
fdf98378 | 97 | <h2>New Users</h2> |
98 | ||
99 | <p>If you do not have a login enter a username, a password and your | |
100 | email address here. You will be sent an email containing a URL, | |
101 | which you must visit to activate your login before you can use | |
102 | it.<p> | |
103 | ||
343d9c2b | 104 | <form class=register action="@url" method=POST |
fdf98378 | 105 | enctype="multipart/form-data" accept-charset=utf-8> |
106 | <table class=register> | |
107 | <tr> | |
343d9c2b | 108 | <td>@label{login.username}</td> |
fdf98378 | 109 | <td> |
968f044a | 110 | <input class=username name=username type=text size=32 |
111 | value=""> | |
fdf98378 | 112 | </td> |
343d9c2b | 113 | <td class=extra>@label{login.registerusernameextra}</td> |
fdf98378 | 114 | </tr> |
115 | <tr> | |
343d9c2b | 116 | <td>@label{login.email}</td> |
fdf98378 | 117 | <td> |
968f044a | 118 | <input class=email name=email type=text size=32 |
119 | value=""> | |
fdf98378 | 120 | </td> |
343d9c2b | 121 | <td class=extra>@label{login.registeremailextra}</td> |
968f044a | 122 | </tr> |
123 | <tr> | |
343d9c2b | 124 | <td>@label{login.password1}</td> |
968f044a | 125 | <td> |
126 | <input class=password name=password1 type=password size=32 | |
127 | value=""> | |
128 | </td> | |
343d9c2b | 129 | <td class=extra>@label{login.registerpassword1extra}</td> |
968f044a | 130 | </tr> |
131 | <tr> | |
343d9c2b | 132 | <td>@label{login.password2}</td> |
968f044a | 133 | <td> |
134 | <input class=password name=password2 type=password size=32 | |
135 | value=""> | |
136 | </td> | |
343d9c2b | 137 | <td class=extra>@label{login.registerpassword2extra}</td> |
fdf98378 | 138 | </tr> |
139 | <tr> | |
6207d2f3 | 140 | <td colspan=3> |
8b15f02d | 141 | @submit{@label{login.register}} |
fdf98378 | 142 | </td> |
143 | </tr> | |
144 | </table> | |
bf9df44a | 145 | <input name=action type=hidden value=register> |
343d9c2b RK |
146 | </form>} |
147 | }{@# not the guest user, allow change of details and logout | |
fdf98378 | 148 | |
343d9c2b | 149 | <h2>Logged in as @user</h2> |
fdf98378 | 150 | |
343d9c2b | 151 | <form class=logout action="@url" method=POST |
968f044a | 152 | enctype="multipart/form-data" accept-charset=utf-8> |
153 | <div class=logout> | |
8b15f02d | 154 | @submit{@label{login.logout}} |
968f044a | 155 | </div> |
bf9df44a | 156 | <input name=action type=hidden value=logout> |
968f044a | 157 | </form> |
fdf98378 | 158 | |
159 | <p>Use this form to change your email address and/or password.</p> | |
160 | ||
343d9c2b | 161 | <form class=edituser action="@url" method=POST |
fdf98378 | 162 | enctype="multipart/form-data" accept-charset=utf-8> |
163 | <table class=edituser> | |
164 | <tr> | |
343d9c2b | 165 | <td>@label{login.email}</td> |
fdf98378 | 166 | <td> |
968f044a | 167 | <input class=email name=email type=text size=32 |
343d9c2b | 168 | value="@userinfo{email}"> |
fdf98378 | 169 | </td> |
343d9c2b | 170 | <td class=extra>@label{login.edituseremailextra}</td> |
968f044a | 171 | </tr> |
172 | <tr> | |
343d9c2b | 173 | <td>@label{login.newpassword}</td> |
968f044a | 174 | <td> |
175 | <input class=password name=changepassword1 type=password size=32 | |
176 | value=""> | |
177 | </td> | |
343d9c2b | 178 | <td class=extra>@label{login.edituserpassword1extra}</td> |
968f044a | 179 | </tr> |
180 | <tr> | |
343d9c2b | 181 | <td>@label{login.newpassword}</td> |
968f044a | 182 | <td> |
183 | <input class=password name=changepassword2 type=password size=32 | |
184 | value=""> | |
185 | </td> | |
343d9c2b | 186 | <td class=extra>@label{login.edituserpassword2extra}</td> |
fdf98378 | 187 | </tr> |
188 | <tr> | |
6207d2f3 | 189 | <td colspan=3> |
8b15f02d | 190 | @submit{@label{login.edituser}} |
fdf98378 | 191 | </td> |
192 | </tr> | |
193 | </table> | |
bf9df44a | 194 | <input name=action type=hidden value=edituser> |
fdf98378 | 195 | </form> |
196 | ||
343d9c2b | 197 | } |
fdf98378 | 198 | |
0d0253c9 | 199 | @credits |
fdf98378 | 200 | </body> |
201 | </html> | |
0d0253c9 | 202 | @discard{ |
fdf98378 | 203 | Local variables: |
204 | mode:sgml | |
205 | sgml-always-quote-attributes:nil | |
206 | sgml-indent-step:1 | |
207 | sgml-indent-data:t | |
0d0253c9 RK |
208 | indent-tabs-mode:nil |
209 | fill-column:79 | |
fdf98378 | 210 | End: |
0d0253c9 | 211 | }@# |