First implementation #1

Closed
krombel wants to merge 22 commits from first_implementation into master
5 changed files with 45 additions and 39 deletions
Showing only changes of commit b8f8fc1f69 - Show all commits

View File

@@ -19,7 +19,7 @@ else {
$db = new PDO('sqlite:' . $db_file);
$ins_stmt = $db->prepare("INSERT INTO registrations
(first_name, last_name, note, email, username, verify_token)
VALUES (:first_name, :last_name, :note, :email, :username, :verify_token);
VALUES (:first_name, :last_name, :note, :email, :username, :verify_token)");
}
// set writeable when not set already

View File

@@ -1,5 +1,6 @@
<?php
$language = array(
"NO_CONFIGURATION" => "Es konnte keine Konfiguration gefunden werden.",
"UNKNOWN_SESSION" => "Sitzungstoken nicht vorhanden oder ungültig.",
"UNKNOWN_USERNAME" => "Nutzername fehlt",
"USERNAME_LENGTH_INVALID" => "Entweder mehr als 20 oder weniger als 3 Zeichen für den Nutzernamen verwendet",

View File

@@ -1,5 +1,5 @@
<?php
$lang = "en";
$lang = "de";
if(isset($_GET['lang'])){
$lang = $_GET['lang'];
}

View File

@@ -1,8 +1,12 @@
<html>
<head>
<?php
include config.php;
include language.php;
require_once "../language.php";
if (!file_exists("../config.php")) {
print($language["NO_CONFIGURATION"]);
exit();
}
require_once "../config.php";
// enforce admin via https
if (!isset($_SERVER['HTTPS'])) {
@@ -185,3 +189,4 @@ user_name.onkeyup = function (event) {
</script>
</body>
</html>
<?php } ?>