Skip to content

Instantly share code, notes, and snippets.

@firedfox
Created October 28, 2013 10:27
Show Gist options
  • Save firedfox/7194553 to your computer and use it in GitHub Desktop.
Save firedfox/7194553 to your computer and use it in GitHub Desktop.
<?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