Files
uberspace-webadmin/index.php
2015-07-09 01:14:14 +03:00

108 lines
3.6 KiB
PHP

<html>
<head>
<meta charset="utf-8">
<title>UAAP | Uberspace Account Administration Panel</title>
<link rel='stylesheet' href='/style.css' type='text/css' media='all' />
</head>
<body>
<h1>Account Administration Panel</h1>
<p>You have following options:</p>
<ul>
<li><a href="#adduser">Add an Email account</a></li>
<li><a href="#changepw">Change password of an Email account</a></li>
<li><a href="#listusers">List all Email accounts</a></li>
<li><a href="#sizeall">Show total sizes of all Email accounts</a></li>
<li><a href="#sizeuser">Show size of every folder of a single Email account</a></li>
<li><a href="#userdetail">Detailed info about a single Email account</a></li>
<li><a href="#deluser">Delete an Email account</a></li>
</ul>
<hr />
<hr />
<h2 id="adduser">Add an Email account</h2>
<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 />
<h2 id="changepw">Change password of an Email account</h2>
<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 />
<h2 id="listusers">List all Email accounts</h2>
<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 />
<h2 id="sizeall">Show total sizes of all Email accounts</h2>
<form action="submit.php" method="post">
<button type="submit" name="action" value="sizeall">Show size</button>
<!-- Hidden confirmation box -->
<input type="hidden" name="sure" value="yes" />
</form>
<hr />
<h2 id="sizeuser">Show size of every folder of a single Email account</h2>
<form action="submit.php" method="post">
<label>Username:</label>
<input name="user" title="User" />
<br />
<button type="submit" name="action" value="sizeuser">Show size</button>
<!-- Hidden confirmation box -->
<input type="hidden" name="sure" value="yes" />
</form>
<hr />
<h2 id="userdetail">Detailed info about a single Email account</h2>
<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 />
<h2 id="deluser">Delete an Email account</h2>
<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>