34766-vm/listings.php
2025-10-08 05:39:35 +00:00

19 lines
562 B
PHP

<?php
session_start();
// Redirect to login if not logged in or not a restaurant
if (!isset($_SESSION['user_id']) || $_SESSION['user_role'] !== 'restaurant') {
header("Location: login.php");
exit;
}
?>
<?php include 'partials/header.php'; ?>
<div class="container py-5">
<h1 class="text-center">Restaurant Dashboard</h1>
<p class="text-center">Welcome, <?php echo htmlspecialchars($_SESSION['user_email']); ?>!</p>
<p class="text-center">This is where you will manage your food listings.</p>
</div>
<?php include 'partials/footer.php'; ?>