cvs: pearweb /public_html search.php
| From: | Martin Jansen | Date: | Sun, 14 Mar 2004 11:37:49 +0000 |
| Subject: | cvs: pearweb /public_html search.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-17386@lists.php.net to get a copy of this message | ||
mj Sun Mar 14 06:37:49 2004 EDT
Modified files:
/pearweb/public_html search.php
Log:
* Switching from $HTTP_POST_VARS to $_POST
http://cvs.php.net/diff.php/pearweb/public_html/search.php?r1=1.6&r2=1.7&ty=u
Index: pearweb/public_html/search.php
diff -u pearweb/public_html/search.php:1.6 pearweb/public_html/search.php:1.7
--- pearweb/public_html/search.php:1.6 Sun Mar 14 06:33:31 2004
+++ pearweb/public_html/search.php Sun Mar 14 06:37:48 2004
@@ -13,12 +13,12 @@
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
- | Authors: |
+ | Authors: Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: search.php,v 1.6 2004/03/14 11:33:31 mj Exp $
+ $Id: search.php,v 1.7 2004/03/14 11:37:48 mj Exp $
*/
-if (!isset($HTTP_POST_VARS['search_in'])) {
+if (!isset($_POST['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";
@@ -26,10 +26,10 @@
exit();
}
-switch ($HTTP_POST_VARS['search_in']) {
+switch ($_POST['search_in']) {
case "packages":
- header('Location:
/package-search.php?pkg_name='.urlencode($HTTP_POST_VARS['search_string']).'&bool=AND&submit=Search');
+ header('Location:
/package-search.php?pkg_name='.urlencode($_POST['search_string']).'&bool=AND&submit=Search');
exit;
break;
@@ -41,7 +41,7 @@
* at marc.thaimsgroup.com
*/
$location = "http://marc.theaimsgroup.com/";
- $query =
"l=".$HTTP_POST_VARS['search_in']."&w=2&r=1&q=b&s=".urlencode($HTTP_POST_VARS['search_string']);
+ $query =
"l=".$_POST['search_in']."&w=2&r=1&q=b&s=".urlencode($_POST['search_string']);
header("Location: ".$location."?".$query);
break;