1
0
mirror of synced 2025-12-28 00:23:25 +00:00

feat(navigate) navigation available and most usefull features)

This commit is contained in:
Valentin
2024-06-13 00:30:42 +02:00
parent 10825d7598
commit ab210c98fe
15 changed files with 335 additions and 108 deletions

View File

@@ -1,6 +1,8 @@
<?php
session_start();
include 'config.php';
$page = basename($_SERVER['PHP_SELF']);
if (!isset($_SESSION['user_id']) && $page !== 'login.php' && $page !== 'register.php') {
header("Location: login.php");
@@ -16,10 +18,17 @@ include 'services/db.php';
?>
<main class="container mt-5">
<main class="container mt-4">
<?php include $content; ?>
</main>
<?php include 'structure/footer.php'; ?>
<script>
window.addEventListener('load', function() {
document.body.style.display = 'block';
});
</script>
</body>
</html>