Created
October 28, 2013 10:27
-
-
Save firedfox/7194553 to your computer and use it in GitHub Desktop.
This file contains 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 | |
header('Content-Type: text/html'); | |
$output = ' | |
<!DOCTYPE html> | |
<html> | |
<body style="margin:0;padding:0"> | |
<script> | |
var createHTML = function(id, url, width, height, flashvars) { | |
return \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="\' + id + \'" width="\' + width + \'" height="\' + height + \'">\' + | |
\'<param name="movie" value="\' + url + \'" />\' + | |
\'<param name="flashvars" value="\' + (flashvars || \'\') + \'" />\' + | |
\'<param name="allowscriptaccess" value="always" />\' + | |
\'<embed type="application/x-shockwave-flash" name="\' + id + \'" width="\' + width + \'" height="\' + height + \'" src="\' + url + \'" flashvars="\' + (flashvars || \'\') + \'" allowscriptaccess="always" />\' + | |
\'</object>\'; | |
}; | |
document.write(createHTML(\'flash\', \'' . htmlspecialchars(urldecode($_GET['url'])) . '\', ' . htmlspecialchars($_GET['width']) . ', ' . htmlspecialchars($_GET['height']) . ')); | |
</script> | |
</body> | |
</html>'; | |
echo $output; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment