thx for replies
this is the bottom of the php code, so i guess this is what $thisRedirectUrl is used for
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Edit Me</title>
<META name="description" content="">
<META name="keywords" content="">
</head>
<frameset rows="100%,*" border="0">
<frame src="<? echo $thisRedirectUrl; ?>" frameborder="0" />
<frame src="UntitledFrame-2" frameborder="0" noresize />
<noframes>
Put content here...
</noframes>
</frameset>
</html>
and here is the r-decode.php
<?php
// Note: there's no need to modify this file. Just upload it to your server along with the iframe file.
// this file redirects the user to your link while hiding the refer information from the destination URL
$thisReferringUrl = @$_SERVER["HTTP_REFERER"];//use default in case the requested url is invalid
$clientIPNumber = @$_SERVER["REMOTE_ADDR"];
$clitentBrowserUserAgent = @$_SERVER["HTTP_USER_AGENT"];
if (empty($clitentBrowserUserAgent)){
//no useragent means it's a bot
header("HTTP/1.0 301 Permanent Redirect");
header("Location: http://127.0.0.1",true,301);
exit;
}
$topMargin = rand(10,111);
$thisRedirectUrl = null;
$imagePropertiesArr = array();
if (!empty($imagesArr)){
$rand_key = array_rand($imagesArr, 1);
$imageProperties = $imagesArr[$rand_key];
$imagePropertiesArr = explode("|",$imageProperties);
}
$url_encoded = @$_SERVER["QUERY_STRING"];
if (!empty($url_encoded)){
$url_encoded = trim($url_encoded);
$url_decoded = base64_decode($url_encoded);
if (checkValidURL($url_decoded)){
$thisRedirectUrl = $url_decoded;
}
}
function checkValidURL($siteurl){
$siteurl = trim($siteurl);
$siteurlVal = $siteurl;
$siteurlVal = ereg_replace("[^a-zA-Z0-9?:=,;@#$|&+%\/._-]", "", $siteurlVal);//strip out invalid chars
if ($siteurl != $siteurlVal) return false;
if(ereg("^http://.+\\..+$", $siteurl) || ereg("^https://.+\\..+$", $siteurl))
return true;
else
return false;
}
if (empty($thisRedirectUrl)){
header("HTTP/1.1 404");
header("Location: 404");
exit;
}
//echo $thisRedirectUrl;
//exit;
//header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
//header("Pragma: no-cache");
//header("HTTP/1.0 301 Permanent Redirect");
?><html>
<head>
<meta name="robots" content="noindex,nofollow">
<meta http-equiv="refresh" content="0;url=<? echo $thisRedirectUrl; ?>" />
</head>
<body>
<script language="JavaScript" type="text/javascript">
function go(){
document.location.href="<? echo $thisRedirectUrl; ?>";
}
setTimeout ('go()', 1);
</script>
</body>
</html>
Edited by Orjan, 07 March 2010 - 12:34 PM.
Please use code tags!