FlashLoad

Source Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>FlashLoad</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" type="text/css" href="http://www.netvibes.com/api/0.3/style.css" />
  <script type="text/javascript" src="http://www.netvibes.com/api/0.3/emulation.js"></script>
</head>
<body>

<?php

$url = "";
$dispFlash = false;
$width = "100%";
$height = "300";

if(empty($_COOKIE['url'])) {
	$url = "http://www.geocities.com/mittensdusty/pacman.swf";
	echo "<p><strong>Module is not yet configured.</strong> Please edit it.</p>";
} else {
	$url = $_COOKIE['url'];
	$width = $_COOKIE['width'];
	$height = $_COOKIE['height'];
	$dispFlash = true;
}
?>


<form class="configuration" method="post" action="<?php echo basename($_SERVER['PHP_SELF']); ?>">
	<label for="url">Flash URL:</label>
	<input name="url" id="url" type="text" value="<?=$url ?>" style="width: 90%;" /><br />
	<label for="width" style="clear: none; display: inline;">Width:</label>
	<input name="width" id="width" type="text" value="<?=$width ?>" style="width: 20%; clear: none; display: inline;" />
	<label for="height" style="clear: none; display: inline;">Height:</label>
	<input name="height" id="height" type="text" value="<?=$height ?>" style="width: 20%; clear: none; display: inline;" /><br />
	<em>The width may be set to a percentage or pixel amount, e.g. "100%" or "300". Either the width or the height may extend, if so desired, beyond the dimensions of the module itself.</em>
	<input type="submit" value="Configure" />
</form>

<!-- A List Apart is the best ever. http://www.alistapart.com/articles/flashsatay/ -->

<!--object type="application/x-shockwave-flash" data="<?=$_COOKIE['url'] ?>" width="100%" height="300">
	<param name="flashembed" value="<?=$_COOKIE['url'] ?>" />
</object-->

<?php if($dispFlash == true) { ?>

<p><a href="<?=$url ?>">Load externally</a></p>

<iframe src="<?=$url ?>" width="<?=$width ?>" height="<?=$height ?>" align="center" frameborder="0" scrolling="no" />

<?php
}
?>

</body>
</html>