 | | |
 |
|
 |
|
Auto & Motorrad
· Teile & Zubehör für Autos
·· Karosserieteile
···Alfa Romeo
···Audi 80 & A4
···Audi 100 & A6
···Audi Sonstige
···BMW 3er-Serie
···BMW 5er Serie
···BMW 7er Serie
···BMW, sonstiges
···Citroën
···Chrysler
···Daewoo
···Ferrari
···Fiat
···Ford Fiesta
···Ford Escort & Focus
···Ford Sonstige
···Honda
···Hyundai
···Jaguar
···Lancia
···Maserati
···Mazda
···Mercedes A-Klasse
···Mercedes 190er
···Mercedes C-Klasse
···Mercedes 200-300 / W124
···Mercedes E-Klasse / W210
···Mercedes 500 & S-Klasse
···Mercedes Vito
···Mercedes G & M-Klasse
···Mercedes, sonstige
···Mitsubishi
···Nissan
···Opel Calibra
···Opel Corsa A
···Opel Corsa B
···Opel Ascona
···Opel Astra
···Opel Kadett
···Opel Manta
···Opel Rekord & Omega
···Opel Senator
···Opel Vectra A
···Opel Vectra B
···Opel Sonstige
···Peugeot
···Porsche
···Renault
···Rolls-Royce
···Rover
···Saab
···Seat
···Skoda
···Smart
···Subaru
···Suzuki
···Toyota
···Trabant
···Volvo
···VW Bus
···VW Golf I
···VW Golf II
···VW Golf III
···VW Golf IV
···VW Jetta & Vento/Bora
···VW Käfer & New Beetle
···VW Lupo
···VW Passat
···VW Polo
···VW Scirocco & Corrado
···VW, sonstiges
···Wartburg
···Sonstige
# edit the template to meet fit your layout
$result_template = '$pic | $title $price | | \n';
#$result_template = '$pic | $title$price - Gebote: $gebote - endet in $end | | \n';
$res_num = 60; # set value between 1 and 50 - number of results from ebay
if(!$ebay_num) { $ebay_num = $_SERVER["QUERY_STRING"]; }
$fp = fsockopen ("listings.ebay.de", 80, $errno, $errstr, 5);
if (!$fp) {
echo "$errstr ($errno) \n";
} else {
$getpath = "/aw/plistings/list/category$ebay_num/index.html?from=R0";
fputs ($fp, "GET $getpath HTTP/1.0\r\nHost: listings.ebay.de\r\n\r\n");
while (!feof($fp)) {
$ebay_page .= fgets ($fp,128);
}
fclose ($fp);
}
if(eregi('301 Moved Permanently', $ebay_page)) { # find the redirection url
list($garb, $mean) = split('Location: http://', $ebay_page);
list($url, $garb) = split('Content-Language', $mean);
$url = trim($url);
list($domain, $path) = split('/', $url);
$fp = fsockopen ($domain, 80, $errno, $errstr, 5);
if (!$fp) {
echo "$errstr ($errno) \n";
} else {
fputs ($fp, "GET /$path HTTP/1.0\r\nHost: listings.ebay.de\r\n\r\n");
while (!feof($fp)) {
$ebay_page .= fgets ($fp,128);
}
fclose ($fp);
}
}
#print $ebay_page;
$rows = split("( | ", $mean);
list($link, $pic) = split("\"> ", $pic);
$pic = '
# $content \n";
print $content;
?>
|
|
| |
|
|