3 // Parse search query and send it to the search functions
5 global $search_exclusions;
7 $queries = explode("&", $_SERVER['QUERY_STRING']);
11 foreach($queries as $query) {
12 $pair = explode("=", $query);
13 if ($pair[0] == "category") {
14 $tagtypes[] = $pair[1];
15 } else if ($pair[0] == "tag") {
20 if (!empty($tagtypes)) {
23 $displaytag = htmlspecialchars($parameter, ENT_COMPAT
, 'utf-8');
25 $url = url
. "tag/" . $displaytag;
27 $run_result .= "<result serverName=\"".htmlspecialchars(sitename
, ENT_COMPAT
, 'utf-8')."\" serverUrl=\"".url
."\">\n";
29 foreach($tagtypes as $tagtype) {
31 if (!isset($search_exclusions) ||
!in_array($tagtype,$search_exclusions)) {
32 $run_result .= run("search:display_results:ecl", array($tagtype,$tag));
36 // $run_result .= run("search:display_results:ecl", array("onceonly",$tag));
38 $run_result .= "</result>\n";