diff --git a/README.md b/README.md
index a23a844..250e363 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,6 @@
## Installation
-Edit `config.php` to your needs. Afterwards, run `install.php`. Make sure to
-delete this file after installation.
-
-Don't forget to make the `tmp` directory writable for the webserver user.
\ No newline at end of file
+Füge in die `config.php` deine Daten ein.
+Rufe dann die `install.php` in einem Browser auf.
+Lösche nach der Installation die `install.php`.
\ No newline at end of file
diff --git a/config.php b/config.php
index 3dccfe5..d3d1cb7 100644
--- a/config.php
+++ b/config.php
@@ -9,7 +9,7 @@ $MYSQL_USERNAME = "";
$MYSQL_PASSWORD = "";
// Please comment or delete the next line.
-die('Please edit config.php!');
+die('Bitte config.php bearbeiten!');
// Don't touch anything below here.
diff --git a/index.php b/index.php
index 6b55855..7549dd5 100644
--- a/index.php
+++ b/index.php
@@ -41,7 +41,7 @@ if (isset($_POST['words'])) {
$word2 = check_word("word2");
$word3 = check_word("word3");
if ($word1 === false || $word2 === false || $word3 === false) {
- $_SESSION['flash'] = "Not all words entered are valid.";
+ $_SESSION['flash'] = "Nicht alle eingegebenen Wörter sind gültig.";
header("Location: index.php");
exit();
}
diff --git a/install.php b/install.php
index e091dfa..c4b5e4d 100644
--- a/install.php
+++ b/install.php
@@ -54,23 +54,23 @@ SQL
;
if (!$sql->multi_query($sql_str)) { ?>
-
An error occurred
+Ein Fehler ist aufgetreten
error; ?>
-Step 1: Login details
+Schritt 1: Login Daten
"INSERT INTO `config` (`key`, `value`) VALUES ('recent_public', 'false'); " .
"INSERT INTO `config` (`key`, `value`) VALUES ('recent_count', '5');";
if (!$sql->multi_query($sql_str)) { ?>
-An error occurred
+Ein Fehler ist aufgetreten
error; ?>
-Step 3: Enjoy!
-You now should delete this file. Have fun.
+Schritt 3: Viel Spaß!
+Bitte lösche nun die install.php
- Step 0: Click the damn button to start
+ Schritt 0: Klick auf den Button um zu starten!
diff --git a/ucp.php b/ucp.php
index 8549b06..b5af4e7 100644
--- a/ucp.php
+++ b/ucp.php
@@ -25,7 +25,7 @@ function check_privileges($ajax = false) {
if ($ajax) {
echo json_encode(array("success" => false));
} else {
- $_SESSION['flash'] = "Log in to continue.";
+ $_SESSION['flash'] = "Einloggen um fortzufahren.";
header('Location: ucp.php?page=login');
}
exit();
@@ -55,7 +55,7 @@ switch ($_GET['page']) {
}
case "login": {
if ($_SESSION['logged_in']) {
- $_SESSION['flash'] = "You're already logged in.";
+ $_SESSION['flash'] = "Du bist bereits eingeloggt.";
header('Location: ucp.php');
exit();
}
@@ -70,12 +70,12 @@ switch ($_GET['page']) {
if (($_POST['username'] === $username) && ($post_pass === $password)) {
// successful login
$_SESSION['logged_in'] = true;
- $_SESSION['flash'] = "You are now logged in.";
+ $_SESSION['flash'] = "Erfolgreich eingeloggt.";
header('Location: ucp.php');
exit();
} else {
// failed login
- $_SESSION['flash'] = "Wrong user name or password";
+ $_SESSION['flash'] = "Falscher Name oder Passwort";
header('Location: ucp.php?page=login');
exit();
}
@@ -87,7 +87,7 @@ switch ($_GET['page']) {
session_destroy();
session_start();
- $_SESSION['flash'] = "Sucessfully logged out";
+ $_SESSION['flash'] = "Erfolgreich ausgeloggt.";
header('Location: index.php');
exit();
break;
@@ -113,7 +113,7 @@ switch ($_GET['page']) {
$sql->query("UPDATE `config` SET `value`='" . (int) $_POST['recent_count'] . "' WHERE `key`='recent_count'");
}
}
- $_SESSION['flash'] = "Successfully saved changes.";
+ $_SESSION['flash'] = "Änderungen erfolgreich gespeichert.";
header('Location: ucp.php?page=settings');
exit();
break;
@@ -123,13 +123,13 @@ switch ($_GET['page']) {
if ($_POST['password_change'] === $_POST['password_verify']) {
if (strlen($_POST['password_change']) > 3) {
$sql->query("UPDATE `config` SET `value`='" . $sql->real_escape_string(crypt_password($_POST['password_change'], gen_salt(22))) . "' WHERE `key`='password';");
- $_SESSION['flash'] = "Successfully changed password.";
+ $_SESSION['flash'] = "Passwort erfolgreich geändert.";
header('Location: ucp.php?page=settings');
exit();
}
}
}
- $_SESSION['flash'] = "The passwords did not match or your password is shorter than 3 characters.";
+ $_SESSION['flash'] = "Das Passwort stimmt nicht überein oder ist zu kurz.";
header('Location: ucp.php?page=settings');
exit();
break;
diff --git a/views/footer.html b/views/footer.html
index cde2e3d..d213aa4 100644
--- a/views/footer.html
+++ b/views/footer.html
@@ -1,6 +1,6 @@