You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
4.5 KiB
103 lines
4.5 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>YaCy '#[clientname]#': User Administration</title>
|
|
#%env/templates/metas.template%#
|
|
</head>
|
|
<body>
|
|
#%env/templates/header.template%#
|
|
<br />
|
|
<br />
|
|
<h2>User Administration</h2>
|
|
#(page)#
|
|
<table>
|
|
<tr>
|
|
<td valign="top">
|
|
<form action="User_p.html">
|
|
<select name="user">
|
|
<option value="newuser">new User</option>#{users}#
|
|
<option>#[user]#</option>#{/users}#
|
|
</select><br />
|
|
<input type="submit" name="change_user" value="Edit User" />
|
|
<input type="submit" name="delete_user" value="Delete User" />
|
|
</form>
|
|
</td>
|
|
<td width="100%">
|
|
<form action="User_p.html" method="POST">
|
|
<!-- Hidden(text for debugging): <input type="text" name="current_user" value="#[current_user]#" readonly> -->
|
|
<input type="hidden" name="current_user" value="#[current_user]#" />
|
|
Current User: #[username]#
|
|
<table border="1">
|
|
<tr>
|
|
<td>Username: </td>
|
|
<td><input type="text" name="username" value="#[username]#"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Password: </td>
|
|
<td><input type="password" name="password"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Password(repeat): </td>
|
|
<td><input type="password" name="password2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>First Name: </td>
|
|
<td><input type="text" name="firstname" value="#[firstname]#"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Last Name: </td>
|
|
<td><input type="text" name="lastname" value="#[lastname]#"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Address: </td>
|
|
<td><input type="text" name="address" value="#[address]#"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Rights</td>
|
|
<td>
|
|
<input type="checkbox" id="proxy" name="proxyRight"#(proxyRight)#:: checked="checked"#(/proxyRight)# /><label for="proxy">Proxy</label><br />
|
|
<input type="checkbox" id="admin" name="adminRight"#(adminRight)#:: checked="checked"#(/adminRight)# /><label for="admin">Admin</label><br />
|
|
<input type="checkbox" id="share" name="uploadRight"#(uploadRight)#:: checked="checked"#(/uploadRight)# /><label for="share">Fileshare-Upload</label><br />
|
|
<input type="checkbox" id="dwnld" name="downloadRight"#(downloadRight)#:: checked="checked"#(/downloadRight)# /><label for="dwnld">Fileshare-Download</label><br />
|
|
<input type="checkbox" id="blog" name="blogRight"#(blogRight)#:: checked="checked"#(/blogRight)# /><label for="blog">Blog</label><br />
|
|
<input type="checkbox" id="wiki" name="wikiAdminRight"#(wikiAdminRight)#:: checked="checked"#(/wikiAdminRight)# /><label for="wiki">Wiki Admin</label>
|
|
<input type="checkbox" id="wiki" name="bookmarkRight"#(bookmarkRight)#:: checked="checked"#(/bookmarkRight)# /><label for="wiki">Bookmarks</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="tlimit">Timelimit</label>:</td>
|
|
<td><input type="text" id="tlimit" name="timelimit" value="#[timelimit]#" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="tused">Time used</label>:</td>
|
|
<td><input type="text" id="tused" name="timeused" value="#[timeused]#" /></td>
|
|
</tr>
|
|
</table>
|
|
<input type="submit" name="change" value="Save User" />
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
::
|
|
<!-- Page 1: Results -->
|
|
#(text)#
|
|
::
|
|
<p>User created: #[username]#</p>
|
|
::
|
|
<p>User changed: #[username]#</p>
|
|
#(/text)#
|
|
#(error)#
|
|
::
|
|
<p>Generic error.</p>
|
|
::
|
|
<p>Passwords do not match.</p>
|
|
::
|
|
<p>Username too short. Username must be >= 4 Characters.</p>
|
|
#(/error)#
|
|
<p>If you want to manage more Users, return to the <a href="User_p.html?change_user=true&user=#[username]#">user</a> page.</p>
|
|
#(/page)#
|
|
|
|
#%env/templates/footer.template%#
|
|
</body>
|
|
</html>
|