cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Mon, 08 Jul 2002 19:56:43 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-11208@lists.php.net to get a copy of this message | ||
goba Mon Jul 8 15:56:43 2002 EDT
Modified files:
/phpweb/error index.php
Log:
A) It's nice to put the newsfile redirection test to an elseif part
B) The URI is already lowercased some lines before this, so do not need
to test for NEWS
C) A news.php file is in the phpweb root, so there is a name conflict
(PHP files are also accessible without their extension to ease the
acccess of downloads, links, etc) => shortcut changed to php4news
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.64 phpweb/error/index.php:1.65
--- phpweb/error/index.php:1.64 Mon Jul 8 15:24:35 2002
+++ phpweb/error/index.php Mon Jul 8 15:56:43 2002
@@ -169,14 +169,14 @@
} elseif ($function == "blog") {
header("Location: http://$SERVER_NAME/manual/$lang/build.log.gz");
exit;
-} else if (in_array($function, array("dochowto", "phpdochowto"))) {
+} elseif (in_array($function, array("dochowto", "phpdochowto"))) {
header("Location: http://cvs.php.net/co.php/phpdoc/howto/howto.html.tar.gz");
exit;
}
// ============================================================================
-// Link to NEWS
-if (in_array($function, array("NEWS", "news"))) {
+// Link to PHP4 NEWS file
+elseif ($function == "php4news") {
header("Location: http://cvs.php.net/co.php/php4/NEWS");
exit;
}