root/devel/mod/search/lib/function_display.php

Revision 1539, 1.2 kB (checked in by renato, 1 year ago)

Setting prop svn:eol-style in LOTS of files.

  • Property svn:mime-type set to text/plain
  • 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"
19                     && $field != "psaContext" && $field != "PHPSESSID"
20                     && $field != "user_type" && $field != "returned_items") {
21                     // $searchline = "tagtype = '".addslashes($field)."' and tag = '".addslashes($value)."'";
22                     $run_result .= run("search:display_results", array($field,$value));
23                     $search_exclusions[] = $field;
24                     $run_result .= run("search:all:display",$value);
25                     $run_result .= run("search:tags:suggest",$value);
26                 }
27                
28             }
29            
30         }
31
32 ?>
Note: See TracBrowser for help on using the browser.