FSCash/html/index.php
2026-01-05 14:38:43 +01:00

38 lines
994 B
PHP

<?php
require 'config.php';
if (isset($_SESSION['user_id'])) {
header('Location: dashboard.php');
exit;
}
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FinanzApp - Login</title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!-- Cookie-Hinweis -->
<div id="cookie-notice" class="cookie-notice">
<p>Diese Website verwendet nur technisch notwendige Cookies.</p>
<button id="accept-cookies">OK</button>
<button class="hamburger">☰</button>
</div>
<!-- Modal Login Dialog -->
<div id="login-modal" class="modal">
<div class="modal-content">
<h2>Login</h2>
<form action="dashboard.php" method="post">
<input type="text" name="username" placeholder="Benutzername" required>
<input type="password" name="password" placeholder="Passwort" required>
<button type="submit">Einloggen</button>
</form>
</div>
</div>
<script src="assets/js/script.js"></script>
</body>
</html>