cvs: pearweb /public_html/bugs search.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 06 Apr 2008 21:30:29 +0000 |
| Subject: | cvs: pearweb /public_html/bugs search.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-7446@lists.php.net to get a copy of this message | ||
dufuz Sun Apr 6 21:30:29 2008 UTC
Modified files:
/pearweb/public_html/bugs search.php
Log:
Kill coupel of SERVER globals and add the boolean_search variable back in
http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/search.php?r1=1.103&r2=1.104&diff_format=u
Index: pearweb/public_html/bugs/search.php
diff -u pearweb/public_html/bugs/search.php:1.103 pearweb/public_html/bugs/search.php:1.104
--- pearweb/public_html/bugs/search.php:1.103 Wed Mar 26 21:46:19 2008
+++ pearweb/public_html/bugs/search.php Sun Apr 6 21:30:29 2008
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: search.php,v 1.103 2008/03/26 21:46:19 dufuz Exp $
+ * @version $Id: search.php,v 1.104 2008/04/06 21:30:29 dufuz Exp $
*/
// Obtain common includes
@@ -46,7 +46,7 @@
unset($newrequest['PHPSESSID']);
}
response_header('Bugs :: Search', false, ' <link rel="alternate"
type="application/rdf+xml" title="RSS feed" href="http://' .
- htmlspecialchars($_SERVER['HTTP_HOST']) . '/bugs/rss/search.php?' .
http_build_query($_REQUEST) . '" />
+ PEAR_CHANNELNAME . '/bugs/rss/search.php?' . http_build_query($_REQUEST) .
'" />
');
$warnings = $errors = array();
@@ -69,6 +69,7 @@
$maintain = !empty($_GET['maintain']) ? $_GET['maintain'] : '';
$bug_type = (!empty($_GET['bug_type']) && $_GET['bug_type'] !=
'All') ? $_GET['bug_type'] : '';
$boolean_search = isset($_GET['boolean']) ? (int)$_GET['boolean'] : 0;
+define('BOOLEAN_SEARCH', $boolean);
$package_name = (isset($_GET['package_name']) &&
is_array($_GET['package_name'])) ? $_GET['package_name'] : array();
$package_nname = (isset($_GET['package_nname']) &&
is_array($_GET['package_nname'])) ? $_GET['package_nname'] : array();
@@ -360,8 +361,7 @@
}
}
- $link = htmlspecialchars($_SERVER['PHP_SELF']) .
- '?cmd=display' .
+ $link = 'search.php?cmd=display' .
$package_name_string .
$package_nname_string .
'&search_for=' . urlencode($search_for) .
@@ -441,7 +441,7 @@
echo '<br /><a
href="bug.php?id='.$row['id'].'&edit=1">(edit)</a></td>'
. "\n";
/* Date */
- echo ' <td
align="center">'.format_date(strtotime($row['ts1'])).'</td>'
. "\n";
+ echo ' <td
align="center">'.format_date(strtotime($row['ts1']),
'Y-m-d').'</td>' . "\n";
if ($package_count !== 1) {
$pck = htmlspecialchars($row['package_name']);
echo ' <td><a
href="/package/'.$pck.'">'.$pck.'</a></td>' .
"\n";
@@ -474,7 +474,7 @@
report_error($warnings, 'warnings', 'WARNING:');
?>
-<form id="asearch" method="get" action="<?php echo
htmlspecialchars($_SERVER['PHP_SELF']) ?>">
+<form id="asearch" method="get" action="search.php">
<table id="primary">
<tr valign="top">
<th>Find bugs</th>