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/index.php | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'htdocs/moderate/index.php') diff --git a/htdocs/moderate/index.php b/htdocs/moderate/index.php index 3c0c9ca..908c43b 100644 --- a/htdocs/moderate/index.php +++ b/htdocs/moderate/index.php @@ -10,17 +10,10 @@ require_once('../src/base.inc.php'); -if (!isset($_SESSION['currentUser'])) { - header('Location: ' . $CONFIG['urlroot'].'/moderate/login.php'); - exit(); -} - -require_once('header.inc.php'); +require_once('src/header.inc.php'); ?> -

Welcome

- query(); if ($posts->valid()) { foreach ($posts as $id => $post) { - printf("

%s

" + printf("

%s

" . "%s %s
", - $id, $post->getName(), $post->getCreated(), $post->getEmail(), $post->getEmail()); + $GLOBALS['CONFIG']['urlroot'], + $id, $post->getName(), + $post->getCreated(), + $post->getEmail(), $post->getEmail()); } } else { echo "

No posts awaiting approval

"; } -require_once('footer.inc.php'); +require_once('src/footer.inc.php'); ?> -- cgit v1.2.3