cvs: phpweb / search.php /include layout.inc

From: Date: Sun, 16 Jun 2002 20:09:46 +0000
Subject: cvs: phpweb / search.php /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-10862@lists.php.net to get a copy of this message
sander Sun Jun 16 16:09:46 2002 EDT Modified files: /phpweb search.php /phpweb/include layout.inc Log: Remember language when using that quickref thingy; #14985 Index: phpweb/search.php diff -u phpweb/search.php:1.28 phpweb/search.php:1.29 --- phpweb/search.php:1.28 Thu May 2 15:50:04 2002 +++ phpweb/search.php Sun Jun 16 16:09:45 2002 @@ -12,10 +12,12 @@ $pattern = stripslashes($pattern); if (isset($base) && get_magic_quotes_gpc()) $base = stripslashes($base); +if (isset($lang) && get_magic_quotes_gpc()) + $lang = stripslashes($lang); if ($pattern) { if ($show=="quickref") { - header("Location: manual-lookup.php?pattern=".urlencode($pattern)); + header("Location: manual-lookup.php?pattern=".urlencode($pattern)."&lang=".urlencode($lang)); exit; } $location = "http://www.progressive-comp.com/Lists/"; @@ -99,6 +101,7 @@ ?> <h1>Search</h1> <form action="<?php echo $form;?>" method="post"> +<input type="hidden" name="lang" value="<?php echo htmlspecialchars($lang); ?>"> <table cellspacing="0" cellpadding="2" border="0" align="center"> <tr valign="top"> <td align="right"> Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.88 phpweb/include/layout.inc:1.89 --- phpweb/include/layout.inc:1.88 Sun Jun 9 10:57:50 2002 +++ phpweb/include/layout.inc Sun Jun 16 16:09:45 2002 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.88 2002/06/09 14:57:50 zeev Exp $ */ +/* $Id: layout.inc,v 1.89 2002/06/16 20:09:45 sander Exp $ */ # spacer() # print a IMG tag for a sized spacer GIF @@ -223,6 +223,7 @@ <tr bgcolor="#666699"> <td align="right" valign="top" colspan="2"><font color="#ffffff"> <form method="post" action="/search.php" class="thin"> +<input type="hidden" name="lang" value="<?php echo htmlspecialchars($lang); ?>"> <small>search for</small> <input class="small" type="text" name="pattern" value="" size="30" /> <small>in the</small>

« previous php.mirrors (#10862) next »