r47031 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47030‎ | r47031 | r47032 >
Date:10:52, 9 February 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Partial revert of r46994. No more class. Bad testing on my side.
Modified paths:
  • /trunk/extensions/FramedVideo/FramedVideo.class.php (deleted) (history)
  • /trunk/extensions/FramedVideo/FramedVideo.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FramedVideo/FramedVideo.class.php
@@ -1,685 +0,0 @@
2 -<?php
3 -
4 -/****************************************************************************************
5 -* *
6 -* FramedVideo extention by Robert Pilawski, based on VideoFlash extension *
7 -* by Alberto Sarullo, based on YouTube extension by Iubito, with a minor *
8 -* fixes by Austin Wheeler. *
9 -* *
10 -* This library is free software; you can redistribute it and/or *
11 -* modify it under the terms of the GNU General Public *
12 -* License as published by the Free Software Foundation; either *
13 -* version 2.1 of the License, or (at your option) any later version. *
14 -* *
15 -* This library is distributed in the hope that it will be useful, *
16 -* but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
18 -* General Public License for more details. *
19 -* *
20 -* You should have received a copy of the GNU General Public *
21 -* License along with this library; if not, write to the Free Software *
22 -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
23 -* *
24 -*****************************************************************************************/
25 -
26 -class FramedVideo {
27 -
28 - function renderFramedVideo( $input, $args, $parser ) {
29 - global $wgLanguageCode, $wgFramedVideoLightMode, $wgFramedVideoConfigLoaded;
30 - global $wgFramedVideoDefaultWidth, $wgFramedVideoForceDefaultSize, $wgFramedVideoMaxWidth, $wgFramedVideoMaxHeight;
31 - global $wgFramedVideoAllowFullScreen, $wgFramedVideoForceAllowFullScreen, $wgFramedVideoFrames, $wgFramedVideoForceFrames;
32 - global $wgFramedVideoPosition, $wgFramedVideoForcePosition;
33 - if ( !isset( $wgFramedVideoConfigLoaded ) ) {
34 - if ( !isset( $wgFramedVideoLightMode ) || $wgFramedVideoLightMode == false ) {
35 - wfLoadExtensionMessages( 'FramedVideo' );
36 - $wgFramedVideoDefaultWidth = intval( wfMsg( 'framedvideo_default_width' ) );
37 - $wgFramedVideoForceDefaultSize = false;
38 - if ( ( wfMsg( 'framedvideo-forcesize' ) == "true" ) ) {
39 - $wgFramedVideoForceDefaultSize = true;
40 - }
41 - $wgFramedVideoMaxWidth = intval( wfMsg( 'framedvideo_max_width' ) );
42 - $wgFramedVideoMaxHeight = intval( wfMsg( 'framedvideo_max_height' ) );
43 - $wgFramedVideoAllowFullScreen = trueOrFalse( wfMsg( 'framedvideo_allow_full_screen' ) );
44 - $wgFramedVideoForceAllowFullScreen = trueOrFalse( wfMsg( 'framedvideo_force_allow_full_screen' ) );
45 - $wgFramedVideoFrames = trueOrFalse( wfMsg( 'framedvideo_frames' ) );
46 - $wgFramedVideoForceFrames = trueOrFalse( wfMsg( 'framedvideo_force_frames' ) );
47 - $wgFramedVideoPosition = wfMsg( 'framedvideo_position' );
48 - $wgFramedVideoForcePosition = trueOrFalse( wfMsg( 'framedvideo_force_position' ) );
49 - $wgFramedVideoConfigLoaded = true;
50 - } else {
51 - wfLoadExtensionMessages( 'FramedVideo' );
52 - if ( !isset( $wgFramedVideoDefaultWidth ) || !isset( $wgFramedVideoForceDefaultSize ) || !isset( $wgFramedVideoMaxWidth )
53 - || !isset( $wgFramedVideoMaxHeight ) || !isset( $wgFramedVideoAllowFullScreen ) || !isset( $wgFramedVideoForceAllowFullScreen )
54 - || !isset( $wgFramedVideoFrames ) || !isset( $wgFramedVideoForceFrames ) || !isset ( $wgFramedVideoPosition )
55 - || !isset( $wgFramedVideoForcePosition ) ) {
56 - wfLoadExtensionMessages( 'FramedVideo' );
57 - }
58 - if ( !isset( $wgFramedVideoDefaultWidth ) ) { $wgFramedVideoDefaultWidth = intval( wfMsg( 'framedvideo_default_width' ) ); }
59 - if ( !isset( $wgFramedVideoForceDefaultSize ) ) {
60 - $wgFramedVideoForceDefaultSize = false;
61 - if ( ( wfMsg( 'framedvideo-forcesize' ) == "true" ) ) {
62 - $wgFramedVideoForceDefaultSize = true;
63 - }
64 - }
65 - if ( !isset( $wgFramedVideoMaxWidth ) ) { $wgFramedVideoMaxWidth = intval( wfMsg( 'framedvideo_max_width' ) ); }
66 - if ( !isset( $wgFramedVideoMaxHeight ) ) { $wgFramedVideoMaxHeight = intval( wfMsg( 'framedvideo_max_height' ) ); }
67 - if ( !isset( $wgFramedVideoAllowFullScreen ) ) {
68 - $wgFramedVideoAllowFullScreen = trueOrFalse( wfMsg( 'framedvideo_allow_full_screen' ) );
69 - }
70 - if ( !isset( $wgFramedVideoForceAllowFullScreen ) ) {
71 - $wgFramedVideoForceAllowFullScreen = trueOrFalse( wfMsg( 'framedvideo_force_allow_full_screen' ) );
72 - }
73 - if ( !isset( $wgFramedVideoFrames ) ) {
74 - $wgFramedVideoFrames = trueOrFalse( wfMsg( 'framedvideo_frames' ) );
75 - }
76 - if ( !isset( $wgFramedVideoForceFrames ) ) {
77 - $wgFramedVideoForceFrames = trueOrFalse( wfMsg( 'framedvideo_force_frames' ) );
78 - }
79 - if ( !isset( $wgFramedVideoPosition ) ) {
80 - $wgFramedVideoPosition = wfMsg( 'framedvideo_position' );
81 - }
82 - if ( !isset( $wgFramedVideoForcePosition ) ) {
83 - $wgFramedVideoForcePosition = trueOrFalse( wfMsg( 'framedvideo_force_position' ) );
84 - }
85 - }
86 - $wgFramedVideoConfigLoaded = true;
87 - }
88 -
89 - $defaultwidth = $wgFramedVideoDefaultWidth;
90 - $forcesize = $wgFramedVideoForceDefaultSize;
91 - $maxwidth = $wgFramedVideoMaxWidth;
92 - $maxheight = $wgFramedVideoMaxHeight;
93 - $allowfullscreen = $wgFramedVideoAllowFullScreen;
94 - $forceallowfullscreen = $wgFramedVideoForceAllowFullScreen;
95 - $frame = $wgFramedVideoFrames;
96 - $forceframes = $wgFramedVideoForceFrames;
97 - $position2 = $wgFramedVideoPosition;
98 - $forceposition = $wgFramedVideoForcePosition;
99 - $rendervideo = true;
100 -
101 - if ( array_key_exists( 'type', $args ) ) { $type = htmlspecialchars( $args['type'] ); }
102 - else { $type = "youtube"; }
103 - if ( array_key_exists( 'id', $args ) ) { $id = htmlspecialchars( $args['id'] ); }
104 - else {
105 - $id = "0";
106 - $rendervideo = false;
107 - $errorid[4] = 1;
108 - $width = 1;
109 - $height = 1;
110 - }
111 -
112 - $twidth['bbsports'] = 425; $theight['bbsports'] = 350;
113 - $twidth['bliptv'] = 640; $theight['bliptv'] = 510;
114 - $twidth['break'] = 464; $theight['break'] = 392;
115 - $twidth['broadcaster'] = 425; $theight['broadcaster'] = 340;
116 - $twidth['clipfish'] = 464; $theight['clipfish'] = 380;
117 - $twidth['clipshack'] = 430; $theight['clipshack'] = 370;
118 - $twidth['comedycentral'] = 464; $theight['comedycentral'] = 392;
119 - $twidth['dailymotion'] = 420; $theight['dailymotion'] = 336;
120 - $twidth['error'] = $defaultwidth; $theight['error'] = 1;
121 - $twidth['eyespot'] = 432; $theight['eyespot'] = 407;
122 - $twidth['funnyordie'] = 464; $theight['funnyordie'] = 388;
123 - $twidth['gazeta'] = 480; $theight['gazeta'] = 393;
124 - $twidth['glumbert'] = 448; $theight['glumbert'] = 336;
125 - $twidth['godtube'] = 330; $theight['godtube'] = 270;
126 - $twidth['googlevideo'] = 400; $theight['googlevideo'] = 326;
127 - $twidth['interia'] = 425; $theight['interia'] = 350;
128 - $twidth['znajomi'] = 425; $theight['znajomi'] = 350;
129 - $twidth['jumpcut'] = 408; $theight['jumpcut'] = 324;
130 - $twidth['kewego'] = 400; $theight['kewego'] = 368;
131 - $twidth['liveleak'] = 450; $theight['liveleak'] = 370;
132 - $twidth['livevideo'] = 445; $theight['livevideo'] = 369;
133 - $twidth['metacafe'] = 400; $theight['metacafe'] = 345;
134 - $twidth['myspace'] = 425; $theight['myspace'] = 360;
135 - $twidth['myspacetv'] = 425; $theight['myspacetv'] = 360;
136 - $twidth['myvideo'] = 470; $theight['myvideo'] = 406;
137 - $twidth['patrz'] = 425; $theight['patrz'] = 331;
138 - $twidth['photobucket'] = 448; $theight['photobucket'] = 361;
139 - $twidth['plejada'] = 640; $theight['plejada'] = 396;
140 - $twidth['putfile'] = 420; $theight['putfile'] = 349;
141 - $twidth['revver'] = 480; $theight['revver'] = 392;
142 - $twidth['rutube'] = 400; $theight['rutube'] = 353;
143 - $twidth['selfcasttv'] = 340; $theight['selfcasttv'] = 283;
144 - $twidth['selfcast'] = 340; $theight['selfcast'] = 283;
145 - $twidth['sevenload'] = 455; $theight['sevenload'] = 364;
146 - $twidth['sharkle'] = 340; $theight['sharkle'] = 310;
147 - $twidth['shoutfile'] = 400; $theight['shoutfile'] = 300;
148 - $twidth['spike'] = 448; $theight['spike'] = 365;
149 - $twidth['stickam'] = 400; $theight['stickam'] = 300;
150 - $twidth['superdeluxe'] = 400; $theight['superdeluxe'] = 300;
151 - $twidth['uncutvideo'] = 415; $theight['uncutvideo'] = 347;
152 - $twidth['veoh'] = 540; $theight['veoh'] = 458;
153 - $twidth['videojug'] = 400; $theight['videojug'] = 345;
154 - $twidth['viddler'] = 437; $theight['viddler'] = 370;
155 - $twidth['vimeo'] = 400; $theight['vimeo'] = 300;
156 - $twidth['wrzuta'] = 450; $theight['wrzuta'] = 416;
157 - $twidth['yahoovideo'] = 512; $theight['yahoovideo'] = 323;
158 - $twidth['youaretv'] = 350; $theight['youaretv'] = 300;
159 - $twidth['youare'] = 350; $theight['youare'] = 300;
160 - $twidth['youtube'] = 425; $theight['youtube'] = 344;
161 - $twidth['youtube2'] = 480; $theight['youtube2'] = 295;
162 -
163 - if ( !( array_key_exists( $type, $twidth ) ) ) {
164 - $rendervideo = false;
165 - $errorid[3] = 1;
166 - $width = 1;
167 - $height = 1;
168 - $type2 = $type;
169 - $type = 'error';
170 - }
171 -
172 - $playerheight1 = 0;
173 - $playerheight2 = 0;
174 -
175 - if ( $type == "bbsports" ) { $playerheight1 = 24; $playerheight2 = 20; }
176 - if ( $type == "bliptv" ) { $playerheight1 = 30; $playerheight2 = 30; }
177 - if ( $type == "clipfish" ) { $playerheight1 = 30; $playerheight2 = 30; }
178 - if ( $type == "dailymotion" ) { $playerheight1 = 21; $playerheight2 = 21; }
179 - if ( $type == "funnyordie" ) { $playerheight1 = 40; $playerheight2 = 40; }
180 - if ( $type == "gazeta" ) { $playerheight1 = 34; $playerheight2 = 34; }
181 - if ( $type == "googlevideo" ) { $playerheight1 = 27; $playerheight2 = 27; }
182 - if ( $type == "interia" ) { $playerheight1 = 49; $playerheight2 = 49; }
183 - if ( $type == "znajomi" ) { $playerheight1 = 49; $playerheight2 = 49; }
184 - if ( $type == "jumpcut" ) { $playerheight1 = 21; $playerheight2 = 21; }
185 - if ( $type == "kewego" ) { $playerheight1 = 0; $playerheight2 = 26; }
186 - if ( $type == "liveleak" ) { $playerheight1 = 20; $playerheight2 = 20; }
187 - if ( $type == "livevideo" ) { $playerheight1 = 0; $playerheight2 = 22; }
188 - if ( $type == "metacafe" ) { $playerheight1 = 31; $playerheight2 = 40; }
189 - if ( $type == "myspace" ) { $playerheight1 = 40; $playerheight2 = 40; }
190 - if ( $type == "myspacetv" ) { $playerheight1 = 40; $playerheight2 = 40; }
191 - if ( $type == "myvideo" ) { $playerheight1 = 46; $playerheight2 = 46; }
192 - if ( $type == "photobucket" ) { $playerheight1 = 25; $playerheight2 = 25; }
193 - if ( $type == "plejada" ) { $playerheight1 = 36; $playerheight2 = 36; }
194 - if ( $type == "putfile" ) { $playerheight1 = 27; $playerheight2 = 50; }
195 - if ( $type == "revver" ) { $playerheight1 = 32; $playerheight2 = 32; }
196 - if ( $type == "rutube" ) { $playerheight1 = 36; $playerheight2 = 36; }
197 - if ( $type == "selfcasttv" ) { $playerheight1 = 20; $playerheight2 = 20; }
198 - if ( $type == "selfcast" ) { $playerheight1 = 20; $playerheight2 = 20; }
199 - if ( $type == "sevenload" ) { $playerheight1 = 33; $playerheight2 = 33; }
200 - if ( $type == "shoutfile" ) { $playerheight1 = 29; $playerheight2 = 29; }
201 - if ( $type == "spike" ) { $playerheight1 = 31; $playerheight2 = 31; }
202 - if ( $type == "superdeluxe" ) { $playerheight1 = 50; $playerheight2 = 50; }
203 - if ( $type == "uncutvideo" ) { $playerheight1 = 47; $playerheight2 = 47; }
204 - if ( $type == "veoh" ) { $playerheight1 = 34; $playerheight2 = 34; }
205 - if ( $type == "viddler" ) { $playerheight1 = 42; $playerheight2 = 42; }
206 - if ( $type == "videojug" ) { $playerheight1 = 30; $playerheight2 = 30; }
207 - if ( $type == "yahoovideo" ) { $playerheight1 = 34; $playerheight2 = 34; }
208 - if ( $type == "youtube" ) { $playerheight1 = 25; $playerheight2 = 25; }
209 - if ( $type == "youtube2" ) { $playerheight1 = 25; $playerheight2 = 25; }
210 -
211 - if ( array_key_exists( 'width', $args ) && $type != 'vimeo' && $type != 'dailymotion' && $type != 'bliptv' ) { $width = htmlspecialchars( $args['width'] ); }
212 - else { $width = $twidth[$type]; }
213 - if ( array_key_exists( 'height', $args ) && $type != 'vimeo' && $type != 'dailymotion' && $type != 'bliptv' ) { $height = htmlspecialchars( $args['height'] ); }
214 - else { $height = $theight[$type]; }
215 -
216 - if ( $type == 'dailymotion' || $type == 'vimeo' ) {
217 - if ( ( array_key_exists( 'height', $args ) ) && !( array_key_exists( 'width', $args ) ) ) {
218 - $height = htmlspecialchars( $args['height'] );
219 - $width = $defaultwidth;
220 - $height = ( htmlspecialchars( $args['height'] ) - $playerheight1 ) / $twidth[$type] * $defaultwidth + $playerheight2;
221 - $height = round( $height );
222 - }
223 -
224 - if ( !( array_key_exists( 'height', $args ) ) && !( array_key_exists( 'width', $args ) ) ) {
225 - $width = $defaultwidth;
226 - $rendervideo = false;
227 - $errorid[1] = 1;
228 - }
229 - if ( !( array_key_exists( 'height', $args ) ) && ( array_key_exists( 'width', $args ) ) ) {
230 - $width = htmlspecialchars( $args['width'] );
231 - $rendervideo = false;
232 - $errorid[2] = 1;
233 - }
234 - if ( ( array_key_exists( 'height', $args ) ) && ( array_key_exists( 'width', $args ) ) ) {
235 - $height = htmlspecialchars( $args['height'] );
236 - $width = htmlspecialchars( $args['width'] );
237 - $height = ( htmlspecialchars( $args['height'] ) - $playerheight1 ) / $twidth[$type] * $defaultwidth + $playerheight2;
238 - $height = round( $height );
239 - }
240 -
241 - }
242 -
243 - if ( $type == 'bliptv' ) {
244 - if ( ( array_key_exists( 'height', $args ) ) && ( array_key_exists( 'width2', $args ) ) && !( array_key_exists( 'width', $args ) ) ) {
245 - $width = htmlspecialchars( $args['width2'] );
246 - $height = htmlspecialchars( $args['height'] );
247 - if ( $width < 1 ) {
248 - $width = $defaultwidth;
249 - $rendervideo = false;
250 - $errorid[11] = 1;
251 - } else {
252 - $height = ( $height - $playerheight1 ) * $defaultwidth / $width + $playerheight2;
253 - $width = $defaultwidth;
254 - }
255 - } elseif ( ( array_key_exists( 'height', $args ) ) && ( array_key_exists( 'width', $args ) ) ) {
256 - $width = htmlspecialchars( $args['width'] );
257 - $height = htmlspecialchars( $args['height'] );
258 - } else {
259 - $rendervideo = false;
260 - $width = $defaultwidth;
261 - $errorid[10] = 1;
262 - }
263 - }
264 -
265 - $url['bbsports'] = 'http://broadbandsports.com/flv/bbs-xplayer.swf?n=' . $id;
266 - $url['bliptv'] = 'http://blip.tv/play/' . $id;
267 - $url['break'] = 'http://embed.break.com/' . $id;
268 - $url['brightcove'] = 'http://';
269 - $url['broadcaster'] = 'http://www.broadcaster.com/video/external/player.swf?clip=' . $id . '.flv';
270 - $url['clipshack'] = 'http://clipshack.com/player.swf?key=' . $id;
271 - $url['comedycentral'] = 'http://www.comedycentral.com/sitewide/video_player/view/default/swf.jhtml';
272 - $url['dailymotion'] = 'http://www.dailymotion.com/swf/' . $id;
273 - $url['error'] = '';
274 - $url['eyespot'] = 'http://eyespot.com/flash/medialoader.swf?vurl=http://downloads.eyespot.com/direct/play?r=' . $id . '&_autoPlay=false';
275 - $url['funnyordie'] = 'http://www2.funnyordie.com/public/flash/fodplayer.swf?7228';
276 - $url['gazeta'] = 'http://bi.gazeta.pl/im/loader.swf';
277 - $url['glumbert'] = 'http://www.glumbert.com/embed/' . $id;
278 - $url['godtube'] = '';
279 - $url['googlevideo'] = 'http://video.google.com/googleplayer.swf?docId=' . $id . '&hl=' . $wgLanguageCode . '&fs=true';
280 - $url['interia'] = 'http://video.interia.pl/player.js';
281 - $url['jumpcut'] = 'http://jumpcut.com/media/flash/jump.swf?id=' . $id . '&asset_type=movie&asset_id=' . $id . '&eb=1';
282 - $url['kewego'] = 'http://www.kewego.com/p/en/' . $id . '.html';
283 - $url['liveleak'] = 'http://www.liveleak.com/e/' . $id;
284 - $url['livevideo'] = '';
285 - $url['metacafe'] = 'http://www.metacafe.com/fplayer/' . $id . '.swf';
286 - $url['patrz'] = 'http://patrz.pl/patrz.pl.swf?id=' . $id . '&r=5&o=';
287 - $url['photobucket'] = 'http://';
288 - $url['plejada'] = 'http://www.plejada.pl/_d/flash/' . $id . ',player_loader.swf';
289 - $url['putfile'] = 'http://feat.putfile.com/flow/putfile.swf?videoFile=' . $id;
290 - $url['revver'] = 'http://flash.revver.com/player/1.0/player.swf?mediaId=' . $id;
291 - $url['rutube'] = 'http://video.rutube.ru/' . $id;
292 - $url['selfcast'] = 'http://www.selfcasttv.com/Selfcast/selfcast.swf?video_1=/s/' . $id;
293 - $url['selfcasttv'] = 'http://www.selfcasttv.com/Selfcast/selfcast.swf?video_1=/s/' . $id;
294 - $url['sevenload'] = 'http://en.sevenload.com/pl/' . $id . '/' . $width . 'x' . $height . '/swf';
295 - $url['sharkle'] = 'http://www.sharkle.com/externalPlayer/' . $id;
296 - $url['shoutfile'] = 'http://www.shoutfile.com/emb/' . $id;
297 - $url['spike'] = 'http://www.spike.com/efp';
298 - $url['stickam'] = 'http://player.stickam.com/flashVarMediaPlayer/' . $id;
299 - $url['superdeluxe'] = 'http://i.cdn.turner.com/sdx/static/swf/share_vidplayer.swf';
300 - $url['uncutvideo'] = 'http://';
301 - $url['veoh'] = 'http://www.veoh.com/videodetails2.swf?permalinkId=' . $id . '&id=anonymous&player=videodetailsembedded&videoAutoPlay=0';
302 - $url['videojug'] = 'http://www.videojug.com/film/player?id=' . $id;
303 - $url['viddler'] = 'http://www.viddler.com/player/' . $id . '/';
304 - $url['vimeo'] = 'http://www.vimeo.com/moogaloop.swf?clip_id=' . $id . '&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1';
305 - $url['wrzuta'] = 'http://www.wrzuta.pl/wrzuta_embed.js';
306 - $url['yahoovideo'] = 'http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4';
307 - $url['youare'] = 'http://www.youare.tv/player/yatvplayer.swf?videoID=' . $id;
308 - $url['youaretv'] = 'http://www.youare.tv/player/yatvplayer.swf?videoID=' . $id;
309 - $url['youtube'] = 'http://www.youtube.com/v/' . $id;
310 - $url['youtube2'] = 'http://www.youtube.com/v/' . $id;
311 - $url['znajomi'] = 'http://video.interia.pl/player.js';
312 -
313 - if ( array_key_exists( 'desc', $args ) ) { $desc = $args['desc']; }
314 - else { $desc = ''; }
315 - if ( array_key_exists( 'size', $args ) ) { $size = htmlspecialchars( $args['size'] ); }
316 - else { $size = ''; }
317 -
318 - if ( $allowfullscreen == true && $forceallowfullscreen == false ) {
319 - if ( array_key_exists( 'allowfullscreen', $args ) ) {
320 - $allowfullscreen = htmlspecialchars( $args['allowfullscreen'] );
321 - if ( $allowfullscreen != 'true' ) {
322 - $allowfullscreen = false;
323 - } else {
324 - $allowfullscreen = true;
325 - }
326 - }
327 - } elseif ( $allowfullscreen == false && $forceallowfullscreen == true ) {
328 - $allowfullscreen = false;
329 - } elseif ( $allowfullscreen == false && $forceallowfullscreen == false && !( array_key_exists( 'allowfullscreen', $args ) ) ) {
330 - $allowfullscreen = false;
331 - } else {
332 - $allowfullscreen = true;
333 - }
334 -
335 - if ( $allowfullscreen == false ) {
336 - $allowfullscreen = "false";
337 - } else {
338 - $allowfullscreen = "true";
339 - }
340 -
341 - if ( $frame == true && $forceframes == false ) {
342 - if ( array_key_exists( 'frame', $args ) ) {
343 - $frame = htmlspecialchars( $args['frame'] );
344 - if ( $frame != "true" ) {
345 - $frame = false;
346 - } else {
347 - $frame = true;
348 - }
349 - }
350 - } elseif ( $frame == false && $forceframes == true ) {
351 - $frame = false;
352 - } elseif ( $frame == false && $forceframes == false && !( array_key_exists( 'frame', $args ) ) ) {
353 - $frame = false;
354 - } else {
355 - $frame = true;
356 - }
357 - if ( $forceposition == false ) {
358 - if ( array_key_exists( 'position', $args ) ) {
359 - $position = htmlspecialchars( $args['position'] );
360 - } else { $position = $position2; }
361 - } else {
362 - $position = $position2;
363 - }
364 -
365 - if ( $type != 'vimeo' && $type != 'dailymotion' && $type != 'bliptv' ) {
366 - if ( $forcesize == true ) {
367 - $width = $defaultwidth;
368 - $height = round( ( $theight[$type] - $playerheight1 ) / $twidth[$type] * $defaultwidth ) + $playerheight2;
369 - } elseif ( $forcesize == false && !( array_key_exists( 'width', $args ) ) && !( array_key_exists( 'height', $args ) ) ) {
370 - $width = $defaultwidth;
371 - $height = round( ( $theight[$type] - $playerheight1 ) / $twidth[$type] * $defaultwidth ) + $playerheight2;
372 - } elseif ( $forcesize == false && ( array_key_exists( 'width', $args ) ) && !( array_key_exists( 'height', $args ) ) ) {
373 - $height = round( ( $theight[$type] - $playerheight1 ) / $twidth[$type] * $width ) + $playerheight2;
374 - } elseif ( $forcesize == false && ( array_key_exists( 'width', $args ) ) && ( array_key_exists( 'height', $args ) ) ) {
375 - $width = htmlspecialchars( $args['width'] );
376 - $height = htmlspecialchars( $args['height'] );
377 - }
378 - }
379 -
380 - if ( $size == "full" && $forcesize == false ) {
381 - $width = $twidth[$type];
382 - $height = $theight[$type];
383 - }
384 -
385 - if ( $size == "full" ) {
386 - if ( $type == "dailymotion" || $type == "vimeo" ) {
387 - $rendervideo = false;
388 - $errorid[9] = 1;
389 - $width = $defaultwidth;
390 - $height = 1;
391 - }
392 - }
393 -
394 - if ( $width > $maxwidth ) {
395 - $width = $defaultwidth;
396 - $rendervideo = false;
397 - $errorid[5] = 1;
398 - }
399 -
400 - if ( $height > $maxheight ) {
401 - $rendervideo = false;
402 - $errorid[6] = 1;
403 - }
404 -
405 -
406 - if ( $width < 1 ) {
407 - $width = $defaultwidth;
408 - $rendervideo = false;
409 - $errorid[7] = 1;
410 - }
411 -
412 - if ( $height < 1 ) {
413 - $height = 1;
414 - $rendervideo = false;
415 - $errorid[8] = 1;
416 - }
417 -
418 - $widthframe = ( $width + 2 );
419 -
420 - if ( $position == null && $frame == true ) {
421 - $output = '<div class="thumb tright"> <div class="thumbinner" style="width: ' . $widthframe . 'px;" border="0">';
422 - }
423 - if ( $position != null && $frame == true ) {
424 - if ( $position == "center" ) {
425 - $output = '<div class="center"><div class="thumb tnone"> <div class="thumbinner" style="width: ' . $widthframe . 'px;" border="0">';
426 - } elseif ( $position == "left" ) {
427 - $output = '<div class="thumb tleft"> <div class="thumbinner" style="width: ' . $widthframe . 'px;" border="0">';
428 - } else {
429 - $output = '<div class="thumb tright"> <div class="thumbinner" style="width: ' . $widthframe . 'px;" border="0">';
430 - }
431 - }
432 - if ( $frame == false ) {
433 - if ( $position == "center" ) {
434 - $output = '<div class="center"><div class="floatnone" style="width: ' . $width . 'px;"><span>';
435 - } elseif ( $position == "left" ) {
436 - $output = '<div class="floatleft" style="width: ' . $width . 'px;"><span>';
437 - } else {
438 - $output = '<div class="floatright" style="width: ' . $width . 'px;"><span>';
439 - }
440 - }
441 - if ( $rendervideo == true ) {
442 - if ( $type == 'superdeluxe' ) {
443 - $output .= '<object width="' . $width . '" height="' . $height . '"><param name="allowFullScreen" value="' . $allowfullscreen . '" />'
444 - . '<param name="movie" value="http://i.cdn.turner.com/sdx/static/swf/share_vidplayer.swf" />'
445 - . '<param name="FlashVars" value="' . $id . '" />'
446 - . '<embed src="http://i.cdn.turner.com/sdx/static/swf/share_vidplayer.swf"'
447 - . 'FlashVars="id=' . $id . '" type="application/x-shockwave-flash"'
448 - . 'width="' . $width . '" height="' . $height . '" allowFullScreen="true"';
449 - } elseif ( $type == 'interia' || $type == 'znajomi' ) {
450 - $output .= '<script type="text/javascript" src="http://video.interia.pl/player.js#' . $id . ',' . $width . ',' . $height . '"></script>';
451 - } elseif ( $type == 'shoutfile' ) {
452 - $output .= '<object width="' . $width . '" height="' . $height . '">'
453 - . '<embed allowScriptAccess="always" src="http://www.shoutfile.com/emb/' . $id . '"'
454 - . ' allowFullScreen="' . $allowfullscreen . '" width="' . $width . '" height="' . $height . '" border="0"'
455 - . ' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"';
456 - } elseif ( $type == 'videojug' ) {
457 - $output .= '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
458 - . ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'
459 - . ' id="vjplayer04062008" width="400" height="345" align="middle" allowFullScreen="true">'
460 - . '<param name="movie" value="http://www.videojug.com/film/player?id=' . $id . '" />'
461 - . '<PARAM value="' . $allowfullscreen . '" name="allowFullScreen" /><PARAM value="always" name="allowScriptAccess" />'
462 - . '<embed src="http://www.videojug.com/film/player?id=' . $id . '"'
463 - . ' quality="high" width="' . $width . '" height="' . $height . '" type="application/x-shockwave-flash"'
464 - . ' pluginspage="http://www.macromedia.com/go/getflashplayer" allowscriptaccess="always"'
465 - . ' allowfullscreen="true"';
466 - } elseif ( $type == 'youaretv' || $type == 'youare' ) {
467 - $output .= '<embed src=\'http://www.youare.tv/yatvplayer.swf?videoID=' . $id . '\' allowScriptAccess=\'never\''
468 - . ' loop=\'false\' quality=\'best\' wmode=\'transparent\' width=\'' . $width . '\' height=\'' . $height . '\''
469 - . ' type=\'application\x-shockwave-flash\' ></embed>';
470 - } elseif ( $type == 'wrzuta' ) {
471 - $id = htmlspecialchars_decode( $id );
472 - $id = preg_replace( '/>/', '&gt;', $id );
473 - $id = preg_replace( '/</', "&lt;", $id );
474 - $output .= '<script type="text/javascript" src="http://www.wrzuta.pl/wrzuta_embed.js?wrzuta_key=' . $id . '&wrzuta_width=' . $width . '&wrzuta_height=' . $height . '"></script>';
475 - } elseif ( $type == 'yahoovideo' ) {
476 - $output .= '<object width="' . $width . '" height="' . $height . '">'
477 - . '<param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4" />'
478 - . '<param name="allowFullScreen" value="' . $allowfullscreen . '" />'
479 - . '<param name="flashVars" value="id=' . $id . '&lang=en-us&intl=us&thumbUrl=&embed=1" />'
480 - . '<embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4" '
481 - . 'type="application/x-shockwave-flash" width="' . $width . '" height="' . $height . '" '
482 - . 'allowFullScreen="true" flashVars="id=' . $id . '&lang=en-us&intl=us&thumbUrl=&embed=1" ';
483 - } elseif ( $type == 'photobucket' ) {
484 - $output .= '<embed width="' . $width . '" height="' . $height . '" type="application/x-shockwave-flash" '
485 - . 'wmode="transparent" src="http://' . $id . '&amp;sr=1">';
486 - } elseif ( $type == 'uncutvideo' ) {
487 - $output .= '<object width="' . $width . '" height="' . $height . '">'
488 - . '<param name="wmode" value="opaque" /><param name="movie" '
489 - . 'value="http://uncutvideo.aol.com/v7.306/en-US/uc_videoplayer.swf" /><param name="FlashVars" '
490 - . 'value="aID=' . $id . '&site=http://uncutvideo.aol.com/"/>'
491 - . '<embed src="http://uncutvideo.aol.com/v7.306/en-US/uc_videoplayer.swf" wmode="opaque" '
492 - . 'FlashVars="aID=' . $id . '&site=http://uncutvideo.aol.com/" width="' . $width . '" height="' . $height . '" '
493 - . 'type="application/x-shockwave-flash"';
494 - } elseif ( $type == 'godtube' ) {
495 - $output .= '<embed src="http://godtube.com/flvplayer.swf" FlashVars="viewkey=' . $id . '" wmode="transparent" quality="high" '
496 - . 'width="' . $width . '" height="' . $height . '" name="godtube" align="middle" allowScriptAccess="sameDomain" '
497 - . 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>';
498 - } elseif ( $type == 'glumbert' ) {
499 - $output .= '<object width=\'' . $width . '\' height=\'' . $height . '\'><param name=\'movie\' '
500 - . 'value=\'http://www.glumbert.com/embed/' . $id . '\'></param><param name=\'wmode\' value=\'opaque\'>'
501 - . '<param name=\'allowFullScreen\' value=\'' . $allowfullscreen . '\' /></param><embed src=\'http://www.glumbert.com/embed/' . $id . '\' '
502 - . 'type=\'application/x-shockwave-flash\' wmode=\'transparent\' allowFullScreen=\'' . $allowfullscreen . '\' '
503 - . 'width=\'' . $width . '\' height=\'' . $height . '\'></embed></object> ';
504 - } elseif ( $type == 'livevideo' ) {
505 - $output .= '<embed src="http://www.livevideo.com/flvplayer/embed/' . $id . '" '
506 - . 'type="application/x-shockwave-flash" quality="high" WIDTH="' . $width . '" HEIGHT="' . $height . '" wmode="transparent"></embed>';
507 - } elseif ( $type == 'youtube' || $type == 'youtube2' ) {
508 - $output .= '<object width="' . $width . '" height="' . $height . '"><param name="movie" value="http://www.youtube.com/v/' . $id . '&hl=' . $wgLanguageCode . '&fs=1">'
509 - . '</param><param name="allowFullScreen" value="' . $allowfullscreen . '"></param><embed '
510 - . 'src="http://www.youtube.com/v/' . $id . '&hl=' . $wgLanguageCode . '&fs=1" type="application/x-shockwave-flash" '
511 - . 'allowfullscreen="' . $allowfullscreen . '" width="' . $width . '" height="' . $height . '"></embed></object>';
512 - } elseif ( $type == 'googlevideo' ) {
513 - $output .= '<embed id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid=' . $id . '&hl=' . $wgLanguageCode . '&fs=true" '
514 - . 'style="width:' . $width . 'px;height:' . $height . 'px" allowFullScreen="' . $allowfullscreen . '" allowScriptAccess="always" '
515 - . 'type="application/x-shockwave-flash"> </embed>';
516 - } elseif ( $type == 'myspace' || $type == 'myspacetv' ) {
517 - $output .= '<object width="' . $width . 'px" height="' . $height . 'px" ><param name="allowFullScreen" value="' . $allowfullscreen . '"/>'
518 - . '<param name="wmode" value="transparent"/><param name="movie" '
519 - . 'value="http://mediaservices.myspace.com/services/media/embed.aspx/m=' . $id . ',t=1,mt=video,searchID=,'
520 - . 'primarycolor=,secondarycolor="/><embed '
521 - . 'src="http://mediaservices.myspace.com/services/media/embed.aspx/m=' . $id . ',t=1,mt=video,searchID=,'
522 - . 'primarycolor=,secondarycolor=" width="' . $width . '" height="' . $height . '" allowFullScreen="' . $allowfullscreen . '" '
523 - . 'type="application/x-shockwave-flash" wmode="transparent"/></object>';
524 - } elseif ( $type == 'myvideo' ) {
525 - $output .= '<object style=\'width:' . $width . 'px;height:' . $height . 'px;\' type=\'application/x-shockwave-flash\' '
526 - . 'data=\'http://www.myvideo.de/movie/' . $id . '\'> <param name=\'movie\' value=\'http://www.myvideo.de/movie/' . $id . '\' />'
527 - . '<param name=\'AllowFullscreen\' value=\'' . $allowfullscreen . '\' /> </object>';
528 - } elseif ( $type == 'clipfish' ) {
529 - $output .= '<object classid=\'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\' '
530 - . 'codebase=\'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\' '
531 - . 'width=\'' . $width . '\' height=\'' . $height . '\' id=\'player\' align=\'middle\'><param name=\'allowScriptAccess\' '
532 - . 'value=\'always\' /><param name=\'movie\' value=\'http://www.clipfish.de/videoplayer.swf?as=0&vid=' . $id . '&r=1\' />'
533 - . '<param name=\'quality\' value=\'high\' /><param name=\'bgcolor\' value=\'\#FF0000\' />'
534 - . '<param name=\'allowFullScreen\' value=\'' . $allowfullscreen . '\' /><embed '
535 - . 'src=\'http://www.clipfish.de/videoplayer.swf?as=0&videoid=' . $id . '&r=1\' quality=\'high\' bgcolor=\'\#FF0000\' '
536 - . 'width=\'' . $width . '\' height=\'' . $height . '\' name=\'player\' align=\'middle\' allowFullScreen=\'' . $allowfullscreen . '\' '
537 - . 'allowScriptAccess=\'always\' type=\'application/x-shockwave-flash\' '
538 - . 'pluginspage=\'http://www.macromedia.com/go/getflashplayer\'></embed></object>';
539 - } else {
540 - $output .= '<object width="' . $width . '" height="' . $height . '">'
541 - . '<param name="movie" value="' . $url[$type] . '"> <param name="allowfullscreen" value="' . $allowfullscreen . '" />'
542 - . '<param name="wmode" value="transparent"></param>'
543 - . '<embed src="' . $url[$type]
544 - . '" type="application/x-shockwave-flash" wmode="transparent"'
545 - . ' width="' . $width . '" height="' . $height . '" allowfullscreen="' . $allowfullscreen . '"';
546 - if ( $type == 'revver' ) {
547 - $output .= 'flashvars="mediaId=' . $id . '&affiliateId=0"';
548 - }
549 - if ( $type == 'gazeta' ) {
550 - $output .= 'FlashVars="m=http://serwisy.gazeta.pl/getDaneWideo?xx=' . $id . '%26xxd=0&e=1&f=http://bi.gazeta.pl/im/"';
551 - }
552 - if ( $type == 'funnyordie' ) {
553 - $output .= 'flashvars="key=' . $id . '"';
554 - }
555 - if ( $type == 'bbsports' ) {
556 - $output .= 'allowscriptaccess="always" flashvars="nid=.' . $id . '"';
557 - }
558 - if ( $type == 'stickam' ) {
559 - $output .= 'scale="scale" allowScriptAccess="always"';
560 - }
561 - if ( $type == 'comedycentral' ) {
562 - $output .= 'FlashVars="videoId=' . $id . '" quality="high" bgcolor="#cccccc" name="comedy_central_player" align="middle" allownetworking="external"';
563 - }
564 - if ( $type == 'spike' ) {
565 - $output .= 'flashvars="flvbaseclip=' . $id . '&"';
566 - }
567 - if ( $type != "interia" && $type != "znajomi" && $type != "youaretv" && $type != "youare" && $type != "wrzuta" && $type != 'brightcove' ) {
568 - $output .= '></embed></object>';
569 - }
570 - }
571 - if ( array_key_exists( 'desc', $args ) ) {
572 - $output .= '<div class="thumbcaption" align="left">';
573 - $desc2 = $parser->recursiveTagParse( $desc );
574 - $output .= $desc2 . '</div>';
575 - }
576 - } else {
577 - global $wgFramedVideoError, $wgFramedVideoErrors, $wgFramedVideoErrorHeightRequired;
578 - global $wgFramedVideoErrorHeightRequiredNotOnlyWidth, $wgFramedVideoUnknownType, $wgFramedVideoErrorNoIdGiven;
579 - global $wgFramedVideoErrorWidthTooBig, $wgFramedVideoErrorHeightTooBig, $wgFramedVideoErrorLimitMaxWidth;
580 - global $wgFramedVideoErrorLimitMaxHeight, $wgFramedVideoErrorNoIntegerWidth, $wgFramedVideoErrorNoIntegerHeight;
581 - global $wgFramedVideoErrorFullSizeNotAllowed, $wgFramedVideoHeightAndWidthRequired, $wgFramedVideoErrorNoIntegerWidth;
582 - global $wgFramedVideoErrorSeeHelp;
583 - $output .= '<div class="thumbcaption" align="left">';
584 - wfLoadExtensionMessages( 'FramedVideo' );
585 - $errors = array_sum( $errorid );
586 - if ( $errors == 1 ) {
587 - if ( !isset( $wgFramedVideoError ) ) { $wgFramedVideoError = wfMsg( 'framedvideo_error' ); }
588 - } else {
589 - if ( !isset( $wgFramedVideoErrors ) ) { $wgFramedVideoErrors = wfMsg( 'framedvideo_errors' ); }
590 - }
591 - if ( array_key_exists( 4, $errorid ) ) {
592 - if ( !isset( $wgFramedVideoErrorNoIdGiven ) ) {
593 - $wgFramedVideoErrorNoIdGiven = wfMsg( 'framedvideo_error_no_id_given' );
594 - }
595 - }
596 - if ( array_key_exists( 5, $errorid ) ) {
597 - if ( !isset( $wgFramedVideoErrorWidthTooBig ) ) {
598 - $wgFramedVideoErrorWidthTooBig = wfMsg( 'framedvideo_error_width_too_big' );
599 - }
600 - if ( !isset( $wgFramedVideoErrorLimitMaxWidth ) ) {
601 - $wgFramedVideoErrorLimitMaxWidth = wfMsg( 'framedvideo_error_limit', $maxwidth );
602 - }
603 - }
604 - if ( array_key_exists( 6, $errorid ) ) {
605 - if ( !isset( $wgFramedVideoErrorHeightTooBig ) ) {
606 - $wgFramedVideoErrorHeightTooBig = wfMsg( 'framedvideo_error_height_too_big' );
607 - }
608 - if ( !isset( $wgFramedVideoErrorLimitMaxHeight ) ) {
609 - $wgFramedVideoErrorLimitMaxHeight = wfMsg( 'framedvideo_error_limit', $maxheight );
610 - }
611 - }
612 - if ( array_key_exists( 7, $errorid ) ) {
613 - if ( !isset( $wgFramedVideoErrorNoIntegerWidth ) ) {
614 - $wgFramedVideoErrorNoIntegerWidth = wfMsg( 'framedvideo_error_no_integer', 'width' );
615 - }
616 - }
617 - if ( array_key_exists( 8, $errorid ) ) {
618 - if ( !isset( $wgFramedVideoErrorNoIntegerHeight ) ) {
619 - $wgFramedVideoErrorNoIntegerHeight = wfMsg( 'framedvideo_error_no_integer', 'height' );
620 - }
621 - }
622 - if ( array_key_exists( 9, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_full_size_not_allowed', $type ); }
623 - if ( array_key_exists( 10, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_height_and_width_required', $type ); }
624 - if ( array_key_exists( 11, $errorid ) ) {
625 - if ( !isset( $wgFramedVideoErrorNoIntegerWidth2 ) ) {
626 - $wgFramedVideoErrorNoIntegerWidth2 = wfMsg( 'framedvideo_error_no_integer', 'width2' );
627 - }
628 - }
629 - if ( !isset( $wgFramedVideoErrorSeeHelp ) ) {
630 - $wgFramedVideoErrorSeeHelp = wfMsg( 'framedvideo_error_see_help' );
631 - }
632 - $errors = array_sum( $errorid );
633 - if ( $errors == 1 ) {
634 - $output .= $wgFramedVideoError;
635 - } else {
636 - $output .= $wgFramedVideoErrors;
637 - }
638 - if ( array_key_exists( 1, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_height_required', $type ); }
639 - if ( array_key_exists( 2, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_height_required_not_only_width', $type ); }
640 - if ( array_key_exists( 3, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_unknown_type', $type2 ); }
641 - if ( array_key_exists( 4, $errorid ) ) { $output .= '<br />' . $wgFramedVideoErrorNoIdGiven; }
642 - if ( array_key_exists( 5, $errorid ) ) {
643 - $output .= '<br />' . $wgFramedVideoErrorWidthTooBig;
644 - $output .= ' ' . $wgFramedVideoErrorLimitMaxWidth;
645 - }
646 - if ( array_key_exists( 6, $errorid ) ) {
647 - $output .= '<br />' . $wgFramedVideoErrorHeightTooBig;
648 - $output .= ' ' . $wgFramedVideoErrorLimitMaxHeight;
649 - }
650 - if ( array_key_exists( 7, $errorid ) ) { $output .= '<br />' . $wgFramedVideoErrorNoIntegerWidth; }
651 - if ( array_key_exists( 8, $errorid ) ) { $output .= '<br />' . $wgFramedVideoErrorNoIntegerHeight; }
652 - if ( array_key_exists( 9, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_full_size_not_allowed', $type ); }
653 - if ( array_key_exists( 10, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_height_and_width_required', $type ); }
654 - if ( array_key_exists( 11, $errorid ) ) { $output .= '<br />' . $wgFramedVideoErrorNoIntegerWidth2; }
655 - $output .= '<br />' . $parser->recursiveTagParse( $wgFramedVideoErrorSeeHelp ) . '</div>';
656 - }
657 - if ( $position == null ) {
658 - $output .= '</div></div>';
659 - }
660 - if ( $position != null && $frame == true ) {
661 - if ( $position == "center" ) {
662 - $output .= '</div></div></div>';
663 - } elseif ( $position == "left" ) {
664 - $output .= '</div></div>';
665 - } else {
666 - $output .= '</div></div>';
667 - }
668 - }
669 - if ( $position != null && $frame == false ) {
670 - if ( $position == "center" ) {
671 - $output .= '</span></div></div>';
672 - } elseif ( $position == "left" ) {
673 - $output .= '</span></div>';
674 - } else {
675 - $output .= '</span></div>';
676 - }
677 - }
678 - return $output;
679 - }
680 -
681 - function trueOrFalse ( $input ) {
682 - if ( $input == "true" ) { $output = true; }
683 - if ( $input == "false" ) { $output = false; }
684 - return $output;
685 - }
686 -}
Index: trunk/extensions/FramedVideo/FramedVideo.php
@@ -24,7 +24,6 @@
2525
2626 $dir = dirname(__FILE__) . '/';
2727 $wgExtensionMessagesFiles['FramedVideo'] = $dir . 'FramedVideo.i18n.php';
28 -$wgAutoloadClasses['FramedVideo'] = $dir . 'FramedVideo.class.php';
2928 $wgExtensionFunctions[] = 'wfFramedVideo';
3029
3130 $wgExtensionCredits['parserhook'][] = array(
@@ -33,11 +32,670 @@
3433 'descriptionmsg' => 'framedvideo-desc',
3534 'author' => '[http://filop.pl/wiki/U%C5%BCytkownik:Ruiz Ruiz]',
3635 'url' => 'http://www.mediawiki.org/wiki/Extension:FramedVideo',
37 - 'version' => '1.2.0',
 36+ 'version' => '1.2.1',
3837 );
3938
4039 function wfFramedVideo() {
4140 global $wgParser;
4241
43 - $wgParser->setHook( 'video', 'FramedVideo::renderFramedVideo' );
 42+ $wgParser->setHook( 'video', 'renderFramedVideo' );
4443 }
 44+
 45+function renderFramedVideo( $input, $args, $parser ) {
 46+ global $wgLanguageCode, $wgFramedVideoLightMode, $wgFramedVideoConfigLoaded;
 47+ global $wgFramedVideoDefaultWidth, $wgFramedVideoForceDefaultSize, $wgFramedVideoMaxWidth, $wgFramedVideoMaxHeight;
 48+ global $wgFramedVideoAllowFullScreen, $wgFramedVideoForceAllowFullScreen, $wgFramedVideoFrames, $wgFramedVideoForceFrames;
 49+ global $wgFramedVideoPosition, $wgFramedVideoForcePosition;
 50+ if ( !isset( $wgFramedVideoConfigLoaded ) ) {
 51+ if ( !isset( $wgFramedVideoLightMode ) || $wgFramedVideoLightMode == false ) {
 52+ wfLoadExtensionMessages( 'FramedVideo' );
 53+ $wgFramedVideoDefaultWidth = intval( wfMsg( 'framedvideo_default_width' ) );
 54+ $wgFramedVideoForceDefaultSize = false;
 55+ if ( ( wfMsg( 'framedvideo-forcesize' ) == "true" ) ) {
 56+ $wgFramedVideoForceDefaultSize = true;
 57+ }
 58+ $wgFramedVideoMaxWidth = intval( wfMsg( 'framedvideo_max_width' ) );
 59+ $wgFramedVideoMaxHeight = intval( wfMsg( 'framedvideo_max_height' ) );
 60+ $wgFramedVideoAllowFullScreen = trueOrFalse( wfMsg( 'framedvideo_allow_full_screen' ) );
 61+ $wgFramedVideoForceAllowFullScreen = trueOrFalse( wfMsg( 'framedvideo_force_allow_full_screen' ) );
 62+ $wgFramedVideoFrames = trueOrFalse( wfMsg( 'framedvideo_frames' ) );
 63+ $wgFramedVideoForceFrames = trueOrFalse( wfMsg( 'framedvideo_force_frames' ) );
 64+ $wgFramedVideoPosition = wfMsg( 'framedvideo_position' );
 65+ $wgFramedVideoForcePosition = trueOrFalse( wfMsg( 'framedvideo_force_position' ) );
 66+ $wgFramedVideoConfigLoaded = true;
 67+ } else {
 68+ wfLoadExtensionMessages( 'FramedVideo' );
 69+ if ( !isset( $wgFramedVideoDefaultWidth ) || !isset( $wgFramedVideoForceDefaultSize ) || !isset( $wgFramedVideoMaxWidth )
 70+ || !isset( $wgFramedVideoMaxHeight ) || !isset( $wgFramedVideoAllowFullScreen ) || !isset( $wgFramedVideoForceAllowFullScreen )
 71+ || !isset( $wgFramedVideoFrames ) || !isset( $wgFramedVideoForceFrames ) || !isset ( $wgFramedVideoPosition )
 72+ || !isset( $wgFramedVideoForcePosition ) ) {
 73+ wfLoadExtensionMessages( 'FramedVideo' );
 74+ }
 75+ if ( !isset( $wgFramedVideoDefaultWidth ) ) { $wgFramedVideoDefaultWidth = intval( wfMsg( 'framedvideo_default_width' ) ); }
 76+ if ( !isset( $wgFramedVideoForceDefaultSize ) ) {
 77+ $wgFramedVideoForceDefaultSize = false;
 78+ if ( ( wfMsg( 'framedvideo-forcesize' ) == "true" ) ) {
 79+ $wgFramedVideoForceDefaultSize = true;
 80+ }
 81+ }
 82+ if ( !isset( $wgFramedVideoMaxWidth ) ) { $wgFramedVideoMaxWidth = intval( wfMsg( 'framedvideo_max_width' ) ); }
 83+ if ( !isset( $wgFramedVideoMaxHeight ) ) { $wgFramedVideoMaxHeight = intval( wfMsg( 'framedvideo_max_height' ) ); }
 84+ if ( !isset( $wgFramedVideoAllowFullScreen ) ) {
 85+ $wgFramedVideoAllowFullScreen = trueOrFalse( wfMsg( 'framedvideo_allow_full_screen' ) );
 86+ }
 87+ if ( !isset( $wgFramedVideoForceAllowFullScreen ) ) {
 88+ $wgFramedVideoForceAllowFullScreen = trueOrFalse( wfMsg( 'framedvideo_force_allow_full_screen' ) );
 89+ }
 90+ if ( !isset( $wgFramedVideoFrames ) ) {
 91+ $wgFramedVideoFrames = trueOrFalse( wfMsg( 'framedvideo_frames' ) );
 92+ }
 93+ if ( !isset( $wgFramedVideoForceFrames ) ) {
 94+ $wgFramedVideoForceFrames = trueOrFalse( wfMsg( 'framedvideo_force_frames' ) );
 95+ }
 96+ if ( !isset( $wgFramedVideoPosition ) ) {
 97+ $wgFramedVideoPosition = wfMsg( 'framedvideo_position' );
 98+ }
 99+ if ( !isset( $wgFramedVideoForcePosition ) ) {
 100+ $wgFramedVideoForcePosition = trueOrFalse( wfMsg( 'framedvideo_force_position' ) );
 101+ }
 102+ }
 103+ $wgFramedVideoConfigLoaded = true;
 104+ }
 105+
 106+ $defaultwidth = $wgFramedVideoDefaultWidth;
 107+ $forcesize = $wgFramedVideoForceDefaultSize;
 108+ $maxwidth = $wgFramedVideoMaxWidth;
 109+ $maxheight = $wgFramedVideoMaxHeight;
 110+ $allowfullscreen = $wgFramedVideoAllowFullScreen;
 111+ $forceallowfullscreen = $wgFramedVideoForceAllowFullScreen;
 112+ $frame = $wgFramedVideoFrames;
 113+ $forceframes = $wgFramedVideoForceFrames;
 114+ $position2 = $wgFramedVideoPosition;
 115+ $forceposition = $wgFramedVideoForcePosition;
 116+ $rendervideo = true;
 117+
 118+ if ( array_key_exists( 'type', $args ) ) { $type = htmlspecialchars( $args['type'] ); }
 119+ else { $type = "youtube"; }
 120+ if ( array_key_exists( 'id', $args ) ) { $id = htmlspecialchars( $args['id'] ); }
 121+ else {
 122+ $id = "0";
 123+ $rendervideo = false;
 124+ $errorid[4] = 1;
 125+ $width = 1;
 126+ $height = 1;
 127+ }
 128+
 129+ $twidth['bbsports'] = 425; $theight['bbsports'] = 350;
 130+ $twidth['bliptv'] = 640; $theight['bliptv'] = 510;
 131+ $twidth['break'] = 464; $theight['break'] = 392;
 132+ $twidth['broadcaster'] = 425; $theight['broadcaster'] = 340;
 133+ $twidth['clipfish'] = 464; $theight['clipfish'] = 380;
 134+ $twidth['clipshack'] = 430; $theight['clipshack'] = 370;
 135+ $twidth['comedycentral'] = 464; $theight['comedycentral'] = 392;
 136+ $twidth['dailymotion'] = 420; $theight['dailymotion'] = 336;
 137+ $twidth['error'] = $defaultwidth; $theight['error'] = 1;
 138+ $twidth['eyespot'] = 432; $theight['eyespot'] = 407;
 139+ $twidth['funnyordie'] = 464; $theight['funnyordie'] = 388;
 140+ $twidth['gazeta'] = 480; $theight['gazeta'] = 393;
 141+ $twidth['glumbert'] = 448; $theight['glumbert'] = 336;
 142+ $twidth['godtube'] = 330; $theight['godtube'] = 270;
 143+ $twidth['googlevideo'] = 400; $theight['googlevideo'] = 326;
 144+ $twidth['interia'] = 425; $theight['interia'] = 350;
 145+ $twidth['znajomi'] = 425; $theight['znajomi'] = 350;
 146+ $twidth['jumpcut'] = 408; $theight['jumpcut'] = 324;
 147+ $twidth['kewego'] = 400; $theight['kewego'] = 368;
 148+ $twidth['liveleak'] = 450; $theight['liveleak'] = 370;
 149+ $twidth['livevideo'] = 445; $theight['livevideo'] = 369;
 150+ $twidth['metacafe'] = 400; $theight['metacafe'] = 345;
 151+ $twidth['myspace'] = 425; $theight['myspace'] = 360;
 152+ $twidth['myspacetv'] = 425; $theight['myspacetv'] = 360;
 153+ $twidth['myvideo'] = 470; $theight['myvideo'] = 406;
 154+ $twidth['patrz'] = 425; $theight['patrz'] = 331;
 155+ $twidth['photobucket'] = 448; $theight['photobucket'] = 361;
 156+ $twidth['plejada'] = 640; $theight['plejada'] = 396;
 157+ $twidth['putfile'] = 420; $theight['putfile'] = 349;
 158+ $twidth['revver'] = 480; $theight['revver'] = 392;
 159+ $twidth['rutube'] = 400; $theight['rutube'] = 353;
 160+ $twidth['selfcasttv'] = 340; $theight['selfcasttv'] = 283;
 161+ $twidth['selfcast'] = 340; $theight['selfcast'] = 283;
 162+ $twidth['sevenload'] = 455; $theight['sevenload'] = 364;
 163+ $twidth['sharkle'] = 340; $theight['sharkle'] = 310;
 164+ $twidth['shoutfile'] = 400; $theight['shoutfile'] = 300;
 165+ $twidth['spike'] = 448; $theight['spike'] = 365;
 166+ $twidth['stickam'] = 400; $theight['stickam'] = 300;
 167+ $twidth['superdeluxe'] = 400; $theight['superdeluxe'] = 300;
 168+ $twidth['uncutvideo'] = 415; $theight['uncutvideo'] = 347;
 169+ $twidth['veoh'] = 540; $theight['veoh'] = 458;
 170+ $twidth['videojug'] = 400; $theight['videojug'] = 345;
 171+ $twidth['viddler'] = 437; $theight['viddler'] = 370;
 172+ $twidth['vimeo'] = 400; $theight['vimeo'] = 300;
 173+ $twidth['wrzuta'] = 450; $theight['wrzuta'] = 416;
 174+ $twidth['yahoovideo'] = 512; $theight['yahoovideo'] = 323;
 175+ $twidth['youaretv'] = 350; $theight['youaretv'] = 300;
 176+ $twidth['youare'] = 350; $theight['youare'] = 300;
 177+ $twidth['youtube'] = 425; $theight['youtube'] = 344;
 178+ $twidth['youtube2'] = 480; $theight['youtube2'] = 295;
 179+
 180+ if ( !( array_key_exists( $type, $twidth ) ) ) {
 181+ $rendervideo = false;
 182+ $errorid[3] = 1;
 183+ $width = 1;
 184+ $height = 1;
 185+ $type2 = $type;
 186+ $type = 'error';
 187+ }
 188+
 189+ $playerheight1 = 0;
 190+ $playerheight2 = 0;
 191+
 192+ if ( $type == "bbsports" ) { $playerheight1 = 24; $playerheight2 = 20; }
 193+ if ( $type == "bliptv" ) { $playerheight1 = 30; $playerheight2 = 30; }
 194+ if ( $type == "clipfish" ) { $playerheight1 = 30; $playerheight2 = 30; }
 195+ if ( $type == "dailymotion" ) { $playerheight1 = 21; $playerheight2 = 21; }
 196+ if ( $type == "funnyordie" ) { $playerheight1 = 40; $playerheight2 = 40; }
 197+ if ( $type == "gazeta" ) { $playerheight1 = 34; $playerheight2 = 34; }
 198+ if ( $type == "googlevideo" ) { $playerheight1 = 27; $playerheight2 = 27; }
 199+ if ( $type == "interia" ) { $playerheight1 = 49; $playerheight2 = 49; }
 200+ if ( $type == "znajomi" ) { $playerheight1 = 49; $playerheight2 = 49; }
 201+ if ( $type == "jumpcut" ) { $playerheight1 = 21; $playerheight2 = 21; }
 202+ if ( $type == "kewego" ) { $playerheight1 = 0; $playerheight2 = 26; }
 203+ if ( $type == "liveleak" ) { $playerheight1 = 20; $playerheight2 = 20; }
 204+ if ( $type == "livevideo" ) { $playerheight1 = 0; $playerheight2 = 22; }
 205+ if ( $type == "metacafe" ) { $playerheight1 = 31; $playerheight2 = 40; }
 206+ if ( $type == "myspace" ) { $playerheight1 = 40; $playerheight2 = 40; }
 207+ if ( $type == "myspacetv" ) { $playerheight1 = 40; $playerheight2 = 40; }
 208+ if ( $type == "myvideo" ) { $playerheight1 = 46; $playerheight2 = 46; }
 209+ if ( $type == "photobucket" ) { $playerheight1 = 25; $playerheight2 = 25; }
 210+ if ( $type == "plejada" ) { $playerheight1 = 36; $playerheight2 = 36; }
 211+ if ( $type == "putfile" ) { $playerheight1 = 27; $playerheight2 = 50; }
 212+ if ( $type == "revver" ) { $playerheight1 = 32; $playerheight2 = 32; }
 213+ if ( $type == "rutube" ) { $playerheight1 = 36; $playerheight2 = 36; }
 214+ if ( $type == "selfcasttv" ) { $playerheight1 = 20; $playerheight2 = 20; }
 215+ if ( $type == "selfcast" ) { $playerheight1 = 20; $playerheight2 = 20; }
 216+ if ( $type == "sevenload" ) { $playerheight1 = 33; $playerheight2 = 33; }
 217+ if ( $type == "shoutfile" ) { $playerheight1 = 29; $playerheight2 = 29; }
 218+ if ( $type == "spike" ) { $playerheight1 = 31; $playerheight2 = 31; }
 219+ if ( $type == "superdeluxe" ) { $playerheight1 = 50; $playerheight2 = 50; }
 220+ if ( $type == "uncutvideo" ) { $playerheight1 = 47; $playerheight2 = 47; }
 221+ if ( $type == "veoh" ) { $playerheight1 = 34; $playerheight2 = 34; }
 222+ if ( $type == "viddler" ) { $playerheight1 = 42; $playerheight2 = 42; }
 223+ if ( $type == "videojug" ) { $playerheight1 = 30; $playerheight2 = 30; }
 224+ if ( $type == "yahoovideo" ) { $playerheight1 = 34; $playerheight2 = 34; }
 225+ if ( $type == "youtube" ) { $playerheight1 = 25; $playerheight2 = 25; }
 226+ if ( $type == "youtube2" ) { $playerheight1 = 25; $playerheight2 = 25; }
 227+
 228+ if ( array_key_exists( 'width', $args ) && $type != 'vimeo' && $type != 'dailymotion' && $type != 'bliptv' ) { $width = htmlspecialchars( $args['width'] ); }
 229+ else { $width = $twidth[$type]; }
 230+ if ( array_key_exists( 'height', $args ) && $type != 'vimeo' && $type != 'dailymotion' && $type != 'bliptv' ) { $height = htmlspecialchars( $args['height'] ); }
 231+ else { $height = $theight[$type]; }
 232+
 233+ if ( $type == 'dailymotion' || $type == 'vimeo' ) {
 234+ if ( ( array_key_exists( 'height', $args ) ) && !( array_key_exists( 'width', $args ) ) ) {
 235+ $height = htmlspecialchars( $args['height'] );
 236+ $width = $defaultwidth;
 237+ $height = ( htmlspecialchars( $args['height'] ) - $playerheight1 ) / $twidth[$type] * $defaultwidth + $playerheight2;
 238+ $height = round( $height );
 239+ }
 240+
 241+ if ( !( array_key_exists( 'height', $args ) ) && !( array_key_exists( 'width', $args ) ) ) {
 242+ $width = $defaultwidth;
 243+ $rendervideo = false;
 244+ $errorid[1] = 1;
 245+ }
 246+ if ( !( array_key_exists( 'height', $args ) ) && ( array_key_exists( 'width', $args ) ) ) {
 247+ $width = htmlspecialchars( $args['width'] );
 248+ $rendervideo = false;
 249+ $errorid[2] = 1;
 250+ }
 251+ if ( ( array_key_exists( 'height', $args ) ) && ( array_key_exists( 'width', $args ) ) ) {
 252+ $height = htmlspecialchars( $args['height'] );
 253+ $width = htmlspecialchars( $args['width'] );
 254+ $height = ( htmlspecialchars( $args['height'] ) - $playerheight1 ) / $twidth[$type] * $defaultwidth + $playerheight2;
 255+ $height = round( $height );
 256+ }
 257+
 258+ }
 259+
 260+ if ( $type == 'bliptv' ) {
 261+ if ( ( array_key_exists( 'height', $args ) ) && ( array_key_exists( 'width2', $args ) ) && !( array_key_exists( 'width', $args ) ) ) {
 262+ $width = htmlspecialchars( $args['width2'] );
 263+ $height = htmlspecialchars( $args['height'] );
 264+ if ( $width < 1 ) {
 265+ $width = $defaultwidth;
 266+ $rendervideo = false;
 267+ $errorid[11] = 1;
 268+ } else {
 269+ $height = ( $height - $playerheight1 ) * $defaultwidth / $width + $playerheight2;
 270+ $width = $defaultwidth;
 271+ }
 272+ } elseif ( ( array_key_exists( 'height', $args ) ) && ( array_key_exists( 'width', $args ) ) ) {
 273+ $width = htmlspecialchars( $args['width'] );
 274+ $height = htmlspecialchars( $args['height'] );
 275+ } else {
 276+ $rendervideo = false;
 277+ $width = $defaultwidth;
 278+ $errorid[10] = 1;
 279+ }
 280+ }
 281+
 282+ $url['bbsports'] = 'http://broadbandsports.com/flv/bbs-xplayer.swf?n=' . $id;
 283+ $url['bliptv'] = 'http://blip.tv/play/' . $id;
 284+ $url['break'] = 'http://embed.break.com/' . $id;
 285+ $url['brightcove'] = 'http://';
 286+ $url['broadcaster'] = 'http://www.broadcaster.com/video/external/player.swf?clip=' . $id . '.flv';
 287+ $url['clipshack'] = 'http://clipshack.com/player.swf?key=' . $id;
 288+ $url['comedycentral'] = 'http://www.comedycentral.com/sitewide/video_player/view/default/swf.jhtml';
 289+ $url['dailymotion'] = 'http://www.dailymotion.com/swf/' . $id;
 290+ $url['error'] = '';
 291+ $url['eyespot'] = 'http://eyespot.com/flash/medialoader.swf?vurl=http://downloads.eyespot.com/direct/play?r=' . $id . '&_autoPlay=false';
 292+ $url['funnyordie'] = 'http://www2.funnyordie.com/public/flash/fodplayer.swf?7228';
 293+ $url['gazeta'] = 'http://bi.gazeta.pl/im/loader.swf';
 294+ $url['glumbert'] = 'http://www.glumbert.com/embed/' . $id;
 295+ $url['godtube'] = '';
 296+ $url['googlevideo'] = 'http://video.google.com/googleplayer.swf?docId=' . $id . '&hl=' . $wgLanguageCode . '&fs=true';
 297+ $url['interia'] = 'http://video.interia.pl/player.js';
 298+ $url['jumpcut'] = 'http://jumpcut.com/media/flash/jump.swf?id=' . $id . '&asset_type=movie&asset_id=' . $id . '&eb=1';
 299+ $url['kewego'] = 'http://www.kewego.com/p/en/' . $id . '.html';
 300+ $url['liveleak'] = 'http://www.liveleak.com/e/' . $id;
 301+ $url['livevideo'] = '';
 302+ $url['metacafe'] = 'http://www.metacafe.com/fplayer/' . $id . '.swf';
 303+ $url['patrz'] = 'http://patrz.pl/patrz.pl.swf?id=' . $id . '&r=5&o=';
 304+ $url['photobucket'] = 'http://';
 305+ $url['plejada'] = 'http://www.plejada.pl/_d/flash/' . $id . ',player_loader.swf';
 306+ $url['putfile'] = 'http://feat.putfile.com/flow/putfile.swf?videoFile=' . $id;
 307+ $url['revver'] = 'http://flash.revver.com/player/1.0/player.swf?mediaId=' . $id;
 308+ $url['rutube'] = 'http://video.rutube.ru/' . $id;
 309+ $url['selfcast'] = 'http://www.selfcasttv.com/Selfcast/selfcast.swf?video_1=/s/' . $id;
 310+ $url['selfcasttv'] = 'http://www.selfcasttv.com/Selfcast/selfcast.swf?video_1=/s/' . $id;
 311+ $url['sevenload'] = 'http://en.sevenload.com/pl/' . $id . '/' . $width . 'x' . $height . '/swf';
 312+ $url['sharkle'] = 'http://www.sharkle.com/externalPlayer/' . $id;
 313+ $url['shoutfile'] = 'http://www.shoutfile.com/emb/' . $id;
 314+ $url['spike'] = 'http://www.spike.com/efp';
 315+ $url['stickam'] = 'http://player.stickam.com/flashVarMediaPlayer/' . $id;
 316+ $url['superdeluxe'] = 'http://i.cdn.turner.com/sdx/static/swf/share_vidplayer.swf';
 317+ $url['uncutvideo'] = 'http://';
 318+ $url['veoh'] = 'http://www.veoh.com/videodetails2.swf?permalinkId=' . $id . '&id=anonymous&player=videodetailsembedded&videoAutoPlay=0';
 319+ $url['videojug'] = 'http://www.videojug.com/film/player?id=' . $id;
 320+ $url['viddler'] = 'http://www.viddler.com/player/' . $id . '/';
 321+ $url['vimeo'] = 'http://www.vimeo.com/moogaloop.swf?clip_id=' . $id . '&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1';
 322+ $url['wrzuta'] = 'http://www.wrzuta.pl/wrzuta_embed.js';
 323+ $url['yahoovideo'] = 'http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4';
 324+ $url['youare'] = 'http://www.youare.tv/player/yatvplayer.swf?videoID=' . $id;
 325+ $url['youaretv'] = 'http://www.youare.tv/player/yatvplayer.swf?videoID=' . $id;
 326+ $url['youtube'] = 'http://www.youtube.com/v/' . $id;
 327+ $url['youtube2'] = 'http://www.youtube.com/v/' . $id;
 328+ $url['znajomi'] = 'http://video.interia.pl/player.js';
 329+
 330+ if ( array_key_exists( 'desc', $args ) ) { $desc = $args['desc']; }
 331+ else { $desc = ''; }
 332+ if ( array_key_exists( 'size', $args ) ) { $size = htmlspecialchars( $args['size'] ); }
 333+ else { $size = ''; }
 334+
 335+ if ( $allowfullscreen == true && $forceallowfullscreen == false ) {
 336+ if ( array_key_exists( 'allowfullscreen', $args ) ) {
 337+ $allowfullscreen = htmlspecialchars( $args['allowfullscreen'] );
 338+ if ( $allowfullscreen != 'true' ) {
 339+ $allowfullscreen = false;
 340+ } else {
 341+ $allowfullscreen = true;
 342+ }
 343+ }
 344+ } elseif ( $allowfullscreen == false && $forceallowfullscreen == true ) {
 345+ $allowfullscreen = false;
 346+ } elseif ( $allowfullscreen == false && $forceallowfullscreen == false && !( array_key_exists( 'allowfullscreen', $args ) ) ) {
 347+ $allowfullscreen = false;
 348+ } else {
 349+ $allowfullscreen = true;
 350+ }
 351+
 352+ if ( $allowfullscreen == false ) {
 353+ $allowfullscreen = "false";
 354+ } else {
 355+ $allowfullscreen = "true";
 356+ }
 357+
 358+ if ( $frame == true && $forceframes == false ) {
 359+ if ( array_key_exists( 'frame', $args ) ) {
 360+ $frame = htmlspecialchars( $args['frame'] );
 361+ if ( $frame != "true" ) {
 362+ $frame = false;
 363+ } else {
 364+ $frame = true;
 365+ }
 366+ }
 367+ } elseif ( $frame == false && $forceframes == true ) {
 368+ $frame = false;
 369+ } elseif ( $frame == false && $forceframes == false && !( array_key_exists( 'frame', $args ) ) ) {
 370+ $frame = false;
 371+ } else {
 372+ $frame = true;
 373+ }
 374+ if ( $forceposition == false ) {
 375+ if ( array_key_exists( 'position', $args ) ) {
 376+ $position = htmlspecialchars( $args['position'] );
 377+ } else { $position = $position2; }
 378+ } else {
 379+ $position = $position2;
 380+ }
 381+
 382+ if ( $type != 'vimeo' && $type != 'dailymotion' && $type != 'bliptv' ) {
 383+ if ( $forcesize == true ) {
 384+ $width = $defaultwidth;
 385+ $height = round( ( $theight[$type] - $playerheight1 ) / $twidth[$type] * $defaultwidth ) + $playerheight2;
 386+ } elseif ( $forcesize == false && !( array_key_exists( 'width', $args ) ) && !( array_key_exists( 'height', $args ) ) ) {
 387+ $width = $defaultwidth;
 388+ $height = round( ( $theight[$type] - $playerheight1 ) / $twidth[$type] * $defaultwidth ) + $playerheight2;
 389+ } elseif ( $forcesize == false && ( array_key_exists( 'width', $args ) ) && !( array_key_exists( 'height', $args ) ) ) {
 390+ $height = round( ( $theight[$type] - $playerheight1 ) / $twidth[$type] * $width ) + $playerheight2;
 391+ } elseif ( $forcesize == false && ( array_key_exists( 'width', $args ) ) && ( array_key_exists( 'height', $args ) ) ) {
 392+ $width = htmlspecialchars( $args['width'] );
 393+ $height = htmlspecialchars( $args['height'] );
 394+ }
 395+ }
 396+
 397+ if ( $size == "full" && $forcesize == false ) {
 398+ $width = $twidth[$type];
 399+ $height = $theight[$type];
 400+ }
 401+
 402+ if ( $size == "full" ) {
 403+ if ( $type == "dailymotion" || $type == "vimeo" ) {
 404+ $rendervideo = false;
 405+ $errorid[9] = 1;
 406+ $width = $defaultwidth;
 407+ $height = 1;
 408+ }
 409+ }
 410+
 411+ if ( $width > $maxwidth ) {
 412+ $width = $defaultwidth;
 413+ $rendervideo = false;
 414+ $errorid[5] = 1;
 415+ }
 416+
 417+ if ( $height > $maxheight ) {
 418+ $rendervideo = false;
 419+ $errorid[6] = 1;
 420+ }
 421+
 422+
 423+ if ( $width < 1 ) {
 424+ $width = $defaultwidth;
 425+ $rendervideo = false;
 426+ $errorid[7] = 1;
 427+ }
 428+
 429+ if ( $height < 1 ) {
 430+ $height = 1;
 431+ $rendervideo = false;
 432+ $errorid[8] = 1;
 433+ }
 434+
 435+ $widthframe = ( $width + 2 );
 436+
 437+ if ( $position == null && $frame == true ) {
 438+ $output = '<div class="thumb tright"> <div class="thumbinner" style="width: ' . $widthframe . 'px;" border="0">';
 439+ }
 440+ if ( $position != null && $frame == true ) {
 441+ if ( $position == "center" ) {
 442+ $output = '<div class="center"><div class="thumb tnone"> <div class="thumbinner" style="width: ' . $widthframe . 'px;" border="0">';
 443+ } elseif ( $position == "left" ) {
 444+ $output = '<div class="thumb tleft"> <div class="thumbinner" style="width: ' . $widthframe . 'px;" border="0">';
 445+ } else {
 446+ $output = '<div class="thumb tright"> <div class="thumbinner" style="width: ' . $widthframe . 'px;" border="0">';
 447+ }
 448+ }
 449+ if ( $frame == false ) {
 450+ if ( $position == "center" ) {
 451+ $output = '<div class="center"><div class="floatnone" style="width: ' . $width . 'px;"><span>';
 452+ } elseif ( $position == "left" ) {
 453+ $output = '<div class="floatleft" style="width: ' . $width . 'px;"><span>';
 454+ } else {
 455+ $output = '<div class="floatright" style="width: ' . $width . 'px;"><span>';
 456+ }
 457+ }
 458+ if ( $rendervideo == true ) {
 459+ if ( $type == 'superdeluxe' ) {
 460+ $output .= '<object width="' . $width . '" height="' . $height . '"><param name="allowFullScreen" value="' . $allowfullscreen . '" />'
 461+ . '<param name="movie" value="http://i.cdn.turner.com/sdx/static/swf/share_vidplayer.swf" />'
 462+ . '<param name="FlashVars" value="' . $id . '" />'
 463+ . '<embed src="http://i.cdn.turner.com/sdx/static/swf/share_vidplayer.swf"'
 464+ . 'FlashVars="id=' . $id . '" type="application/x-shockwave-flash"'
 465+ . 'width="' . $width . '" height="' . $height . '" allowFullScreen="true"';
 466+ } elseif ( $type == 'interia' || $type == 'znajomi' ) {
 467+ $output .= '<script type="text/javascript" src="http://video.interia.pl/player.js#' . $id . ',' . $width . ',' . $height . '"></script>';
 468+ } elseif ( $type == 'shoutfile' ) {
 469+ $output .= '<object width="' . $width . '" height="' . $height . '">'
 470+ . '<embed allowScriptAccess="always" src="http://www.shoutfile.com/emb/' . $id . '"'
 471+ . ' allowFullScreen="' . $allowfullscreen . '" width="' . $width . '" height="' . $height . '" border="0"'
 472+ . ' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"';
 473+ } elseif ( $type == 'videojug' ) {
 474+ $output .= '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
 475+ . ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'
 476+ . ' id="vjplayer04062008" width="400" height="345" align="middle" allowFullScreen="true">'
 477+ . '<param name="movie" value="http://www.videojug.com/film/player?id=' . $id . '" />'
 478+ . '<PARAM value="' . $allowfullscreen . '" name="allowFullScreen" /><PARAM value="always" name="allowScriptAccess" />'
 479+ . '<embed src="http://www.videojug.com/film/player?id=' . $id . '"'
 480+ . ' quality="high" width="' . $width . '" height="' . $height . '" type="application/x-shockwave-flash"'
 481+ . ' pluginspage="http://www.macromedia.com/go/getflashplayer" allowscriptaccess="always"'
 482+ . ' allowfullscreen="true"';
 483+ } elseif ( $type == 'youaretv' || $type == 'youare' ) {
 484+ $output .= '<embed src=\'http://www.youare.tv/yatvplayer.swf?videoID=' . $id . '\' allowScriptAccess=\'never\''
 485+ . ' loop=\'false\' quality=\'best\' wmode=\'transparent\' width=\'' . $width . '\' height=\'' . $height . '\''
 486+ . ' type=\'application\x-shockwave-flash\' ></embed>';
 487+ } elseif ( $type == 'wrzuta' ) {
 488+ $id = htmlspecialchars_decode( $id );
 489+ $id = preg_replace( '/>/', '&gt;', $id );
 490+ $id = preg_replace( '/</', "&lt;", $id );
 491+ $output .= '<script type="text/javascript" src="http://www.wrzuta.pl/wrzuta_embed.js?wrzuta_key=' . $id . '&wrzuta_width=' . $width . '&wrzuta_height=' . $height . '"></script>';
 492+ } elseif ( $type == 'yahoovideo' ) {
 493+ $output .= '<object width="' . $width . '" height="' . $height . '">'
 494+ . '<param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4" />'
 495+ . '<param name="allowFullScreen" value="' . $allowfullscreen . '" />'
 496+ . '<param name="flashVars" value="id=' . $id . '&lang=en-us&intl=us&thumbUrl=&embed=1" />'
 497+ . '<embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4" '
 498+ . 'type="application/x-shockwave-flash" width="' . $width . '" height="' . $height . '" '
 499+ . 'allowFullScreen="true" flashVars="id=' . $id . '&lang=en-us&intl=us&thumbUrl=&embed=1" ';
 500+ } elseif ( $type == 'photobucket' ) {
 501+ $output .= '<embed width="' . $width . '" height="' . $height . '" type="application/x-shockwave-flash" '
 502+ . 'wmode="transparent" src="http://' . $id . '&amp;sr=1">';
 503+ } elseif ( $type == 'uncutvideo' ) {
 504+ $output .= '<object width="' . $width . '" height="' . $height . '">'
 505+ . '<param name="wmode" value="opaque" /><param name="movie" '
 506+ . 'value="http://uncutvideo.aol.com/v7.306/en-US/uc_videoplayer.swf" /><param name="FlashVars" '
 507+ . 'value="aID=' . $id . '&site=http://uncutvideo.aol.com/"/>'
 508+ . '<embed src="http://uncutvideo.aol.com/v7.306/en-US/uc_videoplayer.swf" wmode="opaque" '
 509+ . 'FlashVars="aID=' . $id . '&site=http://uncutvideo.aol.com/" width="' . $width . '" height="' . $height . '" '
 510+ . 'type="application/x-shockwave-flash"';
 511+ } elseif ( $type == 'godtube' ) {
 512+ $output .= '<embed src="http://godtube.com/flvplayer.swf" FlashVars="viewkey=' . $id . '" wmode="transparent" quality="high" '
 513+ . 'width="' . $width . '" height="' . $height . '" name="godtube" align="middle" allowScriptAccess="sameDomain" '
 514+ . 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>';
 515+ } elseif ( $type == 'glumbert' ) {
 516+ $output .= '<object width=\'' . $width . '\' height=\'' . $height . '\'><param name=\'movie\' '
 517+ . 'value=\'http://www.glumbert.com/embed/' . $id . '\'></param><param name=\'wmode\' value=\'opaque\'>'
 518+ . '<param name=\'allowFullScreen\' value=\'' . $allowfullscreen . '\' /></param><embed src=\'http://www.glumbert.com/embed/' . $id . '\' '
 519+ . 'type=\'application/x-shockwave-flash\' wmode=\'transparent\' allowFullScreen=\'' . $allowfullscreen . '\' '
 520+ . 'width=\'' . $width . '\' height=\'' . $height . '\'></embed></object> ';
 521+ } elseif ( $type == 'livevideo' ) {
 522+ $output .= '<embed src="http://www.livevideo.com/flvplayer/embed/' . $id . '" '
 523+ . 'type="application/x-shockwave-flash" quality="high" WIDTH="' . $width . '" HEIGHT="' . $height . '" wmode="transparent"></embed>';
 524+ } elseif ( $type == 'youtube' || $type == 'youtube2' ) {
 525+ $output .= '<object width="' . $width . '" height="' . $height . '"><param name="movie" value="http://www.youtube.com/v/' . $id . '&hl=' . $wgLanguageCode . '&fs=1">'
 526+ . '</param><param name="allowFullScreen" value="' . $allowfullscreen . '"></param><embed '
 527+ . 'src="http://www.youtube.com/v/' . $id . '&hl=' . $wgLanguageCode . '&fs=1" type="application/x-shockwave-flash" '
 528+ . 'allowfullscreen="' . $allowfullscreen . '" width="' . $width . '" height="' . $height . '"></embed></object>';
 529+ } elseif ( $type == 'googlevideo' ) {
 530+ $output .= '<embed id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid=' . $id . '&hl=' . $wgLanguageCode . '&fs=true" '
 531+ . 'style="width:' . $width . 'px;height:' . $height . 'px" allowFullScreen="' . $allowfullscreen . '" allowScriptAccess="always" '
 532+ . 'type="application/x-shockwave-flash"> </embed>';
 533+ } elseif ( $type == 'myspace' || $type == 'myspacetv' ) {
 534+ $output .= '<object width="' . $width . 'px" height="' . $height . 'px" ><param name="allowFullScreen" value="' . $allowfullscreen . '"/>'
 535+ . '<param name="wmode" value="transparent"/><param name="movie" '
 536+ . 'value="http://mediaservices.myspace.com/services/media/embed.aspx/m=' . $id . ',t=1,mt=video,searchID=,'
 537+ . 'primarycolor=,secondarycolor="/><embed '
 538+ . 'src="http://mediaservices.myspace.com/services/media/embed.aspx/m=' . $id . ',t=1,mt=video,searchID=,'
 539+ . 'primarycolor=,secondarycolor=" width="' . $width . '" height="' . $height . '" allowFullScreen="' . $allowfullscreen . '" '
 540+ . 'type="application/x-shockwave-flash" wmode="transparent"/></object>';
 541+ } elseif ( $type == 'myvideo' ) {
 542+ $output .= '<object style=\'width:' . $width . 'px;height:' . $height . 'px;\' type=\'application/x-shockwave-flash\' '
 543+ . 'data=\'http://www.myvideo.de/movie/' . $id . '\'> <param name=\'movie\' value=\'http://www.myvideo.de/movie/' . $id . '\' />'
 544+ . '<param name=\'AllowFullscreen\' value=\'' . $allowfullscreen . '\' /> </object>';
 545+ } elseif ( $type == 'clipfish' ) {
 546+ $output .= '<object classid=\'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\' '
 547+ . 'codebase=\'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\' '
 548+ . 'width=\'' . $width . '\' height=\'' . $height . '\' id=\'player\' align=\'middle\'><param name=\'allowScriptAccess\' '
 549+ . 'value=\'always\' /><param name=\'movie\' value=\'http://www.clipfish.de/videoplayer.swf?as=0&vid=' . $id . '&r=1\' />'
 550+ . '<param name=\'quality\' value=\'high\' /><param name=\'bgcolor\' value=\'\#FF0000\' />'
 551+ . '<param name=\'allowFullScreen\' value=\'' . $allowfullscreen . '\' /><embed '
 552+ . 'src=\'http://www.clipfish.de/videoplayer.swf?as=0&videoid=' . $id . '&r=1\' quality=\'high\' bgcolor=\'\#FF0000\' '
 553+ . 'width=\'' . $width . '\' height=\'' . $height . '\' name=\'player\' align=\'middle\' allowFullScreen=\'' . $allowfullscreen . '\' '
 554+ . 'allowScriptAccess=\'always\' type=\'application/x-shockwave-flash\' '
 555+ . 'pluginspage=\'http://www.macromedia.com/go/getflashplayer\'></embed></object>';
 556+ } else {
 557+ $output .= '<object width="' . $width . '" height="' . $height . '">'
 558+ . '<param name="movie" value="' . $url[$type] . '"> <param name="allowfullscreen" value="' . $allowfullscreen . '" />'
 559+ . '<param name="wmode" value="transparent"></param>'
 560+ . '<embed src="' . $url[$type]
 561+ . '" type="application/x-shockwave-flash" wmode="transparent"'
 562+ . ' width="' . $width . '" height="' . $height . '" allowfullscreen="' . $allowfullscreen . '"';
 563+ if ( $type == 'revver' ) {
 564+ $output .= 'flashvars="mediaId=' . $id . '&affiliateId=0"';
 565+ }
 566+ if ( $type == 'gazeta' ) {
 567+ $output .= 'FlashVars="m=http://serwisy.gazeta.pl/getDaneWideo?xx=' . $id . '%26xxd=0&e=1&f=http://bi.gazeta.pl/im/"';
 568+ }
 569+ if ( $type == 'funnyordie' ) {
 570+ $output .= 'flashvars="key=' . $id . '"';
 571+ }
 572+ if ( $type == 'bbsports' ) {
 573+ $output .= 'allowscriptaccess="always" flashvars="nid=.' . $id . '"';
 574+ }
 575+ if ( $type == 'stickam' ) {
 576+ $output .= 'scale="scale" allowScriptAccess="always"';
 577+ }
 578+ if ( $type == 'comedycentral' ) {
 579+ $output .= 'FlashVars="videoId=' . $id . '" quality="high" bgcolor="#cccccc" name="comedy_central_player" align="middle" allownetworking="external"';
 580+ }
 581+ if ( $type == 'spike' ) {
 582+ $output .= 'flashvars="flvbaseclip=' . $id . '&"';
 583+ }
 584+ if ( $type != "interia" && $type != "znajomi" && $type != "youaretv" && $type != "youare" && $type != "wrzuta" && $type != 'brightcove' ) {
 585+ $output .= '></embed></object>';
 586+ }
 587+ }
 588+ if ( array_key_exists( 'desc', $args ) ) {
 589+ $output .= '<div class="thumbcaption" align="left">';
 590+ $desc2 = $parser->recursiveTagParse( $desc );
 591+ $output .= $desc2 . '</div>';
 592+ }
 593+ } else {
 594+ global $wgFramedVideoError, $wgFramedVideoErrors, $wgFramedVideoErrorHeightRequired;
 595+ global $wgFramedVideoErrorHeightRequiredNotOnlyWidth, $wgFramedVideoUnknownType, $wgFramedVideoErrorNoIdGiven;
 596+ global $wgFramedVideoErrorWidthTooBig, $wgFramedVideoErrorHeightTooBig, $wgFramedVideoErrorLimitMaxWidth;
 597+ global $wgFramedVideoErrorLimitMaxHeight, $wgFramedVideoErrorNoIntegerWidth, $wgFramedVideoErrorNoIntegerHeight;
 598+ global $wgFramedVideoErrorFullSizeNotAllowed, $wgFramedVideoHeightAndWidthRequired, $wgFramedVideoErrorNoIntegerWidth;
 599+ global $wgFramedVideoErrorSeeHelp;
 600+ $output .= '<div class="thumbcaption" align="left">';
 601+ wfLoadExtensionMessages( 'FramedVideo' );
 602+ $errors = array_sum( $errorid );
 603+ if ( $errors == 1 ) {
 604+ if ( !isset( $wgFramedVideoError ) ) { $wgFramedVideoError = wfMsg( 'framedvideo_error' ); }
 605+ } else {
 606+ if ( !isset( $wgFramedVideoErrors ) ) { $wgFramedVideoErrors = wfMsg( 'framedvideo_errors' ); }
 607+ }
 608+ if ( array_key_exists( 4, $errorid ) ) {
 609+ if ( !isset( $wgFramedVideoErrorNoIdGiven ) ) {
 610+ $wgFramedVideoErrorNoIdGiven = wfMsg( 'framedvideo_error_no_id_given' );
 611+ }
 612+ }
 613+ if ( array_key_exists( 5, $errorid ) ) {
 614+ if ( !isset( $wgFramedVideoErrorWidthTooBig ) ) {
 615+ $wgFramedVideoErrorWidthTooBig = wfMsg( 'framedvideo_error_width_too_big' );
 616+ }
 617+ if ( !isset( $wgFramedVideoErrorLimitMaxWidth ) ) {
 618+ $wgFramedVideoErrorLimitMaxWidth = wfMsg( 'framedvideo_error_limit', $maxwidth );
 619+ }
 620+ }
 621+ if ( array_key_exists( 6, $errorid ) ) {
 622+ if ( !isset( $wgFramedVideoErrorHeightTooBig ) ) {
 623+ $wgFramedVideoErrorHeightTooBig = wfMsg( 'framedvideo_error_height_too_big' );
 624+ }
 625+ if ( !isset( $wgFramedVideoErrorLimitMaxHeight ) ) {
 626+ $wgFramedVideoErrorLimitMaxHeight = wfMsg( 'framedvideo_error_limit', $maxheight );
 627+ }
 628+ }
 629+ if ( array_key_exists( 7, $errorid ) ) {
 630+ if ( !isset( $wgFramedVideoErrorNoIntegerWidth ) ) {
 631+ $wgFramedVideoErrorNoIntegerWidth = wfMsg( 'framedvideo_error_no_integer', 'width' );
 632+ }
 633+ }
 634+ if ( array_key_exists( 8, $errorid ) ) {
 635+ if ( !isset( $wgFramedVideoErrorNoIntegerHeight ) ) {
 636+ $wgFramedVideoErrorNoIntegerHeight = wfMsg( 'framedvideo_error_no_integer', 'height' );
 637+ }
 638+ }
 639+ if ( array_key_exists( 9, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_full_size_not_allowed', $type ); }
 640+ if ( array_key_exists( 10, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_height_and_width_required', $type ); }
 641+ if ( array_key_exists( 11, $errorid ) ) {
 642+ if ( !isset( $wgFramedVideoErrorNoIntegerWidth2 ) ) {
 643+ $wgFramedVideoErrorNoIntegerWidth2 = wfMsg( 'framedvideo_error_no_integer', 'width2' );
 644+ }
 645+ }
 646+ if ( !isset( $wgFramedVideoErrorSeeHelp ) ) {
 647+ $wgFramedVideoErrorSeeHelp = wfMsg( 'framedvideo_error_see_help' );
 648+ }
 649+ $errors = array_sum( $errorid );
 650+ if ( $errors == 1 ) {
 651+ $output .= $wgFramedVideoError;
 652+ } else {
 653+ $output .= $wgFramedVideoErrors;
 654+ }
 655+ if ( array_key_exists( 1, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_height_required', $type ); }
 656+ if ( array_key_exists( 2, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_height_required_not_only_width', $type ); }
 657+ if ( array_key_exists( 3, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_unknown_type', $type2 ); }
 658+ if ( array_key_exists( 4, $errorid ) ) { $output .= '<br />' . $wgFramedVideoErrorNoIdGiven; }
 659+ if ( array_key_exists( 5, $errorid ) ) {
 660+ $output .= '<br />' . $wgFramedVideoErrorWidthTooBig;
 661+ $output .= ' ' . $wgFramedVideoErrorLimitMaxWidth;
 662+ }
 663+ if ( array_key_exists( 6, $errorid ) ) {
 664+ $output .= '<br />' . $wgFramedVideoErrorHeightTooBig;
 665+ $output .= ' ' . $wgFramedVideoErrorLimitMaxHeight;
 666+ }
 667+ if ( array_key_exists( 7, $errorid ) ) { $output .= '<br />' . $wgFramedVideoErrorNoIntegerWidth; }
 668+ if ( array_key_exists( 8, $errorid ) ) { $output .= '<br />' . $wgFramedVideoErrorNoIntegerHeight; }
 669+ if ( array_key_exists( 9, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_full_size_not_allowed', $type ); }
 670+ if ( array_key_exists( 10, $errorid ) ) { $output .= '<br />' . wfMsg( 'framedvideo_error_height_and_width_required', $type ); }
 671+ if ( array_key_exists( 11, $errorid ) ) { $output .= '<br />' . $wgFramedVideoErrorNoIntegerWidth2; }
 672+ $output .= '<br />' . $parser->recursiveTagParse( $wgFramedVideoErrorSeeHelp ) . '</div>';
 673+ }
 674+ if ( $position == null ) {
 675+ $output .= '</div></div>';
 676+ }
 677+ if ( $position != null && $frame == true ) {
 678+ if ( $position == "center" ) {
 679+ $output .= '</div></div></div>';
 680+ } elseif ( $position == "left" ) {
 681+ $output .= '</div></div>';
 682+ } else {
 683+ $output .= '</div></div>';
 684+ }
 685+ }
 686+ if ( $position != null && $frame == false ) {
 687+ if ( $position == "center" ) {
 688+ $output .= '</span></div></div>';
 689+ } elseif ( $position == "left" ) {
 690+ $output .= '</span></div>';
 691+ } else {
 692+ $output .= '</span></div>';
 693+ }
 694+ }
 695+ return $output;
 696+}
 697+
 698+function trueOrFalse ( $input ) {
 699+ if ( $input == "true" ) { $output = true; }
 700+ if ( $input == "false" ) { $output = false; }
 701+ return $output;
 702+}

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r46994* update a few messages...siebrand00:32, 8 February 2009

Status & tagging log