cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Fri, 07 Jun 2002 09:37:18 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-10706@lists.php.net to get a copy of this message | ||
goba Fri Jun 7 05:37:18 2002 EDT
Modified files:
/phpweb/error index.php
Log:
Adding support for a new experimental "print page" method
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.57 phpweb/error/index.php:1.58
--- phpweb/error/index.php:1.57 Thu Jun 6 21:11:39 2002
+++ phpweb/error/index.php Fri Jun 7 05:37:00 2002
@@ -75,6 +75,15 @@
// drop out leading slash
if ($uri[0] == "/") $uri = substr($uri,1);
+// 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)
+if (preg_match("!^manual/(\\w+)/print/(.php)$!", $uri, $parts)) {
+ $PRINT_PAGE = TRUE;
+ include "../manual/$parts[1]/$parts[2]";
+}
+
// shortcuts for PHP and manual pages
$uri_aliases = array (