add multilanguage support (currently EN and DE)

This commit is contained in:
2015-12-11 19:39:52 +01:00
parent 4adfdb3339
commit e31a21fa6f
8 changed files with 289 additions and 78 deletions

View File

@@ -1,16 +1,17 @@
<?php include_once 'lang.php'; ?>
<!DOCTYPE html>
<html lang="en-GB">
<html lang="<?php echo $lang['LANG']; ?>">
<head>
<meta charset="utf-8">
<title>UAAP | Results</title>
<title>UAAP | <?php echo $lang['S_INTRO']; ?></title>
<link rel='stylesheet' href='/static/style.css' type='text/css' media='all' />
</head>
<body>
<div class="wrapper">
<h1>Results</h1>
<h1><?php echo $lang['S_INTRO']; ?></h1>
<p><strong><a href="/">&#171; GO BACK</a></strong> to main administration page</p>
<p><strong><a href="/"><?php echo $lang['S_BACK1']; ?></a></strong> <?php echo $lang['S_BACK2']; ?></p>
<table class="boxed"><tr><td>
@@ -19,7 +20,7 @@
$ACTION = $_POST['action'];
$USER = isset($_POST['user']) ? $_POST['user'] : ''; // surpress empty variable errors
$PASS = isset($_POST['pass']) ? $_POST['pass'] : '';
$SURE = $_POST['sure'];
$SURE = isset($_POST['sure']) ? $_POST['sure'] : '';
// Sanitize variables
$ACTION = escapeshellarg($ACTION);
@@ -42,7 +43,7 @@ if($SURE == "yes")
}
else
{
echo "You did not hit the necessary checkbox. Aborting.";
echo $lang['S_CHECKERR'];
}
// Delete passfile
@@ -52,13 +53,11 @@ unlink($PASSFILE);
</td></tr></table>
<p>In case of errors, please check all input data again.<br />
If the problem still exists, please contact us and add the error message.</p>
<p><?php echo $lang['S_MESSAGE']; ?></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>
</body>