-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogged_in.php
More file actions
58 lines (51 loc) · 1.83 KB
/
logged_in.php
File metadata and controls
58 lines (51 loc) · 1.83 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
session_start();
if (!isset($_SESSION['username'])) {
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>Welcome</title>
<link rel="stylesheet" href="css/logged_in.css?rnd=@Function.SessionID">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&family=Open+Sans&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="prompt-container">
<?php
if (isset($_GET['added']) && $_GET['added'] == 1) {
echo "<h1>Project successfully added!</h1>";
} elseif (isset($_GET['updated']) && $_GET['updated'] == 1) {
echo "<h1>Project successfully updated!</h1>";
} elseif (isset($_GET['updated']) && $_GET['updated'] == 0) {
echo "<h1>No changes were made to project.</h1>";
} else {
echo "<h1>Welcome back, " . $_SESSION['username'] . "</h1>";
}
?>
<div class="button-container">
<a href="add_project.php" class="button">Add a new project</a>
<a href="edit_project.php" class="button">Edit your existing project</a>
<a href="logout.php" class="button">Log out</a>
</div>
</div>
</div>
<footer>
<div class="logo-container">
<a href="index.php">
<img src="img/ap.svg" alt="logo">
</a>
</div>
<div class="footer-text">
<span>©2023 M Kalam | 220064521@aston.ac.uk</span>
</div>
</footer>
</body>
</html>