chiark / gitweb /
playrtp: refuse to play RTP via RTP.
[disorder] / templates / login.tmpl
... / ...
CommitLineData
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2<!--
3This file is part of DisOrder.
4Copyright (C) 2007, 2008 Richard Kettlewell
5
6This program is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program. If not, see <http://www.gnu.org/licenses/>.
18-->
19<html>
20 <head>
21@stdhead{login}
22 </head>
23 <body>
24@stdmenu{login}
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
41 <h2>Existing users</h2>
42
43 <p>If you have a username, use this form to log in.</p>
44
45 <form class=login action="@url" method=POST
46 enctype="multipart/form-data" accept-charset=utf-8>
47 <table class=login>
48 <tr>
49 <td>@label{login.username}</td>
50 <td>
51 <input class=username name=username type=text size=32
52 value="@argq{username}">
53 </td>
54 </tr>
55 <tr>
56 <td>@label{login.password}</td>
57 <td>
58 <input class=password name=password type=password value=""
59 size=32>
60 </td>
61 </tr>
62 <tr>
63 <td colspan=2>
64 @submit{@label{login.login}}
65 </td>
66 </tr>
67 </table>
68 <input name=action type=hidden value=login>
69 <input name=back type=hidden value="@argq{back}">
70 </form>
71
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
77 <p>Logging in will set a cookie. This cookie is only used for
78 authentication purposes. Do not log in if you do not consent to this cookie
79 being set. The cookie should be deleted when you log out, and will
80 eventually expire in any case.</p>
81
82 <form class=reminder action="@url" method=POST
83 enctype="multipart/form-data" accept-charset=utf-8>
84 <table class=login>
85 <tr>
86 <td>@label{login.username}</td>
87 <td>
88 <input class=username name=username type=text size=32
89 value="@argq{username}">
90 </td>
91 </tr>
92 <tr>
93 <td colspan=2>
94 @submit{@label{login.reminder}}
95 </td>
96 </tr>
97 </table>
98 <input name=action type=hidden value=reminder>
99 </form>
100
101 @right{register}{
102 <h2>New Users</h2>
103
104 <p>If you do not have a login enter a username, a password and your
105 email address here. You will be sent an email containing a URL,
106 which you must visit to activate your login before you can use
107 it.<p>
108
109 <form class=register action="@url" method=POST
110 enctype="multipart/form-data" accept-charset=utf-8>
111 <table class=register>
112 <tr>
113 <td>@label{login.username}</td>
114 <td>
115 <input class=username name=username type=text size=32
116 value="">
117 </td>
118 <td class=extra>@label{login.registerusernameextra}</td>
119 </tr>
120 <tr>
121 <td>@label{login.email}</td>
122 <td>
123 <input class=email name=email type=text size=32
124 value="">
125 </td>
126 <td class=extra>@label{login.registeremailextra}</td>
127 </tr>
128 <tr>
129 <td>@label{login.password1}</td>
130 <td>
131 <input class=password name=password1 type=password size=32
132 value="">
133 </td>
134 <td class=extra>@label{login.registerpassword1extra}</td>
135 </tr>
136 <tr>
137 <td>@label{login.password2}</td>
138 <td>
139 <input class=password name=password2 type=password size=32
140 value="">
141 </td>
142 <td class=extra>@label{login.registerpassword2extra}</td>
143 </tr>
144 <tr>
145 <td colspan=3>
146 @submit{@label{login.register}}
147 </td>
148 </tr>
149 </table>
150 <input name=action type=hidden value=register>
151 </form>}
152 }{@# not the guest user, allow change of details and logout
153
154 <h2>Logged in as @user</h2>
155
156 <form class=logout action="@url" method=POST
157 enctype="multipart/form-data" accept-charset=utf-8>
158 <div class=logout>
159 @submit{@label{login.logout}}
160 </div>
161 <input name=action type=hidden value=logout>
162 </form>
163
164 <p>Use this form to change your email address and/or password.</p>
165
166 <form class=edituser action="@url" method=POST
167 enctype="multipart/form-data" accept-charset=utf-8>
168 <table class=edituser>
169 <tr>
170 <td>@label{login.email}</td>
171 <td>
172 <input class=email name=email type=text size=32
173 value="@userinfo{email}">
174 </td>
175 <td class=extra>@label{login.edituseremailextra}</td>
176 </tr>
177 <tr>
178 <td>@label{login.newpassword}</td>
179 <td>
180 <input class=password name=changepassword1 type=password size=32
181 value="">
182 </td>
183 <td class=extra>@label{login.edituserpassword1extra}</td>
184 </tr>
185 <tr>
186 <td>@label{login.newpassword}</td>
187 <td>
188 <input class=password name=changepassword2 type=password size=32
189 value="">
190 </td>
191 <td class=extra>@label{login.edituserpassword2extra}</td>
192 </tr>
193 <tr>
194 <td colspan=3>
195 @submit{@label{login.edituser}}
196 </td>
197 </tr>
198 </table>
199 <input name=action type=hidden value=edituser>
200 </form>
201
202 }
203
204@credits
205 </body>
206</html>
207@discard{
208Local variables:
209mode:sgml
210sgml-always-quote-attributes:nil
211sgml-indent-step:1
212sgml-indent-data:t
213indent-tabs-mode:nil
214fill-column:79
215End:
216}@#