74 lines
2.4 KiB
PHP
74 lines
2.4 KiB
PHP
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Email accounts administration</title>
|
|
<link rel='stylesheet' href='/style.css' type='text/css' media='all' />
|
|
</head>
|
|
<body>
|
|
|
|
<h3>Add an Email account</h3>
|
|
<form action="submit.php" method="post">
|
|
<label>Username:</label>
|
|
<input name="user" title="User" />
|
|
<label>Password:</label>
|
|
<input name="pass" title="Password" type="password" />
|
|
<br />
|
|
<button type="submit" name="action" value="adduser">Add new account</button>
|
|
<!-- Hidden confirmation box -->
|
|
<input type="hidden" name="sure" value="yes" />
|
|
</form>
|
|
<hr />
|
|
|
|
<h3>Change password of an Email account</h3>
|
|
<form action="submit.php" method="post">
|
|
<label>Username:</label>
|
|
<input name="user" title="User" />
|
|
<label>New Password:</label>
|
|
<input name="pass" title="Password" type="password" />
|
|
<br />
|
|
<button type="submit" name="action" value="changepw">Change password</button>
|
|
<!-- Hidden confirmation box -->
|
|
<input type="hidden" name="sure" value="yes" />
|
|
</form>
|
|
<hr />
|
|
|
|
<h3>List all Email accounts</h3>
|
|
<form action="submit.php" method="post">
|
|
<button type="submit" name="action" value="listusers">List accounts</button>
|
|
<!-- Hidden confirmation box -->
|
|
<input type="hidden" name="sure" value="yes" />
|
|
</form>
|
|
<hr />
|
|
|
|
<h3>Detailed info about a single Email account</h3>
|
|
<form action="submit.php" method="post">
|
|
<label>Username:</label>
|
|
<input name="user" title="User" />
|
|
<br />
|
|
<button type="submit" name="action" value="userdetail">Get details</button>
|
|
<!-- Hidden confirmation box -->
|
|
<input type="hidden" name="sure" value="yes" />
|
|
</form>
|
|
<hr />
|
|
|
|
<h3>Delete an Email account</h3>
|
|
<p>Delete an Email account and all its emails.<br />
|
|
<warn>THIS OPERATION CANNOT BE UNDONE!<br />
|
|
ALL EMAILS OF THIS ACCOUNT WILL BE REMOVED!</warn></p>
|
|
<form action="submit.php" method="post">
|
|
<label>Username:</label>
|
|
<input name="user" title="User" />
|
|
<br />
|
|
<label for="sure">
|
|
<input type="checkbox" name="sure" value="yes" id="sure">Yes, I'm really sure that I want to delete this account
|
|
</label>
|
|
<button type="submit" name="action" value="deluser">Delete account</button>
|
|
</form>
|
|
<hr />
|
|
|
|
<p style="font-size:small">This web application has been created by <a href="http://mehl.mx">Max Mehl</a><br />
|
|
The program can be obtained on <a href="http://src.mehl.mx/uberspace-webadmin.git">Git</a> under a GPLv3+ license.</p>
|
|
|
|
</body>
|
|
</html>
|