0% found this document useful (0 votes)
15K views4 pages

Informativ PP

The document contains PHP code and JavaScript that displays an advertisement interstitial on Facebook referrals. It checks for a Facebook referer, displays an overlay with instructions to click the ad to close it, and sets a cookie after 30 seconds or on click to remove the overlay on subsequent page loads or refreshes. It also includes code to prevent right clicking, dragging, selecting text and various keyboard shortcuts.

Uploaded by

Fair Play
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15K views4 pages

Informativ PP

The document contains PHP code and JavaScript that displays an advertisement interstitial on Facebook referrals. It checks for a Facebook referer, displays an overlay with instructions to click the ad to close it, and sets a cookie after 30 seconds or on click to remove the overlay on subsequent page loads or refreshes. It also includes code to prevent right clicking, dragging, selecting text and various keyboard shortcuts.

Uploaded by

Fair Play
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

<style type="text/css">

#ads-back {
/* Fallback for web browsers that don't support RGBa */
background-color: rgb(255, 255, 255);
/* RGBa with 0.6 opacity */
background-color: rgba(255, 255, 255, 0.9);
/* For IE 5.5 - 7*/
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,
endColorstr=#99000000);
/* For IE 8*/
-ms-filter:
"progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,
endColorstr=#99000000)";

z-index: 999;
position: fixed;
width: 100%;
height: 100%;
margin:0;
text-align: center;
color: #5F9EA0;
padding-top: 80px;
font-size: 14px;
}

#ads-okvir {
background-color: window;
border: 1px solid;
border-radius: 20px;
color: #000000;
margin: 0 auto;
padding: 20px 0;
width: 420px;
}

</style>
<?php

if (preg_match("/facebook\.com/i", $_SERVER['HTTP_REFERER'])) {
if (!isset($_COOKIE['iframe'])) {

echo "<div id='ads-back'><div id='ads-okvir'>


";

echo '<center><b><u>Kliknite na SLIKU ispod da se ovaj prozor vi�e ne


pojavljuje!</u></b></center>
<br><br>

<script async
src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- informativ -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-5672163831316459"
data-ad-slot="5979181656"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

';

echo "</div></div> ";


}
}
?>

<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-
cookie/1.4.1/jquery.cookie.js"></script>
<script type="text/javascript">
var sec = 60;
var timer = setInterval(function () {
$("#wait").html('Ili sacekaj '+ eval(sec=sec -1) +' sekundi');
}, 1000);
setTimeout(function () {
gasi();
clearInterval(timer);
}, 30000);

window.onscroll = function () {
if($.cookie('iframe')===undefined){
// window.scrollTo(500,500);
}
};

$(window).on('blur',function(e) {
if($(this).data('mouseIn') != 'yes')return;
$('iframe').filter(function(){
return $(this).data('mouseIn') == 'yes';
}).trigger('iframeclick');
});

$(window).mouseenter(function(){
$(this).data('mouseIn', 'yes');
}).mouseleave(function(){
$(this).data('mouseIn', 'yes');
});

$('iframe').mouseenter(function(){
$(this).data('mouseIn', 'yes');
$(window).data('mouseIn', 'yes');
}).mouseleave(function(){
$(this).data('mouseIn', null);
});

$('iframe').on('iframeclick', function(){
console.log('Clicked inside iframe');
$.cookie('iframe', '1', { expires: 1, path: '/' });
location.reload();
});
$(window).on('click', function(){
console.log('Clicked inside window');

}).blur(function(){
console.log('window blur');
});

function gasi()
{
$.cookie('iframe', '1', { expires: 1, path: '/' });
document.getElementById("ads-okvir").style.display='none';
document.getElementById("ads-back").style.display='none';
document.getElementById('iframe').src='';
}

</script>

<div align="center"><noscript>
<div style="position:fixed; top:0px; left:0px; z-index:3000; height:100%;
width:100%; background-color:#FFFFFF">
<div style="font-family: Trebuchet MS; font-size: 14px; background-
color:#FFF000; padding: 10pt;">Oops! It appears that you have disabled your
Javascript. In order for you to see this page as it is meant to appear, we ask that
you please re-enable your Javascript!</div></div>
</noscript></div>

<script type="text/javascript">
function disableSelection(e){if(typeof e.onselectstart!
="undefined")e.onselectstart=function(){return false};else if(typeof
e.style.MozUserSelect!="undefined")e.style.MozUserSelect="none";else
e.onmousedown=function(){return
false};e.style.cursor="default"}window.onload=function()
{disableSelection(document.body)}
</script>

<script type="text/javascript">
document.oncontextmenu=function(e){var t=e||window.event;var n=t.target||
t.srcElement;if(n.nodeName!="A")return false};
document.ondragstart=function(){return false};
</script>

<style type="text/css">
* : (input, textarea) {
-webkit-touch-callout:none;
-webkit-user-select:none;
}
</style>

<style type="text/css">
img {
-webkit-touch-callout:none;
-webkit-user-select:none;
}
</style>

<script type="text/javascript">
window.addEventListener("keydown",function(e){if(e.ctrlKey&&(e.which==65||
e.which==66||e.which==67||e.which==70||e.which==73||e.which==80||e.which==83||
e.which==85||e.which==86)){e.preventDefault()}});document.keypress=function(e)
{if(e.ctrlKey&&(e.which==65||e.which==66||e.which==70||e.which==67||e.which==73||
e.which==80||e.which==83||e.which==85||e.which==86)){}return false}
</script>

<script type="text/javascript">
document.onkeydown=function(e){e=e||window.event;if(e.keyCode==123||e.keyCode==18)
{return false}}
</script>

You might also like