diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-06-17 10:45:18 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-06-17 10:45:18 -0700 |
commit | 4abea1ff10cc1376308ba590ee4e97091fc997e1 (patch) | |
tree | 4be8a013cccda8350d9367f843a41b4b69717971 /htdocs/moderate/src/header.inc.php | |
parent | bd90538bb72812e2f770a2dbfe5357b96df08629 (diff) |
Added delete post. Fixed logout
Diffstat (limited to 'htdocs/moderate/src/header.inc.php')
-rw-r--r-- | htdocs/moderate/src/header.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
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(); +} + ?><!DOCTYPE html> <html> <head> @@ -58,7 +64,7 @@ if (!isset($_SESSION['currentUser'])) { <li><a href="<?= buildUrl('moderate/account.php') ?>"> Account Settings</a></li> - <li><a href="">Logout</a></li> + <li><a href="<?= buildUrl('moderate/?logout') ?>">Logout</a></li> </ul> </div> |