passwort == $passwort) {
$_SESSION["user"] = $username;
$_SESSION["timestamp"] = time();
mysqli_query($conn, "UPDATE konto SET angemeldet = '1' WHERE email = '$username'");
if (isset($_POST['backlink'])) {
header("Location: ".$_POST['backlink']);
}
else {
header("Location: index.php");
}
}
else { ?>
Login
E-Mail und/oder Passwort waren falsch