94 lines
2.1 KiB
PHP
Executable File
94 lines
2.1 KiB
PHP
Executable File
<?php
|
|
|
|
// Include config file
|
|
require_once "config.php";
|
|
// Include config file
|
|
$config = parse_ini_file("config.ini", true) ;
|
|
$baseURL = $config['base']['URL'];
|
|
|
|
|
|
// Initialize the session
|
|
session_start();
|
|
// User account not yet verified => set loggedin to false
|
|
$_SESSION["loggedin"] == false;
|
|
$_SESSION['loginAttempt'] == false;
|
|
|
|
$firstname = $_SESSION["firstname"];
|
|
$lastname = $_SESSION["lastname"];
|
|
|
|
if (empty($firstname) || empty($lastname))
|
|
header("location: " .$baseURL ."/login.php");
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Login</title>
|
|
|
|
<!-- Bootstrap 5 CSS && Bootstrap Icons -->
|
|
<?php include "include/includeJSandCSS.php" ?>
|
|
|
|
<!-- Custom CSS -->
|
|
<link href="css/bibb.css" media="all" rel="stylesheet" type="text/css">
|
|
|
|
<style>
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
|
|
.stickywrapper {
|
|
min-height: 60vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.content {
|
|
flex: 1;
|
|
}
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php include "templates/headerLogin.php"; ?>
|
|
|
|
<div class="stickywrapper">
|
|
<!-- Hauptinhalt der Seite -->
|
|
<div class="content">
|
|
<div class="container my-5">
|
|
<div id="passwordresetconfirmationScreen" class="wrapperconfirmation pb-3 shadow p-3 ml-10 bg-light rounded align-items-center bg-box">
|
|
<h4>Passwort zurückgesetzt</h4>
|
|
<?php
|
|
echo '
|
|
<div class="row">
|
|
Hallo ';
|
|
echo $firstname ." " .$lastname ."," ;
|
|
echo '
|
|
</div>
|
|
<div class="row">
|
|
Ihr Passwort wurde erfolgreich zurückgesetzt. Sie können sich nun zum Publizieren mit Ihren zuvor vergebenen Logindaten anmelden.
|
|
</div>
|
|
<div class="row"></div>';
|
|
|
|
echo
|
|
'<form action="';
|
|
echo $baseURL ."/login.php";
|
|
echo '" method="post">
|
|
<div class="form-group">
|
|
<input type="submit" class="btn btn-success" value="Zum Login">
|
|
</div>
|
|
</form> ';
|
|
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php include "templates/stickyfooter.php" ?>
|
|
|
|
</body>
|
|
</html>
|