cvs: phpweb /error index.php

From: Date: Sat, 24 May 2003 11:30:34 +0000
Subject: cvs: phpweb /error index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-18008@lists.php.net to get a copy of this message
goba Sat May 24 07:30:34 2003 EDT Modified files: /phpweb/error index.php Log: Include the manual page instead of redirecting to it. My local test showed that it works perfectly. Note that it is important that a 200 OK status is returned, and that the possible multiple includes are handled with include_once (in shared-manual.inc too!) Index: phpweb/error/index.php diff -u phpweb/error/index.php:1.116 phpweb/error/index.php:1.117 --- phpweb/error/index.php:1.116 Fri May 23 09:35:56 2003 +++ phpweb/error/index.php Sat May 24 07:30:34 2003 @@ -1,6 +1,6 @@ <?php -// $Id: index.php,v 1.116 2003/05/23 13:35:56 iliaa Exp $ +// $Id: index.php,v 1.117 2003/05/24 11:30:34 goba Exp $ /* @@ -206,7 +206,11 @@ // Try to find the page using the preferred language as a manual page include_once "manual-lookup.inc"; $try = find_manual_page($LANG, $URI); -if ($try) { mirror_redirect($try); } +if ($try) { + header('Status: 200 OK'); + include_once $_SERVER['DOCUMENT_ROOT'] . $try; + exit; +} // ============================================================================ // If no match was found till this point, the last action is to start a

« previous php.mirrors (#18008) next »