cvs: phpweb /include index.php

From: Date: Sat, 11 Jan 2003 12:40:05 +0000
Subject: cvs: phpweb /include index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-14940@lists.php.net to get a copy of this message
goba Sat Jan 11 07:40:05 2003 EDT Modified files: /phpweb/include index.php Log: Let the common URL handler choose the right page to redirect to... Index: phpweb/include/index.php diff -u phpweb/include/index.php:1.8 phpweb/include/index.php:1.9 --- phpweb/include/index.php:1.8 Fri Dec 28 19:10:55 2001 +++ phpweb/include/index.php Sat Jan 11 07:40:05 2003 @@ -1,20 +1,8 @@ <?php -// This page tries to find the manual page for "include" -// because people can access that page by using -// http://www.php.net/include as a REQUEST_URI +// Simulate a /include shortcut call +include_once 'prepend.inc'; +$REQUEST_URI = '/include'; +include_once "$DOCUMENT_ROOT/error/index.php"; -require_once 'prepend.inc'; -require_once 'manual-lookup.inc'; - -$file = find_manual_page(default_language(), "include"); - -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 (#14940) next »