-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
76 lines (59 loc) · 2.18 KB
/
home.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>after login</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./assets/css/bootstrap.min.css">
<script src="./assets/js/jquery-3.4.0.js"></script>
<script src="./assets/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="./assets/css/style.css" type="text/css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="./index.php">
<img id ="mainlogo"src="./assets/img/logo.png" alt="logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" id="logout" href="./logout.php">logout</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Content -->
<br><br>
<center><h1>Welcome inside my Messaging Center</h1></center>
<br><br>
<div class="row d-flex flex-row justify-content-center my-flex-container">
<div class="col-xs-6 col-sm-6 col-md-6 my-flex-item">
<button onclick="location.href='send.php'" class="btn btn-lg btn-success btn-block">Send new message</button>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 my-flex-item">
<button onclick="location.href='read.php'" class="btn btn-lg btn-dark btn-block">Read new message</button>
</div>
</div>
<!-- Footer -->
<footer class="page-footer font-small blue pt-4">
<!-- Copyright -->
<div class="footer-copyright text-center py-3">© 2020 Copyright: Luciano Gavoni for Coursera Capstone project
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
</body>
</html>
<?php
session_start();
if(!isset($_SESSION[`name`]))
{
header('Location: ./login.php');
}
?>