27 lines
806 B
PHP
27 lines
806 B
PHP
<?php
|
|
require_once 'templates/header.php';
|
|
|
|
// Protect this page
|
|
if (!isset($_SESSION['user_id'])) {
|
|
header("Location: login.php");
|
|
exit();
|
|
}
|
|
?>
|
|
<main class="container my-5">
|
|
|
|
<section class="py-5">
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-8">
|
|
<div class="feature-card p-4">
|
|
<h2 class="text-center mb-4">Admin Panel</h2>
|
|
<p class="text-center">Welcome, <?php echo htmlspecialchars($_SESSION['username']); ?>!</p>
|
|
<p class="text-center">This is your admin dashboard. You can add content and manage your site from here.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</main>
|
|
<?php require_once 'templates/footer.php'; ?>
|