RANKTRADE

// ***************************************************
// RANKTRADE January 2008
// This code generates links on your page
// Please do not alter it
// ***************************************************

$rtkey = "13a4e6dc51ac4a1071517fa9d62d81ad";
$rtstr = "/2419/2248/".urlencode($rtkey)."/";
if (!empty($_SERVER['HTTPS']))
$rthttp = ($_SERVER['HTTPS']=='on')?'https://':'http://';
else
$rthttp = 'http://';

$uri = $_SERVER['REQUEST_URI'];
if ($uri=='/')
$uri = substr($_SERVER["SCRIPT_NAME"],-(strlen($_SERVER["SCRIPT_NAME"])-strrpos($_SERVER["SCRIPT_NAME"], "/")));

$rtstr = $rtstr.base64_encode( urlencode( $rthttp.$_SERVER['HTTP_HOST'].$uri ) );
$rtstr = $rtstr."/".base64_encode($_SERVER['REMOTE_ADDR']);
if (!empty($_SERVER['HTTP_REFERER']))
$rtstr = $rtstr."/".base64_encode($_SERVER['HTTP_REFERER']);


if(intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) {
@readfile("http://rankserv.ranktrade.com/index.php/getsite".$rtstr);
}
elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
if($content = @file("http://rankserv.ranktrade.com/index.php/getsite".$rtstr))
print @join('', $content);
}
elseif(function_exists('curl_init')) {
$ch = curl_init ("http://rankserv.ranktrade.com/index.php/getsite".$rtstr);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);

curl_close ($ch);
}
else{
print "";
}
?>

Keine Kommentare: