cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Fri, 11 Apr 2003 15:04:26 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-16695@lists.php.net to get a copy of this message | ||
goba Fri Apr 11 11:04:26 2003 EDT
Modified files:
/phpweb/error index.php
Log:
Adding some get links for the doc howto and the downloads page
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.108 phpweb/error/index.php:1.109
--- phpweb/error/index.php:1.108 Sat Mar 1 14:16:12 2003
+++ phpweb/error/index.php Fri Apr 11 11:04:26 2003
@@ -1,6 +1,6 @@
<?php
-// $Id: index.php,v 1.108 2003/03/01 19:16:12 goba Exp $
+// $Id: index.php,v 1.109 2003/04/11 15:04:26 goba Exp $
/*
@@ -79,6 +79,17 @@
}
// ============================================================================
+// Some nice URLs for getting something for download
+if (preg_match("!^get/([^/]+)$", $URI, $what)) {
+ switch ($what[1]) {
+ case "php" : $URI = "downloads"; break;
+ case "dochowto" : // intentional
+ case "phpdochowto" : $URI = "getdochowto"; break;
+ }
+}
+
+
+// ============================================================================
// Nice URLs for download files, so wget works completely well with download links
if (preg_match("!^get/([^/]+)/from/([^/]+)(/mirror)?$!", $URI, $dlinfo)) {
@@ -105,6 +116,7 @@
# PHP page shortcuts
"download" => "downloads",
+ "getphp" => "downloads",
"documentation" => "docs",
"mailinglists" => "mailing-lists",
"mailinglist" => "mailing-lists",
@@ -156,6 +168,7 @@
"bugs" => "http://bugs.php.net/",
"bugstats" => "http://bugs.php.net/bugstats.php",
"phpdochowto" => "/manual/howto/index.html",
+ "getdochowto" => "http://cvs.php.net/co.php/phpdoc/howto/howto.html.tar.gz?p=1",
"rev" => "/manual/$LANG/revcheck.html.gz",
"blog" => "/manual/$LANG/build.log.gz",
"books" => "/books.php?type_lang=PHP_$LANG"