This commit is contained in:
2025-04-15 20:29:16 +02:00
commit 7cd04e2a52
13 changed files with 443 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
session_start();
if (!isset($_SESSION['username'])) {
header("Location: login.php"); // Redirect if not logged in
exit();
}
echo "Welcome, " . $_SESSION['username'] . "!";
echo "<p><a href='add_restaurant.php'>Add Restaurant</a></p>";
echo "<p><a href='add_review.php'>Add Review</a></p>";
echo "<p><a href='logout.php'>Logout</a></p>";
?>