<?php
/*******************************************************************************
Скрипт : ICQ Register
Разработчик : Suliman
Сайт поддержки : http://x-sys.ru
E-mail : suliman36@gmail.com
ICQ : 9774889
*******************************************************************************/
error_reporting(0);
header('Content-type: image/png');
if (isset($_GET['q'])) {
$ch = curl_init('http://id.rambler.ru/captcha/'.$_GET['q'].'.jpg');
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_AUTOREFERER, 0);
curl_setopt($ch, CURLOPT_REFERER, 'http://id.rambler.ru');
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie/'.$_SERVER['REMOTE_ADDR']);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie/'.$_SERVER['REMOTE_ADDR']);
if (isset($_GET['p'])) {
curl_setopt($ch, CURLOPT_PROXY, base64_decode($_GET['p']));
}
curl_exec($ch);
curl_close($ch);
} else {
$img = imagecreate(90, 30);
imagefill($img, 0, 0, imagecolorallocate($img, 255, 255, 255));
ImageString($img, 5, 22, 6, 'Error', imagecolorallocate($img, 102, 102, 102));
imagepng($img);
imagedestroy($img);
}
?>