cvs: pearweb /include pear-format-html.php /public_html search.php
| From: | Martin Jansen | Date: | Mon, 07 Jun 2004 19:04:41 +0000 |
| Subject: | cvs: pearweb /include pear-format-html.php /public_html search.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-20322@lists.php.net to get a copy of this message | ||
mj Mon Jun 7 15:04:41 2004 EDT
Modified files:
/pearweb/include pear-format-html.php
/pearweb/public_html search.php
Log:
* Add ability to find developers from search bar.
Patch by: danielc
http://cvs.php.net/diff.php/pearweb/include/pear-format-html.php?r1=1.103&r2=1.104&ty=u
Index: pearweb/include/pear-format-html.php
diff -u pearweb/include/pear-format-html.php:1.103 pearweb/include/pear-format-html.php:1.104
--- pearweb/include/pear-format-html.php:1.103 Thu May 20 09:49:04 2004
+++ pearweb/include/pear-format-html.php Mon Jun 7 15:04:41 2004
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: pear-format-html.php,v 1.103 2004/05/20 13:49:04 pajoye Exp $
+ $Id: pear-format-html.php,v 1.104 2004/06/07 19:04:41 mj Exp $
*/
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler');
@@ -199,6 +199,7 @@
<select name="search_in" class="small">
<option value="packages">Packages</option>
<option value="site">This site (using Google)</option>
+ <option value="developers">Developers</option>
<option value="pear-dev">Developer mailing list</option>
<option value="pear-general">General mailing list</option>
<option value="pear-cvs">CVS commits mailing list</option>
http://cvs.php.net/diff.php/pearweb/public_html/search.php?r1=1.7&r2=1.8&ty=u
Index: pearweb/public_html/search.php
diff -u pearweb/public_html/search.php:1.7 pearweb/public_html/search.php:1.8
--- pearweb/public_html/search.php:1.7 Sun Mar 14 06:37:48 2004
+++ pearweb/public_html/search.php Mon Jun 7 15:04:41 2004
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: search.php,v 1.7 2004/03/14 11:37:48 mj Exp $
+ $Id: search.php,v 1.8 2004/06/07 19:04:41 mj Exp $
*/
if (!isset($_POST['search_in'])) {
@@ -32,6 +32,11 @@
header('Location:
/package-search.php?pkg_name='.urlencode($_POST['search_string']).'&bool=AND&submit=Search');
exit;
break;
+
+ case "developers":
+ // XXX: Enable searching for names instead of handles
+ localRedirect('/user/' . urlencode($_POST['search_string']));
+ exit;
case "pear-dev" :
case "pear-cvs" :