summaryrefslogtreecommitdiff
path: root/htdocs/moderate/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/moderate/index.php')
-rw-r--r--htdocs/moderate/index.php18
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');
?>