cvs: phpweb / error.php

From: Date: Thu, 25 Dec 2003 16:26:39 +0000
Subject: cvs: phpweb / error.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-22708@lists.php.net to get a copy of this message
goba Thu Dec 25 11:26:39 2003 EDT Modified files: /phpweb error.php Log: fix page aliases Index: phpweb/error.php diff -u phpweb/error.php:1.17 phpweb/error.php:1.18 --- phpweb/error.php:1.17 Wed Dec 24 17:56:09 2003 +++ phpweb/error.php Thu Dec 25 11:26:39 2003 @@ -1,6 +1,6 @@ <?php -// $Id: error.php,v 1.17 2003/12/24 22:56:09 jacques Exp $ +// $Id: error.php,v 1.18 2003/12/25 16:26:39 goba Exp $ /* @@ -134,6 +134,9 @@ exit; } +// Work with lowercased URI from now +$URI = strtolower($URI); + // ============================================================================ // Define shortcuts for PHP files, manual pages and external redirects $uri_aliases = array ( @@ -180,12 +183,12 @@ "icap" => "mcal", // mcal is the successor of icap "news.php" => "news-2003", // BC - "README.mirror" => "mirroring", // BC - "ZEND_CHANGES.txt" => "zend-engine-2.php", // BC - "zend2_example.phps" => "zend-engine-2.php", // BC - "ZEND_CHANGES_PHP_5_0_0b2.txt" => "zend-engine-2.php", // BC - "NEWS_PHP_5_0_0b2.txt" => "changelog-5", // BC - "NEWS_PHP_5_0_0b3.txt" => "changelog-5", // BC + "readme.mirror" => "mirroring", // BC + "zend_changes.txt" => "zend-engine-2", // BC + "zend2_example.phps" => "zend-engine-2", // BC + "zend_changes_php_5_0_0b2.txt" => "zend-engine-2", // BC + "news_php_5_0_0b2.txt" => "ChangeLog-5", // BC + "news_php_5_0_0b3.txt" => "ChangeLog-5", // BC "manual/about-notes.php" => "manual/add-note", // BC @@ -206,24 +209,13 @@ "rev" => "/manual/$LANG/revcheck.html.gz", "blog" => "/manual/$LANG/build.log.gz", "functions.js.txt" => "http://cvs.php.net/cvs.php/phpdoc/scripts/quickref", - "changelog-5" => "/ChangeLog-5.php", - "zend-engine-2.php" => "/zend-engine-2.php" ); // ============================================================================ // "Rewrite" the URL, if it was a shortcut - -// Work with lowercased URI from now -//$URI = strtolower($URI); - if (isset($uri_aliases[$URI])) { - $NEWURI = $uri_aliases[$URI]; -} - -$URI = strtolower($URI); -if (isset($NEWURI)) { - $URI = $NEWURI; + $URI = $uri_aliases[$URI]; } // ============================================================================

« previous php.mirrors (#22708) next »