root/devel-backup/units/search/function_display.php

Revision 45, 0.9 kB (checked in by sven, 3 years ago)

dos2unix to clean line endings, set svn property eol-style native, some whitespace homogenisation

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     // Parse search query and send it to the search functions
4     
5         global $search_exclusions;
6         $search_exclusions = array();
7         if (isset($_GET) || (isset($parameter) && sizeof($parameter) == 2)) {
8             
9             if ((isset($parameter) && sizeof($parameter) == 2)) {
10                 $query[$parameter[0]] = $parameter[1];
11             } else {
12                 $query = $_GET;
13             }
14             
15     // A flag to see if we've actually had any results displayed
16     
17             foreach($query as $field => $value) {
18                 if ($field != user_session_name && $field != "ref" && $field != "owner" && $field != "psaContext" && $field != "PHPSESSID") {
19                     // $searchline = "tagtype = '".addslashes($field)."' and tag = '".addslashes($value)."'";
20                     $run_result .= run("search:display_results", array($field,$value));
21                     $search_exclusions[] = $field;
22                     $run_result .= run("search:all:display",$value);
23                     $run_result .= run("search:suggest:tags",$value);
24                 }
25                 
26             }
27             
28         }
29
30 ?>
Note: See TracBrowser for help on using the browser.