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>
30 {@# Error reporting from some earlier operation
32 <p class=error>@label{error.@error}</p>
36 {@# Some action succeeded
37 <div class=loginstatus>
38 <p>@label{login.@status}</p>
41 @if{@eq{@user}{guest}}
42 {@# Guest user, allow login and registration
43 <h2>Existing users</h2>
45 <p>If you have a username, use this form to log in.</p>
47 <form class=login action="@url" method=POST
48 enctype="multipart/form-data" accept-charset=utf-8>
51 <td>@label{login.username}</td>
53 <input class=username name=username type=text size=32
54 value="@argq{username}">
58 <td>@label{login.password}</td>
60 <input class=password name=password type=password value=""
66 @submit{@label{login.login}}
70 <input name=action type=hidden value=login>
71 <input name=back type=hidden value="@argq{back}">
74 <p>If you've forgotten your password, use this form to request an
75 email reminder. A reminder can only be sent if you registered with
76 your email address, and if a reminder has been sent too recently
77 then it won't be possible to send one.</p>
79 <form class=reminder action="@url" method=POST
80 enctype="multipart/form-data" accept-charset=utf-8>
83 <td>@label{login.username}</td>
85 <input class=username name=username type=text size=32
86 value="@argq{username}">
91 @submit{@label{login.reminder}}
95 <input name=action type=hidden value=reminder>
101 <p>If you do not have a login enter a username, a password and your
102 email address here. You will be sent an email containing a URL,
103 which you must visit to activate your login before you can use
106 <form class=register action="@url" method=POST
107 enctype="multipart/form-data" accept-charset=utf-8>
108 <table class=register>
110 <td>@label{login.username}</td>
112 <input class=username name=username type=text size=32
115 <td class=extra>@label{login.registerusernameextra}</td>
118 <td>@label{login.email}</td>
120 <input class=email name=email type=text size=32
123 <td class=extra>@label{login.registeremailextra}</td>
126 <td>@label{login.password1}</td>
128 <input class=password name=password1 type=password size=32
131 <td class=extra>@label{login.registerpassword1extra}</td>
134 <td>@label{login.password2}</td>
136 <input class=password name=password2 type=password size=32
139 <td class=extra>@label{login.registerpassword2extra}</td>
143 @submit{@label{login.register}}
147 <input name=action type=hidden value=register>
149 }{@# not the guest user, allow change of details and logout
151 <h2>Logged in as @user</h2>
153 <form class=logout action="@url" method=POST
154 enctype="multipart/form-data" accept-charset=utf-8>
156 @submit{@label{login.logout}}
158 <input name=action type=hidden value=logout>
161 <p>Use this form to change your email address and/or password.</p>
163 <form class=edituser action="@url" method=POST
164 enctype="multipart/form-data" accept-charset=utf-8>
165 <table class=edituser>
167 <td>@label{login.email}</td>
169 <input class=email name=email type=text size=32
170 value="@userinfo{email}">
172 <td class=extra>@label{login.edituseremailextra}</td>
175 <td>@label{login.newpassword}</td>
177 <input class=password name=changepassword1 type=password size=32
180 <td class=extra>@label{login.edituserpassword1extra}</td>
183 <td>@label{login.newpassword}</td>
185 <input class=password name=changepassword2 type=password size=32
188 <td class=extra>@label{login.edituserpassword2extra}</td>
192 @submit{@label{login.edituser}}
196 <input name=action type=hidden value=edituser>
207 sgml-always-quote-attributes:nil