Created
June 15, 2017 14:18
-
-
Save ajohnclark/6540a6d3bd7b81e59fd452e6eca5e25c to your computer and use it in GitHub Desktop.
Raw Ad for Reddit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# START SAFE AD ROTATE | |
echo '<html><head><title>Ad</title><meta name="robots" content="noindex"></head><body>'; | |
# how to serve it safely | |
# <iframe sandbox="allow-forms allow-scripts allow-same-origin allow-pointer-lock allow-popups" width="300" height="250" frameBorder="0" scrolling="no" style="padding:0;margin:0;" src="http://abc.com/safe-ad.php?ad-id=123id></iframe> | |
$ad_id = $_GET['ad-id']; | |
if ($ad_id == '123'){ | |
echo 'JS COPY PASTE HERE'; | |
} | |
if ($ad_id == '1234'){ | |
echo 'JS COPY PASTE HERE'; | |
} | |
else { | |
echo ''; | |
} | |
echo '</body></html>'; | |
# END SAFE AD ROTATE | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment