31 lines
956 B
PHP
31 lines
956 B
PHP
<?php
|
|
session_start();
|
|
|
|
// Check if the user is logged in, otherwise redirect to login page
|
|
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) {
|
|
header('Location: 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>Admin Dashboard</title>
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="jumbotron mt-5">
|
|
<h1 class="display-4">Welcome, Admin!</h1>
|
|
<p class="lead">This is your admin dashboard. You have successfully logged in.</p>
|
|
<hr class="my-4">
|
|
<p>You can now manage your application from here.</p>
|
|
<a class="btn btn-primary btn-lg" href="logout.php" role="button">Logout</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|