<?php
if($user->data['is_registered'])
{
echo "<html>
<head>
<script type=\"text/javascript\" src=\"swfobject.js\"></script>
</head>
<body>
<script type=\"text/javascript\">
var multiplayer = new SWFObject(\"player.swf?xml=config.xml&player_skin=skin.swf\", \"multiVideoPlayer\", \"361\", \"283\", \"7\", \"#FFFFFF\", true);
multiplayer.write(\"flashcontent\");
</script>
</body>
</html>";
}
else
{
echo '<html>
<head></head>
<body>Please login to access this page.</body>
</html>';
}
?>
Hi,
Above is a slimmed down version of the full file. How it works is if the user is logged in, it will display the Javascript section. If not, it will ask them to log in.
I used to call the the swf file a different way using "object" as seen below, but this is a complete different swf setup and I can not use the old call system.
<html>
<head>
<script type=\"text/javascript\">if (top.frames.length!=0) top.location=self.document.location;</script>
</head>
<body>
<object type=\"application/x-shockwave-flash\" data=\"player.swf\" width=\"325\" height=\"235\">
<param name=\"movie\" value=\"player.swf\"></object>
</body>
</html>