cvs: phpweb / manual-lookup.php search.php /include layout.inc

From: Date: Thu, 02 May 2002 19:50:05 +0000
Subject: cvs: phpweb / manual-lookup.php search.php /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-10010@lists.php.net to get a copy of this message
jimw Thu May 2 15:50:05 2002 EDT Modified files: /phpweb manual-lookup.php search.php /phpweb/include layout.inc Log: get rid of prevsearch stuff. it doesn't play nice with caching. Index: phpweb/manual-lookup.php diff -u phpweb/manual-lookup.php:1.18 phpweb/manual-lookup.php:1.19 --- phpweb/manual-lookup.php:1.18 Thu Mar 7 11:34:01 2002 +++ phpweb/manual-lookup.php Thu May 2 15:50:04 2002 @@ -18,7 +18,7 @@ exit; } -$notfound = $prevsearch = $function; +$notfound = $function; include 'quickref.php'; ?> Index: phpweb/search.php diff -u phpweb/search.php:1.27 phpweb/search.php:1.28 --- phpweb/search.php:1.27 Mon Mar 25 14:20:23 2002 +++ phpweb/search.php Thu May 2 15:50:04 2002 @@ -7,18 +7,13 @@ mirror (or emulate it on your own website). */ -/* we don't want magic slashes in pattern or prevsearch */ +/* we don't want magic slashes in pattern or base */ if (isset($pattern) && get_magic_quotes_gpc()) $pattern = stripslashes($pattern); if (isset($base) && get_magic_quotes_gpc()) $base = stripslashes($base); -if (isset($prevsearch) && get_magic_quotes_gpc()) - $prevsearch = stripslashes($prevsearch); if ($pattern) { - if (!$auto) - setcookie("prevsearch",$pattern,0,"",".php.net"); - if ($show=="quickref") { header("Location: manual-lookup.php?pattern=".urlencode($pattern)); exit; @@ -109,7 +104,7 @@ <td align="right"> Search for:<br></td> <td> -<input type="text" name="pattern" value="<?php echo htmlspecialchars($prevsearch);?>" size="30"> +<input type="text" name="pattern" value="" size="30"> <input type="submit" value=" Search "><br> </td></tr> <tr valign="top"> Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.81 phpweb/include/layout.inc:1.82 --- phpweb/include/layout.inc:1.81 Sat Apr 27 05:48:55 2002 +++ phpweb/include/layout.inc Thu May 2 15:50:04 2002 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.81 2002/04/27 09:48:55 goba Exp $ */ +/* $Id: layout.inc,v 1.82 2002/05/02 19:50:04 jimw Exp $ */ # spacer() # print a IMG tag for a sized spacer GIF @@ -178,7 +178,7 @@ function commonHeader($title="",$dont_enclose=0,$headers_gone=0) { global $MYSITE, $enclosed; - global $SIDEBAR_DATA, $prevsearch; + global $SIDEBAR_DATA; ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> @@ -219,7 +219,7 @@ <form method="post" action="/search.php"> <td align="right" valign="top" colspan="2"><font color="#ffffff"> <small>search for</small> -<input class="small" type="text" name="pattern" value="<?php echo htmlspecialchars(get_magic_quotes_gpc()?stripslashes($prevsearch):$prevsearch) ?>" size="30"> +<input class="small" type="text" name="pattern" value="" size="30" /> <small>in the</small> <select name="show" class="small"> <option value="quickref" selected>function list

« previous php.mirrors (#10010) next »