-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
35 lines (30 loc) · 865 Bytes
/
Copy pathdashboard.php
File metadata and controls
35 lines (30 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
// dashboard.php
// Check if the lecturer is logged in and display the dashboard
// Start the session
session_start();
// Check if the lecturer is not logged in, redirect to login.php
if (!isset($_SESSION['email'])) {
header("Location: login.php");
exit();
}
// Display dashboard with lecturer details
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lecturer Dashboard</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h2>Lecturer Dashboard </h2>
<br>
<h1>Welcome, <?php echo $_SESSION['email']; ?>!</h1>
<!-- Add other dashboard content here -->
<p>
<a href="logout.php" class="logout-button">Logout</a>
</body>
</html>
<?php include('footer.php'); ?>