Просмотр файла click_club/gou.php

Размер файла: 611B
<?php
ini_set('display_errors', 0);
$ssilka = $_GET[ssilka];
$ref = $_GET[ref];

function get($url,$referer='$ssilka')
{ $ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_USERAGENT, getenv ('HTTP_USER_AGENT'));
curl_setopt($ch, CURLOPT_REFERER, $referer);
$ss=curl_exec($ch);
curl_close($ch);
return $ss;
}

echo get('http://'.$ssilka.'','http://'.$ref.'');

echo '<hr><a href="http://'.$ssilka.'">Перейти на страницу без подмены реферера (скрыть реферер)</a><hr>';
?>