#19571 [Opn->Csd]: bugs.php.net return page source code
| From: | imajes@php.net | Date: | Tue, 24 Sep 2002 11:46:26 +0000 |
| Subject: | #19571 [Opn->Csd]: bugs.php.net return page source code | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-12751@lists.php.net to get a copy of this message | ||
ID: 19571
Updated by: imajes@php.net
Reported By: duracell@apinc.org
-Status: Open
+Status: Closed
Bug Type: Website problem
PHP Version: 4.2.3
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
This may happen when someone is working on the machine.
Previous Comments:
------------------------------------------------------------------------
[2002-09-24 04:09:49] duracell@apinc.org
Sometimes, bugs.php.net return the source code of the page ...
(verrrryyyy bad bug !)
<?php /* vim: set noet ts=4 sw=4: : */
require_once 'prepend.inc';
if (isset($MAGIC_COOKIE) && !isset($user) && !isset($pw)) {
list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE));
}
if ($search_for && !preg_match("/\\D/",trim($search_for))) {
$x = $pw ? ($user ? "&edit=1" : "&edit=2") : "";
header("Location: bug.php?id=$search_for$x");
exit;
}
commonHeader("Search");
$errors = array();
$warnings = array();
if (isset($cmd) && $cmd == "display") {
@mysql_pconnect("localhost","XXXXX","")
or die("Unable to connect to SQL server.");
@mysql_select_db("php3");
if (!$bug_type) $bug_type = "Any";
$query = "SELECT SQL_CALC_FOUND_ROWS *,"
. "TO_DAYS(NOW())-TO_DAYS(ts2) AS unchanged FROM bugdb ";
if($bug_type=="Any") {
$where_clause = "WHERE bug_type != 'Feature/Change Request'";
} else {
$where_clause = "WHERE bug_type = '$bug_type'";
}
/* Treat assigned, analyzed, critical and verified bugs as open */
if ($status == "Open") {
$where_clause .= " AND (status='Open' OR status='Assigned' OR
status='Analyzed' OR status='Critical' OR status='Verified')";
} elseif ($status == "Old Feedback") {
$where_clause .= " AND status='Feedback' AND
TO_DAYS(NOW())-TO_DAYS(ts2)>60";
} elseif ($status == "Fresh") {
$where_clause .= " AND status != 'Closed' AND status !=
'Duplicate' AND status != 'Bogus' AND TO_DAYS(NOW())-TO_DAYS(ts2) <
30";
} elseif ($status == "Stale") {
$where_clause .= " AND status != 'Closed' AND status !=
'Duplicate' AND status != 'Bogus' AND TO_DAYS(NOW())-TO_DAYS(ts2) >
30";
} elseif ($status && $status != "All") {
$where_clause .= " AND status='$status'";
}
if (strlen($search_for)) {
list($sql_search, $ignored) =
format_search_string($search_for);
$where_clause .= $sql_search;
if (count($ignored) > 0 ) {
array_push($warnings, "The following words were ignored: "
. htmlentities(implode(', ', array_unique($ignored))));
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19571&edit=1