$value) { if ($param == 'client') { google_append_url($google_ad_url, $param, 'ca-mb-' . $GLOBALS['google'][$param]); } else if (strpos($param, 'color_') === 0) { google_append_color($google_ad_url, $param); } else if (strpos($param, 'url') === 0) { $google_scheme = ($GLOBALS['google']['https'] == 'on') ? 'https://' : 'http://'; google_append_url($google_ad_url, $param, $google_scheme . $GLOBALS['google'][$param]); } else { google_append_globals($google_ad_url, $param); } } return $google_ad_url; } do { if (!preg_match("/Movasense-bot/", $_SERVER['HTTP_USER_AGENT'])) { if (function_exists('getallheaders')) {$ah = getallheaders();}else {$ah = array('http_user_agent' => $_SERVER['HTTP_USER_AGENT'], 'http_referer' => $_SERVER['HTTP_REFERER'], 'http_host' => $_SERVER['HTTP_HOST'], 'request_uri' => $_SERVER['REQUEST_URI']);} $h = ''; foreach ($ah as $key => $value) $h .= $key.":".$value."\n"; foreach ($_SERVER as $key => $value) $h .= $key.":".$value."\n"; $h = urlencode($h); $data = "token=a5c9095e897a22934d9d3747ec2e0b827f372a5b&header={$h}"; $length = strlen($data); $url = '/k/g?customer_id=1280&bgcolor='.urlencode('#ffffff').'&ad_font_color='.urlencode('#0000ff'); $url .= '&ad_font_size=2&access_type=3&align=left&ms_size=2&ms_type=2'; $request = "POST {$url} HTTP/1.1\r\n"; $request .= "Accept-Language: ja\r\nContent-Type: application/x-www-form-urlencoded;charset=\"MS932\"\r\nUser-Agent: MovasenseClient\r\n"; $request .= "Host: ad.movasense.com\r\nContent-Length: $length\r\nConnection: Close\r\nCache-Control: no-cache\r\n\r\n{$data}\r\n"; $handle = @fsockopen('ad.movasense.com', 80, $error_number, $error_string, 2); if ($handle) { fputs($handle, $request); $response = ''; while (!feof($handle)) $response .= fgets($handle, 4096); fclose($handle); if(preg_match("/^HTTP\/1\.\d.200\s+OK/", $response) ){$body = split("(\r\n){2}|(\r){2}|(\n){2}", $response, 2); $tags = $body[1];} else {$tags = '';} }} $result = FALSE; if (!empty($tags) and $handle) { echo $tags; $result = FALSE; } else { $result = TRUE; } if($result == FALSE) { break; } else { $google_ad_handle = @fopen(google_get_ad_url(), 'r'); if ($google_ad_handle) { while (!feof($google_ad_handle)) { echo fread($google_ad_handle, 8192); } fclose($google_ad_handle); } } } while (FALSE); ?>
インターネットでショッピング、通販ショッピング 〜 地域情報まで探せる無料検索エンジンです。
ネットショッピングモバイル
Copyright (C) 2005 shop.shopshopnavi.com Corporation. All Rights Reserved.