cvs: phpweb /error index.php
| From: | Sander Roobol | Date: | Wed, 14 Aug 2002 09:32:04 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-11952@lists.php.net to get a copy of this message | ||
sander Wed Aug 14 05:32:04 2002 EDT
Modified files:
/phpweb/error index.php
Log:
Override 404's on /manual/*/print/* (part of #18896) and a minor typo.
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.77 phpweb/error/index.php:1.78
--- phpweb/error/index.php:1.77 Tue Aug 13 07:24:07 2002
+++ phpweb/error/index.php Wed Aug 14 05:32:04 2002
@@ -60,7 +60,7 @@
header("Location: $url");
- print "<html><title>Redirect to $urle</title><body>";
+ print "<html><title>Redirect to $url</title><body>";
print "<a href=\"".$url."\">Please click
here</a></body></html>";
exit;
}
@@ -80,6 +80,8 @@
// Printer friendly manual page handling. It's important that this is included,
// and not redirected, as this way all relative URL's will retain their meaning
// and point to pages relative to the print dir (which is nonexistent)
+// We need to override the 404 status in that case.
+header('HTTP/1.1 200 OK');
if (preg_match("!^manual/(\\w+)/(print|printwn)/(.+\\.php)$!", $uri, $parts)) {
$PRINT_PAGE = TRUE;
if ($parts[2] == "printwn") { $PRINT_NOTES = TRUE; }