From: <mic...@us...> - 2005-02-28 11:01:31
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27293 Modified Files: Tag: BRANCH-1-9 tiki-listpages.php Log Message: Initial work for RFE 918526: Search wiki page name module should use real search Index: tiki-listpages.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-listpages.php,v retrieving revision 1.13.2.2 retrieving revision 1.13.2.3 diff -u -d -r1.13.2.2 -r1.13.2.3 --- tiki-listpages.php 1 Jan 2005 00:11:25 -0000 1.13.2.2 +++ tiki-listpages.php 28 Feb 2005 11:01:21 -0000 1.13.2.3 @@ -82,23 +82,32 @@ $smarty->assign_by_ref('offset', $offset); if (isset($_REQUEST["find"])) { - $find = $_REQUEST["find"]; + $find = strip_tags($_REQUEST["find"]); } else { $find = ''; } $smarty->assign('find', $find); -if (isset($_REQUEST["initial"])) { - $initial = $_REQUEST["initial"]; -} else { - $initial = ''; -} -$smarty->assign('initial', $initial); +if (isset($_REQUEST["initial"])) { + $initial = $_REQUEST["initial"]; +} else { + $initial = ''; +} +$smarty->assign('initial', $initial); + +if (isset($_REQUEST["exact_match"])) { + $exact_match = true; + $smarty->assign('exact_match', 'y'); +} else { + $exact_match = false; + $smarty->assign('exact_match', 'n'); +} + $smarty->assign('initials', split(' ','a b c d e f g h i j k l m n o p q r s t u v w x y z')); // Get a list of last changes to the Wiki database -$listpages = $tikilib->list_pages($offset, $maxRecords, $sort_mode, $find, $initial); +$listpages = $tikilib->list_pages($offset, $maxRecords, $sort_mode, $find, $initial, $exact_match); // If there're more records then assign next_offset $cant_pages = ceil($listpages["cant"] / $maxRecords); $smarty->assign_by_ref('cant_pages', $cant_pages); |