-
Notifications
You must be signed in to change notification settings - Fork 0
/
logout.php
105 lines (88 loc) · 2.85 KB
/
logout.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
session_start();
?>
<!DOCTYPE html>
<html lang = "en">
<head>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/header_buttons.css">
<script src="https://kit.fontawesome.com/4630ffd9fd.js" crossorigin="anonymous"></script>
<title></title>
</head>
<style type="text/css">
*{
font-family: sans-serif;
}
body{
background-image: url('images/money_bills.jpg');
background-size: cover;
}
.layer {
background-color:rgba(0,0,0,0.4);
width:100%;
height:90%;
}
.text{
size: cover;
font-family: Arvo;
margin-left: 570px;
padding-top: 140px;
color: #d1d1e0;
font-size: 100px;
}
.text2{
size: cover;
height:490px;
font-family: Arvo;
margin-left: 710px;
padding-top: 60px;
font-size: 60px;
color: #d1d1e0;
}
}
</style>
<body style="background-color: grey">
<nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
<a class="navbar-brand" href="#" style="font-size: 25px;">
<i class="fas fa-coins" style="font-size: 28px;"></i>
MyCapital
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="index.php" style="font-size: 20px; margin-top: -2px;">HomePage <span class="sr-only">(current)</span></a>
</li>
<a class="nav-link" style="color: MediumSpringGreen;" href="#">
<?php if (!isset($_SESSION['username'])) : ?>
<li>
Logged out successfully!
</li>
<?php endif ?>
</a>
</ul>
<?php
if(isset($_SESSION['userID'])){
echo '<form action="logout.inc.php" method="post">
<button class="logoutbutton logoutbutton1" type="submit" name="logout-submit">Logout</button>
</form>';
}
else{
echo '<form action="login.inc.php" method="post">
<input class="email" type="text" name="email" placeholder=" Email" required>
<input class="email" type="password" name="pwd" placeholder=" Password" required>
<button class="button button1" type="submit" name="login-submit" >Login</button>
</form>
<a class="signbut" href="signup.php">Signup</a>';
}
?>
</div>
</nav>
<div class="layer">
<div class="text">Spend judiciously</div>
<div class="text2">Have a good day!</div>
</div>
</body>
</html>