mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
/pear redirects to the manual, as /include, according to
our standards
This commit is contained in:
@@ -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: /"); }
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user