[ Index ] |
|
Code source de e107 0.7.8 |
1 unset($stream_parms); 2 3 if($parm) 4 { 5 parse_str($parm,$tmp); 6 foreach($tmp as $p => $v) 7 { 8 $stream_parms[$p]=$v; 9 } 10 } 11 12 $stream_parms['autostart'] = isset($stream_parms['autostart']) ? $stream_parms['autostart'] : 'true'; 13 $stream_parms['showcontrols'] = isset($stream_parms['showcontrols']) ? $stream_parms['showcontrols'] : 'true'; 14 $stream_parms['showstatusbar'] = isset($stream_parms['showstatusbar']) ? $stream_parms['showstatusbar'] : 'true'; 15 $stream_parms['autorewind'] = isset($stream_parms['autorewind']) ? $stream_parms['autorewind'] : 'true'; 16 $stream_parms['showdisplay'] = isset($stream_parms['showdisplay']) ? $stream_parms['showdisplay'] : 'true'; 17 18 if (isset($stream_parms['width'])) { 19 $width = $stream_parms['width']; 20 unset($stream_parms['width']); 21 } else { 22 $width = '320'; 23 } 24 25 if (isset($stream_parms['height'])) { 26 $height = $stream_parms['height']; 27 unset($stream_parms['height']); 28 } else { 29 $height = '360'; 30 } 31 32 $parmStr=""; 33 foreach($stream_parms as $k => $v) 34 { 35 $MozparmStr .= "<param name='".$tp -> toAttribute($k)."' value='".$tp -> toAttribute($v)."'>\n"; 36 $IEparmStr .= $tp -> toAttribute($k)."='".$tp -> toAttribute($v)."' "; 37 } 38 39 $ret = " 40 <object id='MediaPlayer' classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' standby='Loading Microsoft® Windows® Media Player components...' type='application/x-oleobject' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112' width='".$tp -> toAttribute($width)."' height='".$tp -> toAttribute($height)."'>\n"; 41 $ret .= "<param name='filename' value='".$tp -> toAttribute($code_text)."'>\n"; 42 $ret .= $MozparmStr; 43 $ret .= "<embed src='".$tp -> toAttribute($code_text)."' width='".$tp -> toAttribute($width)."' height='".$tp -> toAttribute($height)."' id='mediaPlayer' name='mediaPlayer' {$IEparmStr}> 44 </object> 45 "; 46 47 return $ret; 48 49 50 51
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |