Files
uberspace-webadmin/index.php

204 lines
8.4 KiB
PHP
Raw Normal View History

2015-07-09 12:23:07 +03:00
<!DOCTYPE html>
2015-07-11 17:41:47 +03:00
<html lang="en-GB">
2015-07-09 00:06:31 +03:00
<head>
<meta charset="utf-8">
2015-07-09 01:14:14 +03:00
<title>UAAP | Uberspace Account Administration Panel</title>
2015-07-09 12:08:09 +03:00
<link rel='stylesheet' href='/static/style.css' type='text/css' media='all' />
<script src="/static/click_toggle.js" type="text/javascript"></script>
2015-07-09 00:06:31 +03:00
</head>
2015-07-09 12:54:10 +03:00
<body>
2015-07-09 14:49:54 +03:00
<div class="wrapper">
2015-07-09 13:50:14 +03:00
2015-07-09 01:14:14 +03:00
<h1>Account Administration Panel</h1>
2015-07-11 17:41:47 +03:00
<noscript><span class="warn">Please activate JavaScript in your webbrowser.
This panel will not work without activated JavaScript.</span></noscript>
2015-07-10 23:11:47 +03:00
2015-07-09 13:22:38 +03:00
<h4>You have following options:</h4>
2015-07-09 01:14:14 +03:00
2015-07-10 10:41:03 +03:00
<div id="gallery">
2015-07-10 19:07:54 +03:00
<!--
GENERAL SECTION
-->
2015-07-10 10:41:03 +03:00
<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">
2015-07-11 17:41:47 +03:00
<p>View the data sheet with all usernames and passwords. <span class="warn">Please keep this document secure!</span></p>
2015-07-10 10:41:03 +03:00
<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 -->
2015-07-10 19:07:54 +03:00
<!-- 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
-->
2015-07-09 13:40:57 +03:00
<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>
2015-07-09 13:03:39 +03:00
<div class="hide">
<p>You can add a new email account your primary and all other domains.<br />
2015-07-09 13:03:39 +03:00
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 -->
2015-07-10 18:08:17 +03:00
<!-- 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 -->
2015-07-09 13:03:39 +03:00
<!-- 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>
2015-07-09 13:00:42 +03:00
<div class="hide">
<p>Enables you to change the email password of a single account.</p>
2015-07-09 13:00:42 +03:00
<form action="submit.php" method="post">
<label>Username:</label>
<input name="user" title="User" />
2015-07-09 13:10:27 +03:00
<label>New Password:</label>
2015-07-09 13:00:42 +03:00
<input name="pass" title="Password" type="password" />
2015-07-09 12:08:09 +03:00
<br />
2015-07-09 13:10:27 +03:00
<button type="submit" name="action" value="changepw">Change password</button>
2015-07-09 13:00:42 +03:00
<!-- Hidden confirmation box -->
<input type="hidden" name="sure" value="yes" />
</form>
</div> <!-- /hide -->
2015-07-09 00:06:31 +03:00
<!-- 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>
2015-07-09 12:50:05 +03:00
<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>
2015-07-09 12:50:05 +03:00
<form action="submit.php" method="post">
2015-07-09 13:10:27 +03:00
<button type="submit" name="action" value="listusers">List accounts</button>
2015-07-09 12:50:05 +03:00
<!-- Hidden confirmation box -->
<input type="hidden" name="sure" value="yes" />
</form>
2015-07-09 12:54:10 +03:00
</div> <!-- /hide -->
2015-07-09 12:50:05 +03:00
<!-- 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>
2015-07-09 13:10:27 +03:00
<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 -->
2015-07-09 12:50:05 +03:00
<!-- 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>
2015-07-09 13:10:27 +03:00
<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 -->
2015-07-09 00:06:31 +03:00
<!-- 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>
2015-07-09 13:10:27 +03:00
<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 -->
2015-07-09 00:26:45 +03:00
<!-- DELUSER - Delete an email account -->
2015-07-09 13:22:38 +03:00
<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 />
2015-07-11 17:41:47 +03:00
<span class="warn">THIS OPERATION CANNOT BE UNDONE! ALL EMAILS OF THIS ACCOUNT WILL BE REMOVED!</span></p>
2015-07-09 13:10:27 +03:00
<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 -->
2015-07-10 22:57:41 +03:00
<!--
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
2015-07-10 23:50:32 +03:00
database called &lt;YourUsername&gt;_wp.</p>
2015-07-10 22:57:41 +03:00
<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 />
2015-07-11 17:41:47 +03:00
<button type="submit" name="action" value="installwp">Install WordPress</button>
2015-07-10 22:57:41 +03:00
<!-- Hidden confirmation box -->
<input type="hidden" name="sure" value="yes" />
</form>
</div> <!-- /hide -->
2015-07-09 00:26:45 +03:00
2015-07-09 13:10:27 +03:00
</div> <!-- /gallery -->
2015-07-09 00:06:31 +03:00
2015-07-09 14:49:54 +03:00
</div> <!-- /wrapper -->
2015-07-09 13:50:14 +03:00
<div class="footer">
<p>This web application has been created by <a href="http://mehl.mx">Max Mehl</a><br />
2015-07-10 19:14:24 +03:00
The program can be obtained on <a href="http://src.mehl.mx/uberspace-webadmin.git">Git</a> under an AGPLv3+ license.</p>
2015-07-09 13:50:14 +03:00
</div> <!-- footer -->
2015-07-09 00:06:31 +03:00
</body>
</html>