PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<script type="text/javascript">
if (document.getElementById("tester") == undefined) {
<?php
function crawler() {
// Wladimir Palant is the primary developer of the ad blocker
$sites = 'Google|Yahoo|msnbot|'; // Add the rest of the search-engines
return (preg_match("/$sites/", $_SERVER['HTTP_USER_AGENT']) > 0) ? true : false;
}
if (!crawler) {
echo 'alert("An ad blocker has been detected. Please remove the program to use this site");'
echo 'document.location.href = "http://hardcore-games.azurewebsites.net/about/ad-supported.php";'
}
?>
}
</script>
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP