MCPcopy Create free account
hub / github.com/SimHacker/micropolis / DoOpenLaszlo

Function DoOpenLaszlo

wikimedia/openlaszlo/openlaszlo.php:27–51  ·  view source on GitHub ↗
($input, $argv, &$parser)

Source from the content-addressed store, hash-verified

25
26
27function DoOpenLaszlo($input, $argv, &$parser) {
28 if (!$parser) {
29 $parser =& $GLOBALS['wgParser'];
30 }
31
32 global $wgOutputEncoding;
33 $DefaultEncoding='ISO-8859-1';
34
35 $src = htmlspecialchars(@$argv['src']);
36 $width = htmlspecialchars(@$argv['width']);
37 $height = htmlspecialchars(@$argv['height']);
38 $flashvars = htmlspecialchars(@$argv['flashvars']);
39
40 $out =
41 "<object type=\"application/x-shockwave-flash\" data=\"$src\" width=\"$width\" height=\"$height\"><param name=\"movie\" value=\"$src\"><param name=\"FlashVars\" value=\"$flashvars\"><p>This is supposed to be a flash animation. You'll need the flash plugin and a browser that supports it to view it.</object>";
42
43 if (!isset($openlaszloUsed)) {
44 $out .=
45 "<div style=\"height:0;outline;0;padding:0;margin:0;overflow:hidden;\"><object type=\"application/x-shockwave-flash\" width=\"1\" height=\"1\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\"><param name=\"pluginspage\" value=\"http://www.macromedia.com/go/getflashplayer\"></object></div>";
46 }
47
48 $GLOBALS['openlaszloUsed'] = true;
49
50 return $out;
51}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected