cvs: php-bugs-web / search-howto.php search.php /rss search.php

From: Date: Wed, 04 Apr 2007 07:22:16 +0000
Subject: cvs: php-bugs-web / search-howto.php search.php /rss search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-35071@lists.php.net to get a copy of this message
philip Wed Apr 4 07:22:16 2007 UTC Modified files: /php-bugs-web search-howto.php search.php /php-bugs-web/rss search.php Log: Default to 'all search terms required', closes bug #40697 http://cvs.php.net/viewvc.cgi/php-bugs-web/search-howto.php?r1=1.1&r2=1.2&diff_format=u Index: php-bugs-web/search-howto.php diff -u php-bugs-web/search-howto.php:1.1 php-bugs-web/search-howto.php:1.2 --- php-bugs-web/search-howto.php:1.1 Mon Jun 30 22:09:10 2003 +++ php-bugs-web/search-howto.php Wed Apr 4 07:22:15 2007 @@ -40,8 +40,8 @@ by a space. The searched database fields are: author email, subject, and description. Minimum term length is three characters. There are three types of searches: <ul> - <li><i>any</i> : (default) One or more (any) of the search terms may be present.</li> - <li><i>all</i> : All search terms are required.</li> + <li><i>all</i> : (default) All search terms are required.</li> + <li><i>any</i> : One or more (any) of the search terms may be present.</li> <li><i>raw</i> : Allows full use of MySQL's <a href="http://www.mysql.com/doc/en/Fulltext_Search.html">FULLTEXT</a> boolean search operators.</li> http://cvs.php.net/viewvc.cgi/php-bugs-web/search.php?r1=1.66&r2=1.67&diff_format=u Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.66 php-bugs-web/search.php:1.67 --- php-bugs-web/search.php:1.66 Thu Oct 5 12:59:54 2006 +++ php-bugs-web/search.php Wed Apr 4 07:22:15 2007 @@ -14,7 +14,8 @@ $errors = array(); $warnings = array(); -define('BOOLEAN_SEARCH', @intval($boolean)); +$boolean = isset($_REQUEST['boolean']) ? (int) $_REQUEST['boolean'] : 1; +define('BOOLEAN_SEARCH', $boolean); if (isset($cmd) && $cmd == "display") { @mysql_connect("localhost","nobody","") http://cvs.php.net/viewvc.cgi/php-bugs-web/rss/search.php?r1=1.6&r2=1.7&diff_format=u Index: php-bugs-web/rss/search.php diff -u php-bugs-web/rss/search.php:1.6 php-bugs-web/rss/search.php:1.7 --- php-bugs-web/rss/search.php:1.6 Sun Jan 7 10:12:32 2007 +++ php-bugs-web/rss/search.php Wed Apr 4 07:22:15 2007 @@ -31,6 +31,9 @@ $warnings = array(); /* Criteria */ +$boolean = isset($_REQUEST['boolean']) ? (int) $_REQUEST['boolean'] : 1; +define('BOOLEAN_SEARCH', $boolean); + if (isset($_REQUEST['bug_type']) && is_array($_REQUEST['bug_type']) && count($_REQUEST['bug_type']) > 0) {

« previous php.mirrors (#35071) next »