34968-vm/driver/header.php
Flatlogic Bot 7a0a2165fc V12
2025-10-15 14:58:19 +00:00

27 lines
804 B
PHP

<?php
session_start();
// If driver is not logged in, redirect to login page
if (!isset($_SESSION['driver_id'])) {
header('Location: /driver/login.php');
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Driver Dashboard - Majuro Eats</title>
<link rel="stylesheet" href="../assets/css/main.css?v=<?php echo time(); ?>">
</head>
<body>
<header>
<a href="/driver/" class="logo">Majuro Eats - Driver Portal</a>
<div class="user-actions">
<?php if (isset($_SESSION['driver_id'])): ?>
<span>Welcome, <?php echo htmlspecialchars($_SESSION['driver_name']); ?></span>
<a href="logout.php">Logout</a>
<?php endif; ?>
</div>
</header>