| 1 |
<?php |
<?php |
| 2 |
// $Id: serapi.module,v 1.7 2008/11/05 22:10:42 yaph Exp $ |
// $Id: serapi.module,v 1.8 2009/07/18 23:19:36 yaph Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Returns an array with information on the performed search |
* Returns an array with information on the performed search |
| 29 |
foreach($engines as $name => $prop) { |
foreach($engines as $name => $prop) { |
| 30 |
if (false !== stripos($host, $prop['host_pattern'])) { |
if (false !== stripos($host, $prop['host_pattern'])) { |
| 31 |
$param = $prop['query_param']; |
$param = $prop['query_param']; |
| 32 |
|
$query_parts = array(); |
| 33 |
parse_str($query, $query_parts); |
parse_str($query, $query_parts); |
| 34 |
// check that the query contains the search parameter |
// check that the query contains the search parameter |
| 35 |
if (isset($query_parts[$param])) { |
if (isset($query_parts[$param])) { |