cvs: phpweb /pear index.php
| From: | Hojtsy Gabor | Date: | Fri, 27 Jul 2001 12:47:16 +0000 |
| Subject: | cvs: phpweb /pear index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-5743@lists.php.net to get a copy of this message | ||
goba Fri Jul 27 08:47:16 2001 EDT
Modified files:
/phpweb/pear index.php
Log:
/pear redirects to the manual, as /include, according to
our standards
Index: phpweb/pear/index.php
diff -u phpweb/pear/index.php:1.2 phpweb/pear/index.php:1.3
--- phpweb/pear/index.php:1.2 Mon Jul 9 04:04:50 2001
+++ phpweb/pear/index.php Fri Jul 27 08:47:15 2001
@@ -1,2 +1,16 @@
-<?php header("Location: http://pear.php.net/"); ?>
+<?php
+// This page tries to find the manual page for PEAR
+// because people can access that page by using
+// http://www.php.net/pear as a REQUEST_URI
+
+require_once 'prepend.inc';
+require_once 'manual-lookup.inc';
+
+$file = find_manual_page(default_language(), "pear");
+
+if ($file) {
+ header("Location: $file");
+} else { header("Location: /"); }
+
+?>
\ No newline at end of file