34132-vm/dashboard.php
Flatlogic Bot 05d192f46f MagiCV
2025-09-17 11:37:51 +00:00

29 lines
659 B
PHP

<?php
session_start();
// If the user is not logged in, redirect to the login page.
if (!isset($_SESSION['user_id'])) {
header('Location: /login.php');
exit;
}
require_once __DIR__ . '/includes/header.php';
?>
<div class="dashboard-container">
<h2>Welcome to Your Dashboard</h2>
<p>Your role: <?php echo htmlspecialchars($_SESSION['user_role']); ?></p>
<div class="cv-management">
<h3>Your CVs</h3>
<p>You don't have any CVs yet.</p>
<a href="/create_cv.php" class="button">Create a New CV</a>
</div>
<a href="/logout.php">Logout</a>
</div>
<?php
require_once __DIR__ . '/includes/footer.php';
?>