cvs: phpweb /backend index.php /bin index.php /distributions index.php /gifs index.php /logos index.php

From: Date: Sat, 11 Jan 2003 13:05:40 +0000
Subject: cvs: phpweb /backend index.php /bin index.php /distributions index.php /gifs index.php /logos index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-14943@lists.php.net to get a copy of this message
goba Sat Jan 11 08:05:40 2003 EDT Added files: /phpweb/backend index.php /phpweb/gifs index.php /phpweb/logos index.php Modified files: /phpweb/bin index.php /phpweb/distributions index.php Log: Look a bit more professional, and hide all directory listings, by simulating some REQUEST_URI for error/index.php (have all redirections at one place). Index: phpweb/bin/index.php diff -u phpweb/bin/index.php:1.2 phpweb/bin/index.php:1.3 --- phpweb/bin/index.php:1.2 Fri Dec 28 19:10:54 2001 +++ phpweb/bin/index.php Sat Jan 11 08:05:40 2003 @@ -1,20 +1,8 @@ <?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 +// Simulate a /bin shortcut call +include_once 'prepend.inc'; +$REQUEST_URI = '/bin'; +include_once "$DOCUMENT_ROOT/error/index.php"; -require_once 'prepend.inc'; -require_once 'manual-lookup.inc'; - -$file = find_manual_page(default_language(), "bin"); - -if ($file) { -header("Location: http://".$SERVER_NAME.$file); -exit; -} -else { -header("Location: http://".$SERVER_NAME."/"); -exit; -} ?> Index: phpweb/distributions/index.php diff -u phpweb/distributions/index.php:1.3 phpweb/distributions/index.php:1.4 --- phpweb/distributions/index.php:1.3 Fri Dec 28 19:10:55 2001 +++ phpweb/distributions/index.php Sat Jan 11 08:05:40 2003 @@ -1,6 +1,8 @@ <?php -$url = "http://".$SERVER_NAME."/downloads.php"; -header("Location: $url"); -exit; -?> +// Simulate a /downloads shortcut call +include_once 'prepend.inc'; +$REQUEST_URI = '/downloads'; +include_once "$DOCUMENT_ROOT/error/index.php"; + +?> Index: phpweb/backend/index.php +++ phpweb/backend/index.php <?php // Simulate a /backend shortcut call include_once 'prepend.inc'; $REQUEST_URI = '/backend'; include_once "$DOCUMENT_ROOT/error/index.php"; ?> Index: phpweb/gifs/index.php +++ phpweb/gifs/index.php <?php // Simulate a /gifs shortcut call include_once 'prepend.inc'; $REQUEST_URI = '/gifs'; include_once "$DOCUMENT_ROOT/error/index.php"; ?> Index: phpweb/logos/index.php +++ phpweb/logos/index.php <?php // Simulate a /logos shortcut call include_once 'prepend.inc'; $REQUEST_URI = '/logos'; include_once "$DOCUMENT_ROOT/error/index.php"; ?>

« previous php.mirrors (#14943) next »