|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50826 - website/public_html/beta/users/history
From: daniel_james_at_[hidden]
Date: 2009-01-27 16:24:02
Author: danieljames
Date: 2009-01-27 16:24:02 EST (Tue, 27 Jan 2009)
New Revision: 50826
URL: http://svn.boost.org/trac/boost/changeset/50826
Log:
Use a minimal 404 page in minimal.php if the entry isn't found.
Text files modified:
website/public_html/beta/users/history/minimal.php | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
Modified: website/public_html/beta/users/history/minimal.php
==============================================================================
--- website/public_html/beta/users/history/minimal.php (original)
+++ website/public_html/beta/users/history/minimal.php 2009-01-27 16:24:02 EST (Tue, 27 Jan 2009)
@@ -3,9 +3,7 @@
$_history = new boost_feed(dirname(__FILE__) . '/../../feed/history.rss', '/users/history');
$_guid = basename($_SERVER["PATH_INFO"]);
if(!isset($_history->db[$_guid])) {
- require_once(dirname(__FILE__) . '/../../common/code/boost_error_page.php');
- error_page_404();
- exit(0);
+ header('HTTP/1.0 404 Not Found');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
@@ -19,8 +17,14 @@
</head>
<body>
+<?php if(!isset($_history->db[$_guid])) : ?>
+ <h2>404 Not Found</h2>
+
+ <p>The entry you requested could not be found.</p>
+<?php else : ?>
<h2><?php print $_history->db[$_guid]['title']; ?></h2>
<?php print $_history->db[$_guid]['description']; ?>
+<?php endif ?>
</body>
</html>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk