Keresőoldal

'q',
'^http://www.googel.fi.*$' => 'q',
'^http://.*search.msn.co.*results.*$' => 'q',
'^http://.*\.mysearch.com/jsp/GGmain.jsp?searchfor=.*$' => 'searchfor',
'^http://search.freeserve.com/.*$' => 'q',
'^http://aolsearch.aol.co.*$' => 'query',
'^http://search.yahoo.com.*$' => 'va',
'^http://search.yahoo.com.*$' => 'p',
'^http://www.bbc.co.uk/cgi-bin/search/.*' => 'q',
'^http://www.tiscali.co.uk/search/results.php.*$' => 'query',
'^http://www.altavista.com/web/results.*$' => 'q',
'^http://search.hotbot.co.uk/cgi-bin/pursuit.*$' => 'query',
'^http://www.excite.co.uk/search/web/results.*$' => 'q',
'^http://uk.search.yahoo.com/search.*$' => 'p',
'^http://search.wanadoo.*$' => 'q'
);

$referer = getenv("HTTP_REFERER");

while( list( $regexp, $qsitem ) = each( $searchengines ) )
{
if( eregi( $regexp, $referer ) )
{
echo( t("

Search Engine Detected

It would appear you arrived here on the wings of a search engine, so, I will search my local database and show you anything that matches what you were looking for:
"));
$url = parse_url( $referer );
$querystring = $url['query'];
$querystring = explode( "&", $querystring );
while( list( , $value ) = each( $querystring ) )
{
$item = explode( "=", $value );
if( $item[0] == $qsitem )
{
if( trim( $item[1] ) != '' )
{
$item[1] = urldecode( $item[1] );
echo ( search_data( $item[1] ) );
}
}
}
}
}
?>

Copyright © 2023 Trans-Europe Zrt. Minden jog fenntartva.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram