Links

// Here is the code you need to make the links work
// Place the entire block of code where you want the links to be

$websiteKey = "dljr6-h3h7o";

$thisPage = $_SERVER["PHP_SELF"];

if( !$thisPage )
$thisPage = $PHP_SELF;

$post = "wk=$websiteKey&tp=$thisPage";

$query = "script=php";
foreach ($HTTP_GET_VARS as $key => $value):
$value = urlencode(stripslashes($value));
$query .= “&$key=$value”;
endforeach;

// http headers
$header = “POST /linkpage.html?$query HTTP/1.1\r\n”
. “Host: www.linkbaron.com\r\n”
. “Content-Type: application/x-www-form-urlencoded\r\n”
. “Content-Length: “.strlen($post).”\r\n”;

// open connection
$fp = fsockopen (“www.linkbaron.com”, 80, $errno, $errstr, 30);

if (!$fp):
// HTTP ERROR
echo “Error processing request”;
else:
// send form headers, form post
fputs ($fp, $header . “Connection: Close\r\n\r\n” . $post);

$bHeader = true;
$sData = “”;

while ( !feof( $fp ) ):
$res = fgets ($fp, 8192);
$res = ereg_replace(“[\r\n]“, “”, $res);
if( strlen($res) == 0 )
$bHeader = false; // past headers
if( !$bHeader )
$sData .= $res;
endwhile;

echo $sData;
fclose ($fp);
endif;

?>