diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-05-25 11:32:49 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-05-25 11:32:49 -0700 |
commit | 0c72d673a9056c753503e6b2a8d4fbf3aba75a95 (patch) | |
tree | 94d9ef802da3f4fa0b3a00fd909a576fc63ed844 /htdocs/moderate/index.php | |
parent | a39f9512f0efd3ec3e0a31df656e25dd3f824f6d (diff) |
Moderation workflow is.. working
Diffstat (limited to 'htdocs/moderate/index.php')
-rw-r--r-- | htdocs/moderate/index.php | 18 |
1 files changed, 7 insertions, 11 deletions
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'); ?> -<h2>Welcome</h2> - <?php // List posts to be approved @@ -34,16 +27,19 @@ $posts->query(); if ($posts->valid()) { foreach ($posts as $id => $post) { - printf("<div class=\"post\"><p><a href=\"preview/%s.html\">%s</a></p>" + printf("<div class=\"post\"><p><a href=\"%s/postings/%s.html?moderate\">%s</a></p>" . "%s <a href=\"mailto:%s\">%s</a></div>", - $id, $post->getName(), $post->getCreated(), $post->getEmail(), $post->getEmail()); + $GLOBALS['CONFIG']['urlroot'], + $id, $post->getName(), + $post->getCreated(), + $post->getEmail(), $post->getEmail()); } } else { echo "<p>No posts awaiting approval</p>"; } -require_once('footer.inc.php'); +require_once('src/footer.inc.php'); ?> |