From: <ok...@us...> - 2003-09-29 22:43:32
|
Update of /cvsroot/xoops/xoops2/include In directory sc8-pr-cvs1:/tmp/cvs-serv4473/include Modified Files: searchform.php Log Message: Fixed the search feature to work with GET requests Index: searchform.php =================================================================== RCS file: /cvsroot/xoops/xoops2/include/searchform.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** searchform.php 12 Feb 2003 11:34:53 -0000 1.5 --- searchform.php 29 Sep 2003 22:43:28 -0000 1.6 *************** *** 25,34 **** // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // ! ! // get textsanitizer class global object ! $myts =& MyTextSanitizer::getInstance(); ! ! // initialize form vars ! $query = $myts->makeTboxData4PreviewInForm($query); // create form --- 25,29 ---- // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // ! include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; // create form *************** *** 36,40 **** // create form elements ! $search_form->addElement(new XoopsFormText(_SR_KEYWORDS, "query", 30, 255, $query), true); $type_select = new XoopsFormSelect(_SR_TYPE, "andor", $andor); $type_select->addOptionArray(array("AND"=>_SR_ALL, "OR"=>_SR_ANY, "exact"=>_SR_EXACT)); --- 31,35 ---- // create form elements ! $search_form->addElement(new XoopsFormText(_SR_KEYWORDS, "query", 30, 255, htmlspecialchars(stripslashes(implode(" ", $queries)), ENT_QUOTES), true)); $type_select = new XoopsFormSelect(_SR_TYPE, "andor", $andor); $type_select->addOptionArray(array("AND"=>_SR_ALL, "OR"=>_SR_ANY, "exact"=>_SR_EXACT)); |