-
Notifications
You must be signed in to change notification settings - Fork 0
/
logout.php
63 lines (53 loc) · 1.92 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
<?php
require_once(SERVER_ROOT . 'include/defs.php.inc');
include(SERVER_ROOT . 'views/header.php');
/* unset all the cookies */
/* this sets the cookie expiration date to one hour ago, PHP's official way of deleting it */
setcookie('first_name', "", time() - 3600);
setcookie('last_name', "", time() - 3600);
setcookie('email_address', "", time() - 3600);
setcookie('username', "", time() - 3600);
setcookie('birthdate', "", time() - 3600);
setcookie('first_login', "", time() - 3600);
?>
<!-- Begin Menu bar -->
<div class="menu_bar">
<a href="index.php">
<img src="images/metube.png" alt="MeTube">
</a>
<form id='search_form' action='index.php' >
<input type='text' name="search" placeholder="Enter keywords..." >
<input type='submit' value="Search" >
</form>
<form id='signin_form' action='signin.php'>
<input type='submit' id='signin_button' name='Signin' value='Signin' />
</form>
</div>
<!-- End Menu Bar -->
<div class="body_container">
<div class="sort_header">
</div>
<div class="nav_bar">
<ul>
<li><a href="index.php">All</a></li>
<li><a href="?activism=true">Activism</a></li>
<li><a href="?comedy=true">Comedy</a></li>
<li><a href="?entertainment=true">Entertainment</a></li>
<li><a href="?music=true">Music</a></li>
<li><a href="?news=true">News</a></li>
<li><a href="?religous=true">Religious</a></li>
<li><a href="?science=true">Science</a></li>
<li><a href="?sports=true">Sports</a></li>
<li><a href="?tutorials=true">Tutorials</a></li>
</ul>
</div>
<div class="media_list">
<center><h2>
<b>You have successfully signed out.</b><br /><br />
<a href="index.php">Back to Home</a>
</h2></center>
</div>
</div>
<?php
include(SERVER_ROOT . '/views/footer.php');
?>