32 $config = parent::loadConfig(__DIR__);
35 function xoopsCodeFlash(
id, enterFlashPhrase, enterFlashHeightPhrase, enterFlashWidthPhrase, enableDimensionDetect)
37 var selection = xoopsGetSelect(
id);
38 if (selection.length > 0) {
41 var text = prompt(enterFlashPhrase,
"");
43 var domobj = xoopsGetElementById(
id);
44 if ( text.length > 0 ) {
45 var text2 = enableDimensionDetect ?
"" : prompt(enterFlashWidthPhrase,
"");
46 var text3 = enableDimensionDetect ?
"" : prompt(enterFlashHeightPhrase,
"");
47 var result =
"[flash="+text2+
","+text3+
"]" + text +
"[/flash]";
48 xoopsInsertText(domobj, result);
59 return self::decode( $match[5], $match[3], $match[4] );
72 $ts->callbackPatterns[] =
"/\[(swf|flash)=(['\"]?)([^\"']*),([^\"']*)\\2]([^\"]*)\[\/\\1\]/sU";
73 $ts->callbacks[] = __CLASS__ .
"::myCallback";
87 $config = parent::loadConfig(__DIR__);
89 if (!$dimension = @getimagesize(
$url)) {
90 return "<a href='{$url}' rel='external' title=''>{$url}</a>";
99 $dimension[0], $dimension[1]
105 $rp =
"<object width='{$width}' height='{$height}' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'>";
106 $rp .=
"<param name='movie' value='{$url}'>";
107 $rp .=
"<param name='QUALITY' value='high'>";
108 $rp .=
"<PARAM NAME='bgcolor' VALUE='#FFFFFF'>";
109 $rp .=
"<param name='wmode' value='transparent'>";
110 $rp .=
"<embed src='{$url}' width='{$width}' height='{$height}' quality='high' bgcolor='#FFFFFF' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed>";
static decode($url, $width, $height)
static myCallback($match)
load(MyTextSanitizer &$ts)