cvs: pearweb /public_html search.php
| From: | Martin Jansen | Date: | Sun, 16 Sep 2001 14:35:51 +0000 |
| Subject: | cvs: pearweb /public_html search.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-852@lists.php.net to get a copy of this message | ||
mj Sun Sep 16 10:35:51 2001 EDT
Modified files:
/pearweb/public_html search.php
Log:
* improved the error handling
Index: pearweb/public_html/search.php
diff -u pearweb/public_html/search.php:1.1 pearweb/public_html/search.php:1.2
--- pearweb/public_html/search.php:1.1 Fri Sep 14 16:10:52 2001
+++ pearweb/public_html/search.php Sun Sep 16 10:35:50 2001
@@ -2,8 +2,16 @@
/**
* Search interface for the PEAR website
*
- * $Id: search.php,v 1.1 2001/09/14 20:10:52 mj Exp $
+ * $Id: search.php,v 1.2 2001/09/16 14:35:50 mj Exp $
*/
+if (!isset($HTTP_POST_VARS['search_in'])) {
+ response_header("Search");
+ echo "<h2>Search</h2>\n";
+ echo "<font color=\"#990000\"><b>Please use the search system via
the search form above.</b></font>\n";
+ response_footer();
+ exit();
+}
+
switch ($HTTP_POST_VARS['search_in']) {
case "pear-dev" :
@@ -20,7 +28,9 @@
break;
default :
- response_header("Search");
+ response_header("Search");
+ echo "<h2>Search</h2>\n";
+ echo "<font color=\"#990000\"><b>Invalid search
target.</b></font>\n";
response_footer();
break;
}