Reklam
$aramamotorlari = array(
'http://www.google.com/webmasters/sitemaps/ping?sitemap=hhy',
'http://www.bing.com/webmaster/ping.aspx?siteMap=hhy',
'http://submissions.ask.com/ping?sitemap=hhy'
);
$mysitemapfile = 'http://www.hhy89.com/sitemap.xml';
foreach($aramamotorlari as $sping){
$url = str_replace('hhy', $mysitemapfile, $sping);
@file($url);
}
function urltemizle($url) {
$url = str_replace ('ÄŸ', 'ğ', $url);
$url = str_replace ('ü', 'ü', $url);
$url = str_replace ('ÅŸ', 'ş', $url);
$url = str_replace ('ı', 'ı', $url);
$url = str_replace ('ö', 'ö', $url);
$url = str_replace ('ç', 'ç', $url);
$url = str_replace ('Äž', 'ğ', $url);
$url = str_replace ('Þ', 'ü', $url);
$url = str_replace ('Åž', 'ş', $url);
$url = str_replace ('Ä°', 'i', $url);
$url = str_replace ('Ö', 'ö', $url);
$url = str_replace ('Ç', 'ç', $url);
return $url;
}
// google tagged
$referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
// if wanting to test with various serious urls, uncomment the next line
// $referer = "http://www.google.com.tr/search?hl=tr&source=hp&q=hhy&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=";
$referer = str_replace ('&aq=f&aqi=&aql=&oq=&gs_rfai=', '', $referer);
if(!empty($referer)) {
// detect certain search engines
if(preg_match('/www.google.*/i',$referer)
|| preg_match('/search.msn.*/i',$referer)
|| preg_match('/search.yahoo.*/i',$referer)
|| preg_match('/search.lycos.com/i', $referer)
|| preg_match('/www.alltheweb.com/i', $referer)
|| preg_match('/search.aol.com/i', $referer)
|| preg_match('/www.ask.*/i', $referer)) {
// detected a search engine referred - now get the search term delimiter
//Figure out which search and get the part of its URL which contains the search terms.
if(preg_match('/(www.google.*)|(search.msn.*)|(www.alltheweb.com)|(ask.*)/i',$referer))
$delimiter = "q";
elseif(preg_match('/(search.lycos.com)|(search.aol.com)/i', $referer))
$delimiter = "query";
elseif(preg_match('/search.yahoo.*/i',$referer))
$delimiter = "p";
// now use the delimiter
$pattern = "/^.*" . $delimiter . "=([^&]+)&?.*$/i";
$query = preg_replace($pattern, '$1', $referer);
// TIDY UP
unset($pattern,$delimiter);
// remove our quotes
$query = preg_replace('/'|"/','',$query);
// common ignore/bad words/unwanted bits
$ignorewords = array(
'a', 'am', 'an', 'and', 'are', 'be', 'been', 'because', 'by',
'for', 'from', 'he', 'her', 'his', 'i', 'in', 'is', 'isnt', 'its', 'it',
'of', 'on', 'or', 'over', 'off', 'that', 'the', 'there', 'their', 'this', 'was', 'with',
'fuck', 'dick', 'wanker', 'bastard', 'fucking', 'whore', 'cunt', 'bitch', 'fucker',
'http://www', 'www', 'www.', 'http://', 'com', 'co.uk', 'v1agra', 'viagra',
'