cvs: phpweb /bin index.php
| From: | Jim Winstead | Date: | Mon, 24 Sep 2001 02:48:45 +0000 |
| Subject: | cvs: phpweb /bin index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6649@lists.php.net to get a copy of this message | ||
jimw Sun Sep 23 22:48:45 2001 EDT
Added files:
/phpweb/bin index.php
Log:
don't allow viewing bin directory
Index: phpweb/bin/index.php
+++ phpweb/bin/index.php
<?php
// This page tries to find the manual page for "bin"
// because people can access that page by using
// http://www.php.net/bin as a REQUEST_URI
require_once 'prepend.inc';
require_once 'manual-lookup.inc';
$file = find_manual_page(default_language(), "bin");
if ($file) {
header("Location: $file");
} else { header("Location: /"); }
?>