source: tags/gsdl-2_30d-distribution/gsdl/macros/users.dm@ 2308

Last change on this file since 2308 was 1794, checked in by sjboddie, 23 years ago

Added ability to view gsdlsite.cfg and view/edit main.cfg configuration
files from within the status action.
Also added a "change password" link as it was previously impossible for
someone without administrator privileges to change their password.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 KB
Line 
1package userslistusers
2
3_header_ {
4<html>
5<head>
6<title>List of current users</title>
7</head>
8<body bgcolor="#ffffff" text="#000000" link="#006666"
9 alink="#cc9900" vlink="#666633">
10}
11
12_content_ {}
13
14_contentstart_ {
15<h2>List of current users</h2>
16
17
18<table border=0 cellspacing=1 cellpadding=3 width=100%>
19<tr>
20 <th bgcolor="\#d0d0d0">user</th>
21 <th bgcolor="\#d0d0d0">account status</th>
22 <th bgcolor="\#d0d0d0">groups</th>
23 <th bgcolor="\#d0d0d0">comment</th>
24 <th>&nbsp;</th>
25</tr>
26}
27
28_contentend_ {
29</table>
30}
31
32_textadduser_ {add a new user}
33_textedituser_ {edit}
34_textdeleteuser_ {delete}
35
36_footer_ {
37</body>
38</html>
39}
40
41
42
43package usersedituser
44
45_header_ {
46<html>
47<head>
48<title>_If_("_cgiarguma_" eq "edituser",Edit user information,Add a new user)</title>
49</head>
50<body bgcolor="#ffffff" text="#000000" link="#006666"
51 alink="#cc9900" vlink="#666633">
52}
53
54_content_ {
55<h2>_If_("_cgiarguma_" eq "edituser",Edit user information,Add a new user)</h2>
56
57
58_users:messagestatus_
59
60<form name="edituser" method="post" action="_gwcgi_">
61<input type=hidden name="e" value="_decodedcompressedoptions_">
62<input type=hidden name="a" value="um">
63<input type=hidden name="uma" value="_cgiarguma_">
64
65<table border=0>
66<tr><td>username</td><td><input type="text" name="umun" value="_users:usersargun_" size=15></td>
67<td><font color=gray>Usernames must be between
682 and 30 characters long. They can
69contain alphanumeric characters, '.', and '_'.
70</font></td>
71</tr>
72<tr><td>password</td><td><input type="text" name="umpw" value="_users:usersargpw_" size=9></td>
73<td><font color=gray>
74Passwords must be between 3 and 8 characters long. They can contain
75any normal printable ASCII characters.
76_If_("_cgiarguma_" eq "edituser",If this field is blank the old password will be kept.)
77</font></td></tr>
78<tr><td>account status</td><td>
79<select name="umus">
80<option value="enabled">enabled
81<option value="disabled"_If_("_users:usersargus_" ne "enabled", selected)>disabled
82</select>
83</td></tr>
84<tr><td>groups</td><td><input type="text" name="umug" value="_users:usersargug_" size=15></td>
85<td><font color=gray>
86Groups is a comma separated list, do not put spaces after the commas.
87</font></td></tr>
88<tr><td>comment</td><td colspan=2><input type="text" name="umc" value="_users:usersargc_" size=50></td></tr>
89<tr><td></td><td colspan=2><input type="submit" name=beu value="submit">
90<input type="submit" name=uma value="cancel"></td></tr>
91</table>
92</form>
93}
94
95_footer_ {
96</body>
97</html>
98}
99
100
101
102
103package usersdeleteuser
104
105_header_ {
106<html>
107<head>
108<title>Delete a user</title>
109</head>
110<body bgcolor="#ffffff" text="#000000" link="#006666"
111 alink="#cc9900" vlink="#666633">
112}
113
114_content_ {
115
116<p>
117<table border=0>
118<tr><td>
119<form name="deleteuser" method="post" action="_gwcgi_">
120<input type=hidden name="e" value="_decodedcompressedoptions_">
121<input type=hidden name="a" value="um">
122<input type=hidden name="uma" value="_cgiarguma_">
123<input type=hidden name="umun" value="_cgiargumun_">
124<font color=red>Do you really want to permanently remove user <b>_cgiargumun_</b>?</font>
125<input type="submit" name=cm value="no">
126<input type="submit" name=cm value="yes">
127</form>
128</td></tr>
129</table>
130}
131
132_footer_ {
133</body>
134</html>
135}
136
137
138
139package userschangepasswd
140
141_header_ {
142<html>
143<head>
144<title>Change password</title>
145</head>
146<body bgcolor="#ffffff" text="#000000" link="#006666"
147 alink="#cc9900" vlink="#666633">
148}
149
150_content_ {
151<h2>Change password</h2>
152<p><font color=gray>Passwords must be between 3 and 8 characters long.
153They can contain any normal printable ASCII characters.</font>
154
155<p>_users:messagestatus_
156
157<p>
158<form name="changepasswd" method="post" action="_gwcgi_">
159<input type=hidden name="e" value="_decodedcompressedoptions_">
160<input type=hidden name="a" value="um">
161<input type=hidden name="uma" value="_cgiarguma_">
162<table border=0>
163<tr><td align=right>old password</td><td><input type="text" name="umpw" size=9></td></tr>
164<tr><td align=right>new password</td><td><input type="password" name="umnpw1" size=9></td></tr>
165<tr><td align=right>retype new password</td><td><input type="password" name="umnpw2" size=9></td></tr>
166<tr><td></td><td><input type="submit" name=bcp value="submit"></td></tr>
167</table>
168</table>
169</form>
170
171}
172
173
174package userschangepasswdok
175
176_header_ {
177<html>
178<head>
179<title>Change password</title>
180</head>
181<body bgcolor="#ffffff" text="#000000" link="#006666"
182 alink="#cc9900" vlink="#666633">
183}
184
185_content_ {
186<h2>Change password</h2>
187
188<p>Your password was successfully changed.
189}
190
191
192
193package users
194
195_messageinvalidusername_ {<font color=red>The username is invalid.</font> }
196_messageinvalidpassword_ {<font color=red>The password is invalid.</font> }
197_messageemptypassword_ {<font color=red>Please enter an initial password for this user.</font> }
198_messageuserexists_ {<font color=red>This user already exists,
199please enter in another username.</font> }
200
201_messageusernameempty_ {<font color=red>Please enter your username.</font> }
202_messagepasswordempty_ {<font color=red>You must enter your old password.</font> }
203_messagenewpass1empty_ {<font color=red>Enter your new password and then retype it.</font> }
204_messagenewpass2empty_ {_messagenewpass1empty_}
205_messagenewpassmismatch_ {<font color=red>The two versions of your new password did not match.</font> }
206_messagenewinvalidpassword_ {<font color=red>You entered an invalid password.</font> }
207_messagefailed_ {<font color=red>Either your username or password was incorrect.</font> }
Note: See TracBrowser for help on using the repository browser.