-
Notifications
You must be signed in to change notification settings - Fork 5
/
welcome.php
48 lines (40 loc) · 1.03 KB
/
welcome.php
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
<?php
// Initialize session
session_start();
if (!isset($_SESSION['loggedin']) && $_SESSION['loggedin'] !== false) {
header('location: login.php');
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Welcome</title>
<link href="https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cosmo/bootstrap.min.css" rel="stylesheet" integrity="sha384-qdQEsAI45WFCO5QwXBelBe1rR9Nwiss4rGEqiszC+9olH1ScrLrMQr1KmDR964uZ" crossorigin="anonymous">
<style>
.wrapper {
width: 500px;
padding: 20px;
}
.wrapper h2 {
text-align: center
}
.wrapper form .form-group span {
color: red;
}
</style>
</head>
<body>
<!-- Your desire code -->
<main>
<section class="container wrapper">
<div class="page-header">
<h2 class="display-5">Welcome home <?php echo $_SESSION['username']; ?></h2>
</div>
<a href="password_reset.php" class="btn btn-block btn-outline-warning">Reset Password</a>
<a href="logout.php" class="btn btn-block btn-outline-danger">Sign Out</a>
</section>
</main>
</body>
</html>