|
Revision 1539, 1.3 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 |
|
|---|
| 7 |
$queries = explode("&", $_SERVER['QUERY_STRING']); |
|---|
| 8 |
|
|---|
| 9 |
$tagtypes = array(); |
|---|
| 10 |
|
|---|
| 11 |
foreach($queries as $query) { |
|---|
| 12 |
$pair = explode("=", $query); |
|---|
| 13 |
if ($pair[0] == "category") { |
|---|
| 14 |
$tagtypes[] = $pair[1]; |
|---|
| 15 |
} else if ($pair[0] == "tag") { |
|---|
| 16 |
$tag = $pair[1]; |
|---|
| 17 |
} |
|---|
| 18 |
} |
|---|
| 19 |
|
|---|
| 20 |
if (!empty($tagtypes)) { |
|---|
| 21 |
|
|---|
| 22 |
$tag = $parameter; |
|---|
| 23 |
$displaytag = htmlspecialchars($parameter, ENT_COMPAT, 'utf-8'); |
|---|
| 24 |
$sitename = sitename; |
|---|
| 25 |
$url = url . "tag/" . $displaytag; |
|---|
| 26 |
|
|---|
| 27 |
$run_result .= "<result serverName=\"".htmlspecialchars(sitename, ENT_COMPAT, 'utf-8')."\" serverUrl=\"".url."\">\n"; |
|---|
| 28 |
|
|---|
| 29 |
foreach($tagtypes as $tagtype) { |
|---|
| 30 |
|
|---|
| 31 |
if (!isset($search_exclusions) || !in_array($tagtype,$search_exclusions)) { |
|---|
| 32 |
$run_result .= run("search:display_results:ecl", array($tagtype,$tag)); |
|---|
| 33 |
} |
|---|
| 34 |
|
|---|
| 35 |
} |
|---|
| 36 |
// $run_result .= run("search:display_results:ecl", array("onceonly",$tag)); |
|---|
| 37 |
|
|---|
| 38 |
$run_result .= "</result>\n"; |
|---|
| 39 |
} |
|---|
| 40 |
|
|---|
| 41 |
?> |
|---|