cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Sun, 01 Dec 2002 13:17:40 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-13964@lists.php.net to get a copy of this message | ||
goba Sun Dec 1 08:17:40 2002 EDT
Modified files:
/phpweb/error index.php
Log:
Adding support for book quick URLs, like:
http://php.net/hu/books
To read hungarian books list ;)
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.83 phpweb/error/index.php:1.84
--- phpweb/error/index.php:1.83 Sun Nov 24 23:12:14 2002
+++ phpweb/error/index.php Sun Dec 1 08:17:40 2002
@@ -200,7 +200,8 @@
}
// ============================================================================
-// Quick access to revcheck output and build logs for various languages
+// Quick access to revcheck output, build logs, books for various languages and
+// the PHP Documentation Howto for backward compatibility
if ($function == "rev") {
header("Location: http://$SERVER_NAME/manual/$lang/revcheck.html.gz");
exit;
@@ -210,7 +211,9 @@
} elseif ($function == "phpdochowto") {
header("Location: http://$SERVER_NAME/manual/howto/index.html");
exit;
-}
+} elseif ($function == "books") {
+ header("Location: http://$SERVER_NAME/books.php?type_lang=PHP_$lang");
+}
// ============================================================================
// Try to find the page using this language as a manual page (lang is the language