<?PHP
$affId = 4638;
$instId = 6290;
$title = urlencode($_GET['q']);
$s1 = $_GET['s1'];
$s2 = $_GET['s2'];
$s3 = $_GET['s3'];
$s4 = $_GET['s4'];
$lp = $_GET['lp'];
$url = file_get_contents_curl('http://ic-api.com/api.php?t=enurl&affId='.$affId.'&instId='.$instId.'&appTitle='.$title.'&s1='.$s1.'&s2='.$s2.'&s3='.$s3.'&s4='.$s4.'&lp='.$lp);
header ('Location: '.$url);
function file_get_contents_curl($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
Comments
Post a Comment