32 $code =
"<img src='{$this->image_path}/mmssrc.gif' alt='" .
XoopsLocale::MMS .
"' onclick='xoopsCodeMms(\"{$textarea_id}\",\"" . htmlspecialchars(
XoopsLocale::WIDTH, ENT_QUOTES) .
"\");' onmouseover='style.cursor=\"hand\"'/> ";
34 function xoopsCodeMms(
id,enterMmsPhrase, enterMmsHeightPhrase, enterMmsWidthPhrase)
36 var selection = xoopsGetSelect(
id);
37 if (selection.length > 0) {
38 var selection=
"mms://"+selection;
41 var text = prompt(enterMmsPhrase+
" mms or http",
"mms://");
43 var domobj = xoopsGetElementById(
id);
44 if ( text.length > 0 && text !=
"mms://") {
45 var text2 = prompt(enterMmsWidthPhrase,
"480");
46 var text3 = prompt(enterMmsHeightPhrase,
"330");
47 var result =
"[mms="+text2+
","+text3+
"]" + text +
"[/mms]";
48 xoopsInsertText(domobj, result);
64 $ts->patterns[] =
"/\[mms=(['\"]?)([^\"']*),([^\"']*)\\1]([^\"]*)\[\/mms\]/sU";
65 $rp =
"<OBJECT id=videowindow1 height='\\3' width='\\2' classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'>";
66 $rp .=
"<PARAM NAME=\"URL\" VALUE=\"\\4\">";
67 $rp .=
"<PARAM NAME=\"rate\" VALUE=\"1\">";
68 $rp .=
"<PARAM NAME=\"balance\" VALUE=\"0\">";
69 $rp .=
"<PARAM NAME=\"currentPosition\" VALUE=\"0\">";
70 $rp .=
"<PARAM NAME=\"defaultFrame\" VALUE=\"\">";
71 $rp .=
"<PARAM NAME=\"playCount\" VALUE=\"1\">";
72 $rp .=
"<PARAM NAME=\"autoStart\" VALUE=\"0\">";
73 $rp .=
"<PARAM NAME=\"currentMarker\" VALUE=\"0\">";
74 $rp .=
"<PARAM NAME=\"invokeURLs\" VALUE=\"-1\">";
75 $rp .=
"<PARAM NAME=\"baseURL\" VALUE=\"\">";
76 $rp .=
"<PARAM NAME=\"volume\" VALUE=\"50\">";
77 $rp .=
"<PARAM NAME=\"mute\" VALUE=\"0\">";
78 $rp .=
"<PARAM NAME=\"uiMode\" VALUE=\"full\">";
79 $rp .=
"<PARAM NAME=\"stretchToFit\" VALUE=\"0\">";
80 $rp .=
"<PARAM NAME=\"windowlessVideo\" VALUE=\"0\">";
81 $rp .=
"<PARAM NAME=\"enabled\" VALUE=\"-1\">";
82 $rp .=
"<PARAM NAME=\"enableContextMenu\" VALUE=\"-1\">";
83 $rp .=
"<PARAM NAME=\"fullScreen\" VALUE=\"0\">";
84 $rp .=
"<PARAM NAME=\"SAMIStyle\" VALUE=\"\">";
85 $rp .=
"<PARAM NAME=\"SAMILang\" VALUE=\"\">";
86 $rp .=
"<PARAM NAME=\"SAMIFilename\" VALUE=\"\">";
87 $rp .=
"<PARAM NAME=\"captioningID\" VALUE=\"\">";
88 $rp .=
"<PARAM NAME=\"enableErrorDialogs\" VALUE=\"0\">";
89 $rp .=
"<PARAM NAME=\"_cx\" VALUE=\"12700\">";
90 $rp .=
"<PARAM NAME=\"_cy\" VALUE=\"8731\">";
92 $ts->replacements[] = $rp;
load(MyTextSanitizer &$ts)