Duke Leto
16 years ago
3 changed files with 18 additions and 3 deletions
@ -0,0 +1,15 @@ |
|||
function is_search_request() { |
|||
$r = $_SERVER['HTTP_REFERER']; |
|||
$engines = array('/search?', |
|||
'images.google.', |
|||
'search.yahoo.com', |
|||
'del.icio.us/search', |
|||
'msn.com', |
|||
'live.com', |
|||
); |
|||
foreach ($engine as $eng) { |
|||
if (strpos($r,$eng) !== false) |
|||
return true; |
|||
} |
|||
return false; |
|||
} |
Loading…
Reference in new issue