|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-24 06:46 UTC] imajes@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 21:00:01 2025 UTC |
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)))); } }