cvs: phpweb /error index.php

From: Date: Fri, 03 Jan 2003 14:19:46 +0000
Subject: cvs: phpweb /error index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-14666@lists.php.net to get a copy of this message
goba Fri Jan 3 09:19:46 2003 EDT Modified files: /phpweb/error index.php Log: Use Status: instead of HTTP/1.1, because this does not imply any specific HTTP version number... Index: phpweb/error/index.php diff -u phpweb/error/index.php:1.92 phpweb/error/index.php:1.93 --- phpweb/error/index.php:1.92 Fri Jan 3 08:27:15 2003 +++ phpweb/error/index.php Fri Jan 3 09:19:46 2003 @@ -80,7 +80,7 @@ // We need to override the 404 status in that case. if (preg_match("!^manual/(\\w+)/(print|printwn)/(.+\\.php)$!", $uri, $parts) && @file_exists("../manual/$parts[1]/$parts[3]")) { - header('HTTP/1.1 200 OK'); + header('Status: 200 OK'); $PRINT_PAGE = TRUE; if ($parts[2] == "printwn") { $PRINT_NOTES = TRUE; } include "../manual/$parts[1]/$parts[3]"; @@ -90,7 +90,7 @@ // BC: for old HTML directory (.html extension was used in that) elseif (preg_match("!^manual/(\\w+)/html/(.+)\\.(html|php)$!", $uri, $parts) && @file_exists("../manual/$parts[1]/$parts[2].php")) { - header('HTTP/1.1 200 OK'); + header('Status: 200 OK'); $PRINT_PAGE = TRUE; include "../manual/$parts[1]/$parts[2].php"; exit; @@ -99,7 +99,7 @@ // The index file needs to be handled in a special way elseif (preg_match("!^manual/(\\w+)/(print|printwn|html)(/)?$!", $uri, $parts) && @file_exists("../manual/$parts[1]/index.php")) { - header('HTTP/1.1 200 OK'); + header('Status: 200 OK'); $PRINT_PAGE = TRUE; if ($parts[2] == "printwn") { $PRINT_NOTES = TRUE; } include "../manual/$parts[1]/index.php";

« previous php.mirrors (#14666) next »