cvs: phpweb /pear index.php

From: Date: Wed, 08 Jan 2003 19:17:51 +0000
Subject: cvs: phpweb /pear index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-14876@lists.php.net to get a copy of this message
goba Wed Jan 8 14:17:51 2003 EDT Modified files: /phpweb/pear index.php Log: Simulate a /pear shortcut call here (as this page may come up for some other requests too, like /pear/index.php or /pear/index). Index: phpweb/pear/index.php diff -u phpweb/pear/index.php:1.4 phpweb/pear/index.php:1.5 --- phpweb/pear/index.php:1.4 Fri Dec 28 19:10:55 2001 +++ phpweb/pear/index.php Wed Jan 8 14:17:50 2003 @@ -1,20 +1,8 @@ <?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 +// Simulate a /pear shortcut call +include_once 'prepend.inc'; +$REQUEST_URI = '/pear'; +include_once "$DOCUMENT_ROOT/error/index.php"; -require_once 'prepend.inc'; -require_once 'manual-lookup.inc'; - -$file = find_manual_page(default_language(), "pear"); - -if ($file) { -header("Location: http://".$SERVER_NAME.$file); -exit; -} -else { -header("Location: http://".$SERVER_NAME."/"); -exit; -} -?> \ No newline at end of file +?>

« previous php.mirrors (#14876) next »