cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Sat, 03 Aug 2002 13:03:53 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-11702@lists.php.net to get a copy of this message | ||
goba Sat Aug 3 09:03:53 2002 EDT
Modified files:
/phpweb/error index.php
Log:
Adding first stage support for print with notes [printwn] pages
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.74 phpweb/error/index.php:1.75
--- phpweb/error/index.php:1.74 Sat Aug 3 08:21:16 2002
+++ phpweb/error/index.php Sat Aug 3 09:03:53 2002
@@ -80,9 +80,10 @@
// 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)) {
+if (preg_match("!^manual/(\\w+)/(print|printwn)/(.+\\.php)$!", $uri, $parts)) {
$PRINT_PAGE = TRUE;
- include "../manual/$parts[1]/$parts[2]";
+ if ($parts[2] == "printwn") { $PRINT_NOTES = TRUE; }
+ include "../manual/$parts[1]/$parts[3]";
exit;
}
@@ -94,8 +95,9 @@
}
// The index file needs to be handled in a special way
-elseif (preg_match("!^manual/(\\w+)/(print|html)(/)?$!", $uri, $parts)) {
+elseif (preg_match("!^manual/(\\w+)/(print|printwn|html)(/)?$!", $uri, $parts)) {
$PRINT_PAGE = TRUE;
+ if ($parts[2] == "printwn") { $PRINT_NOTES = TRUE; }
include "../manual/$parts[1]/index.php";
exit;
}