init
This commit is contained in:
@@ -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>";
|
||||
?>
|
||||
Reference in New Issue
Block a user