Files
uberspace-webadmin/index.php

141 lines
5.9 KiB
PHP
Raw Normal View History

2015-07-09 12:23:07 +03:00
<!DOCTYPE html>
2015-07-09 13:50:14 +03:00
<html lang="en-EN">
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-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">
<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 -->
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 -->
<!-- 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 />
<warn>THIS OPERATION CANNOT BE UNDONE! ALL EMAILS OF THIS ACCOUNT WILL BE REMOVED!</warn></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-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-09 14:49:54 +03:00
The program can be obtained on <a href="http://src.mehl.mx/uberspace-webadmin.git">Git</a> under a GPLv3+ license.</p>
2015-07-09 13:50:14 +03:00
</div> <!-- footer -->
2015-07-09 00:06:31 +03:00
</body>
</html>