summaryrefslogtreecommitdiff
path: root/htdocs/postings.php
diff options
context:
space:
mode:
authorjesse <jesse@jesterpm.net>2011-05-27 11:57:02 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-05-27 11:57:02 -0700
commitb2a7cfb9b152dcad1333b92dde76af3a164af8f6 (patch)
tree9f3e8de88043fd3e4ed22c249abbf1372f66971b /htdocs/postings.php
parent7af236e2dea03ae3086f4d21e0ae1039c7ac3555 (diff)
Got image posting finished.
Diffstat (limited to 'htdocs/postings.php')
-rw-r--r--htdocs/postings.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/htdocs/postings.php b/htdocs/postings.php
index 5c3dd55..7550e18 100644
--- a/htdocs/postings.php
+++ b/htdocs/postings.php
@@ -50,9 +50,16 @@ if (isset($_GET['moderate'])) {
echo "<h2>". $post->getName() ."</h2>";
-echo "<p>". $post->getDescription() ."</p>";
+echo "<p>Date: ". date('r', $post->getTimestamp()) ."</p>";
+echo "<p class=\"desc\">".
+ str_replace("\n", '<br />', $post->getDescription())
+ ."</p>";
+foreach ($post->getImages() as $imgid) {
+ echo "<p><img src=\"". $GLOBALS['CONFIG']['urlroot']
+ . "/postimages/$imgid\" /></p>";
+}
require_once "src/footer.inc.php";