add multilanguage support (currently EN and DE)
This commit is contained in:
127
index.php
127
index.php
@@ -1,5 +1,6 @@
|
||||
<?php include_once 'lang.php'; ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-GB">
|
||||
<html lang="<?php echo $lang['LANG']; ?>">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>UAAP | Uberspace Account Administration Panel</title>
|
||||
@@ -11,35 +12,33 @@
|
||||
|
||||
<h1>Account Administration Panel</h1>
|
||||
|
||||
<noscript><span class="warn">Please activate JavaScript in your webbrowser.
|
||||
This panel will not work without activated JavaScript.</span></noscript>
|
||||
<noscript><span class="warn"><?php echo $lang['JS_WARN']; ?></span></noscript>
|
||||
|
||||
<h4>You have following options:</h4>
|
||||
<h4><?php echo $lang['INTRO']; ?></h4>
|
||||
|
||||
<div id="gallery">
|
||||
<!--
|
||||
GENERAL SECTION
|
||||
-->
|
||||
|
||||
<p><strong>General</strong></p>
|
||||
<p><strong><?php echo $lang['SEC_GENERAL']; ?></strong></p>
|
||||
<!-- VIEWDATA - View datasheet of whole account -->
|
||||
<b class="switch"><span class="turn_on">»</span><span class="turn_off">«</span> View the data sheet</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_VIEWDATA']; ?></b>
|
||||
<div class="hide">
|
||||
<p>View the data sheet with all usernames and passwords. <span class="warn">Please keep this document secure!</span></p>
|
||||
<p><?php echo $lang['F_VIEWDATA_INTRO']; ?><br /><span class="warn"><?php echo $lang['F_VIEWDATA_INTRO_WARN']; ?></span></p>
|
||||
<form action="submit.php" method="post">
|
||||
<button type="submit" name="action" value="viewdata">View data sheet</button>
|
||||
<button type="submit" name="action" value="viewdata"><?php echo $lang['F_VIEWDATA']; ?></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">»</span><span class="turn_off">«</span> Show used disk space</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_QUOTA']; ?></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>
|
||||
<p><?php echo $lang['F_QUOTA_INTRO']; ?></p>
|
||||
<form action="submit.php" method="post">
|
||||
<button type="submit" name="action" value="quota">Show usage</button>
|
||||
<button type="submit" name="action" value="quota"><?php echo $lang['F_QUOTA']; ?></button>
|
||||
<!-- Hidden confirmation box -->
|
||||
<input type="hidden" name="sure" value="yes" />
|
||||
</form>
|
||||
@@ -49,122 +48,117 @@ This panel will not work without activated JavaScript.</span></noscript>
|
||||
EMAIL SECTION
|
||||
-->
|
||||
|
||||
<p><strong>Email accounts</strong></p>
|
||||
<p><strong><?php echo $lang['SEC_EMAIL']; ?></strong></p>
|
||||
<!-- ADDUSER - Add a new email account -->
|
||||
<b class="switch"><span class="turn_on">»</span><span class="turn_off">«</span> Add a new email</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_ADDUSER']; ?></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>
|
||||
<p><?php echo $lang['F_ADDUSER_INTRO']; ?></p>
|
||||
<form action="submit.php" method="post">
|
||||
<label>Username:</label>
|
||||
<label><?php echo $lang['FT_USER']; ?>:</label>
|
||||
<input name="user" title="User" />
|
||||
<label>Password:</label>
|
||||
<label><?php echo $lang['FT_PASS']; ?>:</label>
|
||||
<input name="pass" title="Password" type="password" />
|
||||
<br />
|
||||
<button type="submit" name="action" value="adduser">Add new account</button>
|
||||
<button type="submit" name="action" value="adduser"><?php echo $lang['F_ADDUSER']; ?></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">»</span><span class="turn_off">«</span> Add an email redirection</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_ADDALIAS']; ?></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>
|
||||
<p><?php echo $lang['F_ADDALIAS_INTRO']; ?></p>
|
||||
<form action="submit.php" method="post">
|
||||
<label>Alias name:</label>
|
||||
<label><?php echo $lang['F_ADDALIAS_ALIAS']; ?></label>
|
||||
<input name="user" title="Alias" />
|
||||
<label>Destination account:</label>
|
||||
<label><?php echo $lang['F_ADDALIAS_DEST']; ?></label>
|
||||
<input name="pass" title="Destination" />
|
||||
<br />
|
||||
<button type="submit" name="action" value="addalias">Add alias</button>
|
||||
<button type="submit" name="action" value="addalias"><?php echo $lang['F_ADDALIAS']; ?></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">»</span><span class="turn_off">«</span> Change email password</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_CHANGEPW']; ?></b>
|
||||
<div class="hide">
|
||||
<p>Enables you to change the email password of a single account.</p>
|
||||
<p><?php echo $lang['F_CHANGEPW_INTRO']; ?></p>
|
||||
<form action="submit.php" method="post">
|
||||
<label>Username:</label>
|
||||
<label><?php echo $lang['FT_USER']; ?>:</label>
|
||||
<input name="user" title="User" />
|
||||
<label>New Password:</label>
|
||||
<label><?php echo $lang['FT_NEWPASS']; ?>:</label>
|
||||
<input name="pass" title="Password" type="password" />
|
||||
<br />
|
||||
<button type="submit" name="action" value="changepw">Change password</button>
|
||||
<button type="submit" name="action" value="changepw"><?php echo $lang['F_CHANGEPW']; ?></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">»</span><span class="turn_off">«</span> List all email accounts</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_LISTUSERS']; ?></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>
|
||||
<p><?php echo $lang['F_LISTUSERS_INTRO']; ?></p>
|
||||
<form action="submit.php" method="post">
|
||||
<button type="submit" name="action" value="listusers">List accounts</button>
|
||||
<button type="submit" name="action" value="listusers"><?php echo $lang['F_LISTUSERS']; ?></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">»</span><span class="turn_off">«</span> Show total account sizes</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_SIZEALL']; ?></b>
|
||||
<div class="hide">
|
||||
<p>Shows total size of every active email account on your webhost.</p>
|
||||
<p><?php echo $lang['F_SIZEALL_INTRO']; ?></p>
|
||||
<form action="submit.php" method="post">
|
||||
<button type="submit" name="action" value="sizeall">Show size</button>
|
||||
<button type="submit" name="action" value="sizeall"><?php echo $lang['F_SIZEALL']; ?></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">»</span><span class="turn_off">«</span> Show detailed account size</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_SIZEUSER']; ?></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>
|
||||
<p><?php echo $lang['F_SIZEUSER_INTRO']; ?></p>
|
||||
<form action="submit.php" method="post">
|
||||
<label>Username:</label>
|
||||
<label><?php echo $lang['FT_USER']; ?>:</label>
|
||||
<input name="user" title="User" />
|
||||
<br />
|
||||
<button type="submit" name="action" value="sizeuser">Show size</button>
|
||||
<button type="submit" name="action" value="sizeuser"><?php echo $lang['F_SIZEUSER']; ?></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">»</span><span class="turn_off">«</span> Show detailed account info</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_USERDETAIL']; ?></b>
|
||||
<div class="hide">
|
||||
<p>Show various information about a single email account.</p>
|
||||
<p><?php echo $lang['F_USERDETAIL_INTRO']; ?></p>
|
||||
<form action="submit.php" method="post">
|
||||
<label>Username:</label>
|
||||
<label><?php echo $lang['FT_USER']; ?>:</label>
|
||||
<input name="user" title="User" />
|
||||
<br />
|
||||
<button type="submit" name="action" value="userdetail">Get details</button>
|
||||
<button type="submit" name="action" value="userdetail"><?php echo $lang['F_USERDETAIL']; ?></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">»</span><span class="turn_off">«</span> Delete an email account</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_DELUSER']; ?></b>
|
||||
<div class="hide">
|
||||
<p>Deletes an email account and all its emails.<br />
|
||||
<span class="warn">THIS OPERATION CANNOT BE UNDONE! ALL EMAILS OF THIS ACCOUNT WILL BE REMOVED!</span></p>
|
||||
<p><?php echo $lang['F_DELUSER_INTRO']; ?><br /><span class="warn"><?php echo $lang['F_DELUSER_INTRO_WARN']; ?></span></p>
|
||||
<form action="submit.php" method="post">
|
||||
<label>Username:</label>
|
||||
<label><?php echo $lang['FT_USER']; ?>:</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
|
||||
<input type="checkbox" name="sure" value="yes" id="sure"><?php echo $lang['F_DELUSER_CONF']; ?>
|
||||
</label>
|
||||
<button type="submit" name="action" value="deluser">Delete account</button>
|
||||
<button type="submit" name="action" value="deluser"><?php echo $lang['F_DELUSER']; ?></button>
|
||||
</form>
|
||||
</div> <!-- /hide -->
|
||||
|
||||
@@ -172,44 +166,43 @@ This panel will not work without activated JavaScript.</span></noscript>
|
||||
WEB SECTION
|
||||
-->
|
||||
|
||||
<p><strong>Web Applications</strong></p>
|
||||
<p><strong><?php echo $lang['SEC_WEB']; ?></strong></p>
|
||||
<!-- INSTALLWP - Install an empty WordPress -->
|
||||
<b class="switch"><span class="turn_on">»</span><span class="turn_off">«</span> Install WordPress automatically</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_INSTALLWP']; ?></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 <YourUsername>_wp.</p>
|
||||
<p><?php echo $lang['F_INSTALLWP_INTRO']; ?></p>
|
||||
<form action="submit.php" method="post">
|
||||
<label>Desired WordPress login name:</label>
|
||||
<label><?php echo $lang['F_INSTALLWP_USER']; ?></label>
|
||||
<input name="user" title="WordPress Login" />
|
||||
<label>Your full email address:</label>
|
||||
<label><?php echo $lang['F_INSTALLWP_MAIL']; ?></label>
|
||||
<input name="pass" title="Email address" />
|
||||
<br />
|
||||
<button type="submit" name="action" value="installwp">Install WordPress</button>
|
||||
<button type="submit" name="action" value="installwp"><?php echo $lang['F_INSTALLWP']; ?></button>
|
||||
<!-- Hidden confirmation box -->
|
||||
<input type="hidden" name="sure" value="yes" />
|
||||
</form>
|
||||
</div> <!-- /hide -->
|
||||
|
||||
<!-- UNINSTALLWP - Uninstall WordPress -->
|
||||
<b class="switch"><span class="turn_on">»</span><span class="turn_off">«</span> Uninstall WordPress</b>
|
||||
<b class="switch"><span class="turn_on">» </span><span class="turn_off">« </span><?php echo $lang['F_UNINSTALLWP']; ?></b>
|
||||
<div class="hide">
|
||||
<p>Deletes all files in your webdirectory and the database <YourUsername>_wp.<br />
|
||||
<span class="warn">THIS OPERATION CANNOT BE UNDONE! ALL POST, PAGES AND SETTINGS WILL BE REMOVED!</span></p>
|
||||
<p><?php echo $lang['F_UNINSTALLWP_INTRO']; ?><br /><span class="warn"><?php echo $lang['F_UNINSTALLWP_INTRO_WARN']; ?></span></p>
|
||||
<form action="submit.php" method="post">
|
||||
<label for="sure">
|
||||
<input type="checkbox" name="sure" value="yes" id="sure">Yes, I'm really sure that I want to uninstall WordPress completely
|
||||
<input type="checkbox" name="sure" value="yes" id="sure"><?php echo $lang['F_UNINSTALLWP_CONF']; ?>
|
||||
</label>
|
||||
<button type="submit" name="action" value="uninstallwp">Uninstall WordPress</button>
|
||||
<button type="submit" name="action" value="uninstallwp"><?php echo $lang['F_UNINSTALLWP']; ?></button>
|
||||
</form>
|
||||
</div> <!-- /hide -->
|
||||
|
||||
</div> <!-- /gallery -->
|
||||
|
||||
<p><a href="/?lang=en"><img src="/lang/en.png" title="<?php echo $lang['LANG_EN']; ?>" /></a> | <a href="/?lang=de"><img src="/lang/de.png" title="<?php echo $lang['LANG_DE']; ?>" /></a></p>
|
||||
|
||||
|
||||
</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>
|
||||
<p><?php echo $lang['FOOTER']; ?></p>
|
||||
</div> <!-- footer -->
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user