<?php
//Standalone CPA Redirector v2.1
//Settings
$magic_number = 1234; // Any number you choose except ZERO!
$cpa_offer_url = 'http://www.whatismyreferrer.com/';
$PHP_SELF = preg_replace( "/index.php/", "", $_SERVER['PHP_SELF'] );
//Don't edit below this line unless you know what you are doing.
if (isset($_GET['mn']) && $_GET['mn']==$magic_number){
echo '<html><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$PHP_SELF. '" method="post" id="form1">
<input type="hidden" name="mn" value="' . $magic_number . '" /></form>
<script language="JavaScript">
document.getElementById(\'form1\').submit();</script></body></html>';
return true;
exit();
}
if ($_POST['mn']==$magic_number){
echo '<html><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$PHP_SELF. '" method="post" id="form1">
<input type="hidden" name="mn" value="' . $magic_number . $magic_number . '" /></form>
<script language="JavaScript">
document.getElementById(\'form1\').submit();</script></body></html>';
return true;
exit();
}
$dom = preg_replace( "/^www\./", "", $_SERVER[ 'HTTP_HOST' ] ) ;
$ref= $_SERVER['HTTP_REFERER'];
if (((strpos($ref, $dom)!=FALSE) || (trim($ref)=="" ) ) && (!isset($_GET['mn'])) && ($_POST['mn']==$magic_number.$magic_number)){
header( 'Location: ' . $cpa_offer_url);
exit();
}
?>
<html>
<head>
<title>Your Fake Landing Page</title>
</head>
<body>
<br><br><br><br>
<center><h1>Your Fake Landing Page</h1></center>
</body>
</html>