Files
uberspace-webadmin/index.php

204 lines
8.4 KiB
PHP

<!DOCTYPE html>
<html lang="en-EN">
<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>
<div class="wrapper">
<h1>Account Administration Panel</h1>
<noscript><warn>Please activate JavaScript in your webbrowser.
This panel will not work without activated JavaScript.</warn></noscript>
<h4>You have following options:</h4>
<div id="gallery">
<!--
GENERAL SECTION
-->
<p><strong>General</strong></p>
<!-- VIEWDATA - View datasheet of whole account -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> View the data sheet</b>
<div class="hide">
<p>View the data sheet with all usernames and passwords. <warn>Please keep this document secure!</warn></p>
<form action="submit.php" method="post">
<button type="submit" name="action" value="viewdata">View data sheet</button>
<!-- Hidden confirmation box -->
<input type="hidden" name="sure" value="yes" />
</form>
</div> <!-- /hide -->
<!-- QUOTA - Show free and used disk space an whole account -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> Show used disk space</b>
<div class="hide">
<p>Shows used and free disk space on your webhost. This sums up all
used space by emails, websites and databases.</p>
<form action="submit.php" method="post">
<button type="submit" name="action" value="quota">Show usage</button>
<!-- Hidden confirmation box -->
<input type="hidden" name="sure" value="yes" />
</form>
</div> <!-- /hide -->
<!--
EMAIL SECTION
-->
<p><strong>Email accounts</strong></p>
<!-- ADDUSER - Add a new email account -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> Add a new email</b>
<div class="hide">
<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>
<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> <!-- /hide -->
<!-- ADDALIAS - Add a new email redirection -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> Add an email redirection</b>
<div class="hide">
<p>This creates an alias email account. This account has no mailbox
but just redirects all mails to another account.</p>
<form action="submit.php" method="post">
<label>Alias name:</label>
<input name="user" title="Alias" />
<label>Destination account:</label>
<input name="pass" title="Destination" />
<br />
<button type="submit" name="action" value="addalias">Add alias</button>
<!-- Hidden confirmation box -->
<input type="hidden" name="sure" value="yes" />
</form>
</div> <!-- /hide -->
<!-- CHANGEPW - Change password of an email account -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> Change email password</b>
<div class="hide">
<p>Enables you to change the email password of a single account.</p>
<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>
</div> <!-- /hide -->
<!-- LISTUSERS - List all email accounts -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> List all email accounts</b>
<div class="hide">
<p>Shows all available email accounts on your webhost.
You will be able to see the username and if it has a mailbox or is just a redirection.</p>
<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>
</div> <!-- /hide -->
<!-- SIZEALL - Show total sizes of all email accounts -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> Show total account sizes</b>
<div class="hide">
<p>Shows total size of every active email account on your webhost.</p>
<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>
</div> <!-- /hide -->
<!-- SIZEUSER - Show size of every folder of a single email account -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> Show detailed account size</b>
<div class="hide">
<p>Shows size of every single folder in a single email account.
Very useful to detect folders which use up all your space.</p>
<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>
</div> <!-- /hide -->
<!-- USERDETAIL - Detailed info about a single email account -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> Show detailed account info</b>
<div class="hide">
<p>Show various information about a single email account.</p>
<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>
</div> <!-- /hide -->
<!-- DELUSER - Delete an email account -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> Delete an email account</b>
<div class="hide">
<p>Deletes an email account and all its emails.<br />
<warn>THIS OPERATION CANNOT BE UNDONE! 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>
</div> <!-- /hide -->
<!--
WEB SECTION
-->
<p><strong>Web Applications</strong></p>
<!-- INSTALLWP - Install an empty WordPress -->
<b class="switch"><span class="turn_on">&#187;</span><span class="turn_off">&#171;</span> Install WordPress automatically</b>
<div class="hide">
<p>This install WordPress for your automatically. It only works if
your website directory is still empty and you didn't create a
database called &lt;YourUsername&gt;_wp.</p>
<form action="submit.php" method="post">
<label>Desired WordPress login name:</label>
<input name="user" title="WordPress Login" />
<label>Your full email address:</label>
<input name="pass" title="Email address" />
<br />
<button type="submit" name="action" value="installwp">Install WordPress</button></button>
<!-- Hidden confirmation box -->
<input type="hidden" name="sure" value="yes" />
</form>
</div> <!-- /hide -->
</div> <!-- /gallery -->
</div> <!-- /wrapper -->
<div class="footer">
<p>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 an AGPLv3+ license.</p>
</div> <!-- footer -->
</body>
</html>