From 0c72d673a9056c753503e6b2a8d4fbf3aba75a95 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Wed, 25 May 2011 11:32:49 -0700 Subject: Moderation workflow is.. working --- htdocs/moderate/src/header.inc.php | 83 ++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 48 deletions(-) (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 4310009..fc8a06f 100644 --- a/htdocs/moderate/src/header.inc.php +++ b/htdocs/moderate/src/header.inc.php @@ -1,64 +1,51 @@ fetchAssocRow($query); - - if ($result) { - $SESSION['currentUser'] = $result; - } - - } +// Require Authentication +if (!isset($_SESSION['currentUser'])) { + header('Location: ' . $CONFIG['urlroot'].'/moderate/login.php'); + exit(); } ?> - - - - + + + -

Foursquare Admin Panel

-