Bug #3169: source.php3
| From: | jim at saca dot net | Date: | Tue, 11 Jan 2000 05:59:47 +0000 |
| Subject: | Bug #3169: source.php3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14481@lists.php.net to get a copy of this message | ||
From: jim@saca.net
Operating system: ALL
PHP version: 3.0.13
PHP Bug Type: Other
Bug description: source.php3
-*****************************************-
source.php3 will let you view ANY php3 file source.(at ANY url)
You may want to take a look as to WHY this is a problem.
(http://www.php3.net/source.php3page_url=/bugs.php.net/bugs.php3)
follows part of the page as proof.
=======================================================
Source of: /bugs.php.net/bugs.php3
IMPORTANT: There are some restrictions on your use of the code and graphics on this site.
You should read the copyright.
--------------------------------------------------------------------------------
<?
/* See the end of the script for the table layout. */
require( "shared.inc");
if (strstr($MYSITE, "bugs.php.net")) {
$dbhost= "localhost";
$dbuser= "nobody";
$dbpwd= "";
} else if (strstr($MYSITE, "il.php.net")) {
$dbhost= "bugs.php.net";
$dbuser= "bourbon";
$dbpwd= "";
} else {
Header( "Location: http://bugs.php.net");
exit;
}
$DISABLE_KICKOUTS=1;
commonHeader( "Bug Reporting");
echo "<font size=-1>\n";
$destination = "php-dev@lists.php.net";
#$destination = "rasmus@lerdorf.on.ca";
function indent($string, $prefix) {
$string = ereg_replace(13, "", $string); /* get rid of Ctrl-M */
return $prefix . ereg_replace( "\n", "\n$prefix", $string) .
"\n";
}
function wrap($text,$margin=72) {