error_reporting(0);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.elitelink.ru/echo/echolinks.php?elite_url_site=".urlencode("http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])."&elite_id_site=".urlencode("3442")."&elite_key=".urlencode("$elite_key")."&elite_remote_addr=".urlencode($_SERVER['REMOTE_ADDR'])."&elite_char_set=".urlencode("windows-1251"));
curl_setopt($ch, CURLOPT_USERAGENT , $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
curl_close($ch);
echo $out;
?>