Initial commit

This commit is contained in:
2026-01-02 21:00:45 +01:00
commit f141228c32
52 changed files with 8512 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
<?php session_start();
$Benutzername = strip_tags(htmlentities($_SESSION["Benutzername"]));
$Email = strip_tags(htmlentities($_SESSION["Email"]));
$Code = strip_tags(htmlentities($_POST["Code"]));
$RealCode = $_SESSION["RealCode"];
$_SESSION["Verification"] = 'true';
?>
<!DOCTYPE html>
<html>
<head>
<title>VokabelBox</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../files/style.css" />
<script language="javascript" type="text/javascript" src="../../files/scripts.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
</head>
<body>
<header>
<p onclick="window.location.href='../../index'"></p>
<div class="more-menu">
<button class="fas fa-ellipsis-v"></button>
<div class="more-menu-content">
<div onclick="window.location.href='index'" title="VokabelBox"><i class="fas fa-home"></i>VokabelBox</div>
<div onclick="window.location.href='myaccount'" title="Mein Account"><i class="far fa-user-circle"></i>Mein Account</div>
<div onclick="window.location.href='marks'" title="Meine Noten"><i class="fas fa-table"></i>Meine Noten</div>
<div onclick="window.location.href='search'" title="Meine VokabelBox durchsuchen"><i class="fas fa-search"></i>Suchen</div>
<div onclick="window.location.href='help'" title="Hilfecenter &ouml;ffnen"><i class="fas fa-question-circle"></i>Hilfe</div>
<div onclick="window.location.href='actions/logout'" title="Von VokabelBox abmelden"><i class="fas fa-sign-out-alt"></i>Ausloggen</div>
<br>
<div class="selected" title="Du &auml;nderst aktuell dein Passwort"><i class="fas fa-key"></i>Passwort-Service</div>
</div>
</div>
</header>
<main>
<div class="middle">
<?php
require "../../files/ezine_db.inc.php";
if(empty($Benutzername) || empty($Email) || empty($Code) || empty($RealCode)) {
$_SESSION["errorCode"] = 'generalError';
print("<meta http-equiv='refresh' content='0; URL=forgot-password'>");
}
else{
if($Code == $RealCode) {
?>
<h4>Neues Passwort festlegen</h4>
<form action='../../actions/change-password' method='post'>
<input type="hidden" value="<?php $Benutzername; ?>" name="Benutzername">
<input type="password" name="Passwort1" required placeholder="Passwort" id="toggle-password1">
<input type="checkbox" class="fas fa-eye" id="toggle-password-chb1-eye" onclick="togglePassword(1)">
<input type="checkbox" class="fas fa-eye-slash" id="toggle-password-chb1-eye-slash" onclick="togglePassword(1)"><br>
<input type="password" name="Passwort2" required placeholder="Passwort wiederholen" id="toggle-password2">
<input type="checkbox" class="fas fa-eye" id="toggle-password-chb2-eye" onclick="togglePassword(2)">
<input type="checkbox" class="fas fa-eye-slash" id="toggle-password-chb2-eye-slash" onclick="togglePassword(2)"><br>
<button type="submit" class="classic-button classic-button-grey">
<i class="fas fa-check"> </i>
Fertigstellen
</button>
</form>
<?php
}
else {
$_SESSION["errorCode"] = 'wrongCode';
print("<meta http-equiv='refresh' content='0; URL=forgot-password'>");
}
}
?>
</div>
</middle>
</body>
</html>