cvs: pearweb /public_html/bugs search.php

From: Date: Wed, 30 Jun 2004 00:29:04 +0000
Subject: cvs: pearweb /public_html/bugs search.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-21282@lists.php.net to get a copy of this message
dufuz Tue Jun 29 20:29:04 2004 EDT Modified files: /pearweb/public_html/bugs search.php Log: Should fix the issue of searching for pseudo-packages http://cvs.php.net/diff.php/pearweb/public_html/bugs/search.php?r1=1.42&r2=1.43&ty=u Index: pearweb/public_html/bugs/search.php diff -u pearweb/public_html/bugs/search.php:1.42 pearweb/public_html/bugs/search.php:1.43 --- pearweb/public_html/bugs/search.php:1.42 Tue Jun 29 14:12:33 2004 +++ pearweb/public_html/bugs/search.php Tue Jun 29 20:29:04 2004 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2004 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: search.php,v 1.42 2004/06/29 18:12:33 dufuz Exp $ + * @version $Id: search.php,v 1.43 2004/06/30 00:29:04 dufuz Exp $ */ /** @@ -218,7 +218,20 @@ $search_site = ''; } else { $search_site = $site; - $where_clause .= " AND packages.package_type = '".escapeSQL($search_site)."'"; + if (in_array('Bug System', $_GET['package_name'])) { + $pseudo[] = 'Bug System'; + } + if (in_array('Web Site', $_GET['package_name'])) { + $pseudo[] = 'Web Site'; + } + if (in_array('Documentation', $_GET['package_name'])) { + $pseudo[] = 'Documentation'; + } + if ($site == 'pear' && in_array('PEPr', $_GET['package_name'])) { + $pseudo[] = 'PEPr'; + } + $where_clause .= " AND packages.package_type = '".escapeSQL($search_site)."' + OR bugdb.package_name IN ('".join("', '", escapeSQL($pseudo)) . "')"; } @@ -278,6 +291,7 @@ if (stristr($query, ';')) { $errors[] = 'BAD HACKER!! No database cracking for you today!'; } else { + echo $query; $res =& $dbh->query($query); $rows = $res->numRows();

« previous php.pear.cvs (#21282) next »