From 18a8041cac4ef0e29b5afe0176c78cea5c9f20dd Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Thu, 2 Jun 2011 18:21:43 -0700 Subject: Changed to soft deletion and added 404 pages. --- htdocs/postings.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'htdocs/postings.php') diff --git a/htdocs/postings.php b/htdocs/postings.php index ee178cb..a40cfb7 100644 --- a/htdocs/postings.php +++ b/htdocs/postings.php @@ -66,8 +66,14 @@ foreach ($post->getImages() as $imgid) { require_once "src/footer.inc.php"; function errorNotFound() { - // TODO: Better 404 error - echo "404"; + // Get the 404 page + $page = Page::getByUrl('404'); + if ($page) { + echo $page->getContent(); + } else { + echo "Error: Page not found."; + } + require_once "src/footer.inc.php"; exit; } -- cgit v1.2.3