I just installed this then I decided to do a bit of tweaking, try this code
PHP Code:
if (!empty($play)) {
$swf = @getimagesize("$bburl/$play.swf");
//check its a shockwave file
if($swf['2'] != 4) {
eval("standarderror(\"".gettemplate("error_flash")."\");");
}
//we dont have numerical height and width, lets try and get it from the getimagesize function
if (!is_numeric($w) or !is_numeric($h)) {
//if we dont get a valid return use some defaults, else use the returned values
$w = iif(empty($swf['0']), 600, $swf['0']);
$h = iif(empty($swf['1']), 400, $swf['1']);
}
if (!$b) {
$b = "{[b][/b]pagebgcolor}";
}
eval("dooutput(\"".gettemplate('flash')."\");");
} else {
eval("standarderror(\"".gettemplate("error_flash")."\");");
}