Files
uberspace-webadmin/index.php

119 lines
4.1 KiB
PHP

<html>
<head>
<meta charset="utf-8">
<title>UAAP | Uberspace Account Administration Panel</title>
<link rel='stylesheet' href='/static/style.css' type='text/css' media='all' />
<script src="/static/click_toggle.js" type="text/javascript"></script>
</head>
<body onload="clickMenu('outer','div','more')">
<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 />
<div id="outer">
<div class="holder">
<h2 id="adduser">Add an Email account</h2>
<p>You can add a new Email account your primary and all other domains.<br />
Please do not add your domain, just everything in front of the @-symbol.</p>
<div class="more">
<i class="show">more &#187;</i>
<i class="hide">&#171; less</i>
<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>
</div> <!-- /more -->
<hr />
</div> <!-- /holder -->
</div> <!-- outer -->
<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>