-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmember-logout.php
More file actions
65 lines (45 loc) · 1.25 KB
/
member-logout.php
File metadata and controls
65 lines (45 loc) · 1.25 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
<?php ob_start(); ?>
<!DOCTYPE html>
<html>
<head>
<?php include("inc/meta.php"); ?>
<Title>
<?php include("inc/page-index.php"); ?>
</Title>
<?php include("inc/stylesheet.php"); ?>
<?php include("inc/head.php"); ?>
</head>
<body>
<?php include("inc/background-image.php"); ?>
<div id="container">
<?php include("inc/header.php"); ?>
<?php include("inc/widemenu.php"); ?>
<?php include("inc/sidebar-left.php"); ?>
<div id="content">
<?php include("inc/plugin01.php"); ?>
<?php //
/* This is the logout page. It destroys the cookie. */
// Destroy the cookie, but only if it already exists:
if (isset($_COOKIE['Diggity'])) {
setcookie('Diggity', FALSE, time()-300);
}
// Destroy the cookie, but only if it already exists:
if (isset($_COOKIE['Email'])) {
setcookie('Email', FALSE, time()-300);
}
// Destroy the cookie, but only if it already exists:
if (isset($_COOKIE['Firstname'])) {
setcookie('Firstname', FALSE, time()-300);
}
// Print a message:
echo '<p><h2><p align="center"><font color="red">You are now logged out.</font></p></h2><p>';
?>
<?php include("inc/plugin02.php"); ?>
</div>
<?php include("inc/sidebar-right.php"); ?>
<?php include("inc/footer.php"); ?>
</div>
<?php include("inc/scripts.php"); ?>
</body>
</html>
<?php ob_end_flush(); ?>