#26.
lexa
Гость
2010.11.05 18:06
вобщем опять тоже самое на денвере работает на хосте нет
$br = array(
'HTCP3300-Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x320)',
'Panasonic-GAD87/A22 UP.Link/1.1',
'Panasonic-VS6/1.0/RP1 Profile/MIDP-2.0 Configuration/CLDC-1.1',
'LGE-VX8300/1.0 UP.Browser/6.2.3.2 (GUI) MMP/2.0'
);
$header[] = 'Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5';
$header[] = 'Cache-Control: max-age=0';
$header[] = 'Connection: close';
$header[] = 'Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1';
$header[] = 'Accept-Language: ru-RU,ru;q=0.9,en;q=0.8';
$header[] = 'Pragma: no-cache';
/// $url = 'http://on-porn.ru/fotoload/'.$_SERVER['QUERY_STRING'];
$ch = curl_init('http://on-porn.ru/foto/'.$d.'/'.$f);
curl_setopt($ch, CURLOPT_USERAGENT,trim($br[rand(1,4)]));
curl_setopt($ch, CURLOPT_REFERER,'http://on-porn.ru');
curl_setopt($ch, CURLOPT_HTTPHEADER, $header );
curl_setopt($ch, CURLOPT_AUTOREFERER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_NOBODY, false);
$f = curl_exec($ch);
curl_close($ch);
//header('Content-type: image/jpeg');
echo $f;