From 4abea1ff10cc1376308ba590ee4e97091fc997e1 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Fri, 17 Jun 2011 10:45:18 -0700 Subject: Added delete post. Fixed logout --- htdocs/moderate/src/header.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'htdocs/moderate/src/header.inc.php') diff --git a/htdocs/moderate/src/header.inc.php b/htdocs/moderate/src/header.inc.php index 901344a..f0abbe1 100644 --- a/htdocs/moderate/src/header.inc.php +++ b/htdocs/moderate/src/header.inc.php @@ -6,6 +6,12 @@ if (!isset($_SESSION['currentUser'])) { exit(); } +if (isset($_GET['logout'])) { + unset($_SESSION['currentUser']); + header('Location: ' . buildUrl()); + exit(); +} + ?> @@ -58,7 +64,7 @@ if (!isset($_SESSION['currentUser'])) {
  • Account Settings
  • -
  • Logout
  • +
  • Logout
  • -- cgit v1.2.3