12-14-2011, 08:56 PM
Hey guys This shows the page referrer of the page you want to show a referral from. It can do this regardless of origin of your traffic (if ever you need to send links to a network).
For example, you can email traffic to any of your websites that’ll instantly redirect to the offer. From there, your page will be shown as the referral. Make the network happy by putting some good content on your “referral page” and to get you all set!
I'll share more helpful information/guide soon.
Press THANKS or REP me if you found it useful.
For example, you can email traffic to any of your websites that’ll instantly redirect to the offer. From there, your page will be shown as the referral. Make the network happy by putting some good content on your “referral page” and to get you all set!
PHP Code:
<?php
$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
function parse($cadena,$busca){
if($busca=="") return 1;
$vi = split("%",$busca);
$offset=0;
for($n=0;$n<count($vi);$n++){
if($vi[$n]== ""){
if($vi[0]== ""){
$tieneini = 1;
}
} else {
$newoff=strpos($cadena,$vi[$n],$offset);
if($newoff!==false){
if(!$tieneini){
if($offset!=$newoff){
return false;
}
}
if($n==count($vi)-1){
if($vi[$n] != substr($cadena,strlen($cadena)-strlen($vi[$n]), strlen($vi[$n]))){
return false;
}
} else {
$offset = $newoff + strlen($vi[$n]);
}
} else {
return false;
}
}
}
return true;
}
$searchthis = "%email%";
$resp = parse($url,$searchthis);
if ($resp ==1){
header("Location:http://www.yourafiliatelink.com");
} else{
}
?>
I'll share more helpful information/guide soon.
Press THANKS or REP me if you found it useful.