cvs: phpweb /error index.php

From: Date: Wed, 03 Jul 2002 01:03:45 +0000
Subject: cvs: phpweb /error index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-11121@lists.php.net to get a copy of this message
jimw Tue Jul 2 21:03:45 2002 EDT Modified files: /phpweb/error index.php Log: make it so any old links to manual/*/html will still work Index: phpweb/error/index.php diff -u phpweb/error/index.php:1.61 phpweb/error/index.php:1.62 --- phpweb/error/index.php:1.61 Fri Jun 7 09:31:09 2002 +++ phpweb/error/index.php Tue Jul 2 21:03:45 2002 @@ -79,11 +79,11 @@ // 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|html)/(.+\\.php)$!", $uri, $parts)) { $PRINT_PAGE = TRUE; - include "../manual/$parts[1]/$parts[2]"; + include "../manual/$parts[1]/$parts[3]"; exit; -} elseif (preg_match("!^manual/(\\w+)/print(/)?$!", $uri, $parts)) { +} elseif (preg_match("!^manual/(\\w+)/(print|html)(/)?$!", $uri, $parts)) { $PRINT_PAGE = TRUE; include "../manual/$parts[1]/index.php"; exit;

« previous php.mirrors (#11121) next »