Foto & Camcorder
· Augenoptik
·· Sonnenbrillen
··· Herrensonnenbrillen
$keyword = $QUERY_STRING;
$fp = fsockopen ("affiliate.espotting.de", 80, $errno, $errstr, 5);
if ($fp) {
$getpath = "/search/qsearch/results.asp?affiliateid=15&keyword=$keyword";
fputs ($fp, "GET $getpath HTTP/1.0\r\nHost: affiliate.espotting.de\r\n\r\n");
while (!feof($fp)) {
$page .= fgets ($fp,128);
}
fclose ($fp);
}
if(ereg("T=", $page)) {
$pieces = split("T=", $page);
for($i=1; $i";
}
if(!( eregi('ebay', $title) || eregi('ebay', $description)) && eregi('redirector.asp', $real_URL) ) {
list($garbage, $follow_url) = split('url=http%3A%2F%2F', $real_URL);
list($follow_url, $garbage) = split('%2F', $follow_url);
$follow_url = 'http://' . urldecode($follow_url);
$link_tag = "";
$espot_results .= "$link_tag $img_tag | $link_tag $title - $description | \n";
}
}
}
if($espot_results) {
$espot_results = "\n";
}
print $espot_results;
?>
|