-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogout.php
More file actions
110 lines (100 loc) · 3.09 KB
/
logout.php
File metadata and controls
110 lines (100 loc) · 3.09 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
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
105
106
107
108
109
110
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Logout</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&lang=en" />
<link rel="stylesheet" type="text/css" href="style.css" />
<style>
.fileuploader{
width:400px;
height:200px;
margin: 60px auto 0px auto;
background=color:#FFF;
border: 1px solid #CCC;
padding :6px;
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#topNavBar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">CoolPics</a>
</div>
<!-- items -->
<div class="collapse navbar-collapse" id="topNavBar">
<ul class="nav navbar-nav">
<li class="active">
<a href="pics.php">
<span class="glyphicon glyphicon-th-large" aria-hidden="true"></span>
Pics
</a>
</li>
</ul>
<form class="navbar-form navbar-left" role="search" method="get" action="#">
<div class="form-group">
<input type="text" class="form-control" name="q" value="">
</div>
<button type="submit" class="btn btn-default">Search</button>
</form>
<ul class="nav navbar-nav navbar-right">
<li class="">
<a href="https://github.com/arindam-modak" style="text-decoration:none;"><i class="fa fa-github" aria-hidden="true"></i> ADM</a>
</li>
<li class="">
<a href="addpic.php">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Add Pic
</a>
</li>
<li class="">
<a href="FileUpload.php">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Upload Pic
</a>
</li>
<li class="">
<a href="register.php">
<span class="glyphicon glyphicon-th-large" aria-hidden="true"></span>
Register
</a>
</li>
<li class="">
<a href="login.php">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
login
</a>
</li>
<li class="">
<a href="logout.php">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
Logout
</a>
</li>
</ul>
</div>
</div>
</nav>
<?php
if (isset($_SESSION['username']))
{
$_SESSION['username']="";
}
else { $_SESSION['username']=""; }
header("Location: https://iit2016036.000webhostapp.com/index.html"); /* Redirect browser */
exit();
?>
</body>
</html>