XoopsModules25x /
xoopstube
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * Module: XoopsTube |
||
| 5 | * |
||
| 6 | * You may not change or alter any portion of this comment or credits |
||
| 7 | * of supporting developers from this source code or any supporting source code |
||
| 8 | * which is considered copyrighted (c) material of the original comment or credit authors. |
||
| 9 | * |
||
| 10 | * PHP version 5 |
||
| 11 | * |
||
| 12 | * @category Module |
||
| 13 | * @package Xoopstube |
||
| 14 | * @author XOOPS Development Team |
||
| 15 | * @copyright 2001-2013 The XOOPS Project |
||
| 16 | * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) |
||
| 17 | * @version $Id$ |
||
| 18 | * @link http://sourceforge.net/projects/xoops/ |
||
| 19 | * @since 1.0.6 |
||
| 20 | * |
||
| 21 | * @param $returnsource |
||
| 22 | * |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | |||
| 26 | function xtubeReturnSource($returnsource) |
||
| 27 | { |
||
| 28 | switch ($returnsource) { |
||
| 29 | case 0: |
||
| 30 | $returnsource = _AM_XOOPSTUBE_YOUTUBE; |
||
| 31 | break; |
||
| 32 | case 1: |
||
| 33 | $returnsource = _AM_XOOPSTUBE_METACAFE; |
||
| 34 | break; |
||
| 35 | case 2: |
||
| 36 | $returnsource = _AM_XOOPSTUBE_IFILM; |
||
| 37 | break; |
||
| 38 | case 3: |
||
| 39 | $returnsource = _AM_XOOPSTUBE_PHOTOBUCKET; |
||
| 40 | break; |
||
| 41 | case 4: |
||
| 42 | $returnsource = _AM_XOOPSTUBE_VIDDLER; |
||
| 43 | break; |
||
| 44 | case 100: |
||
| 45 | $returnsource = _AM_XOOPSTUBE_GOOGLEVIDEO; |
||
| 46 | break; |
||
| 47 | case 101: |
||
| 48 | $returnsource = _AM_XOOPSTUBE_MYSPAVETV; |
||
| 49 | break; |
||
| 50 | case 102: |
||
| 51 | $returnsource = _AM_XOOPSTUBE_DAILYMOTION; |
||
| 52 | break; |
||
| 53 | case 103: |
||
| 54 | $returnsource = _AM_XOOPSTUBE_BLIPTV; |
||
| 55 | break; |
||
| 56 | case 104: |
||
| 57 | $returnsource = _AM_XOOPSTUBE_CLIPFISH; |
||
| 58 | break; |
||
| 59 | case 105: |
||
| 60 | $returnsource = _AM_XOOPSTUBE_LIVELEAK; |
||
| 61 | break; |
||
| 62 | case 106: |
||
| 63 | $returnsource = _AM_XOOPSTUBE_MAKTOOB; |
||
| 64 | break; |
||
| 65 | case 107: |
||
| 66 | $returnsource = _AM_XOOPSTUBE_VEOH; |
||
| 67 | break; |
||
| 68 | case 108: |
||
| 69 | $returnsource = _AM_XOOPSTUBE_VIMEO; |
||
| 70 | break; |
||
| 71 | case 109: |
||
| 72 | $returnsource = _AM_XOOPSTUBE_MEGAVIDEO; |
||
| 73 | break; |
||
| 74 | case 200: |
||
| 75 | $returnsource = _AM_XOOPSTUBE_XOOPSTUBE; |
||
| 76 | break; |
||
| 77 | } |
||
| 78 | |||
| 79 | return $returnsource; |
||
| 80 | } |
||
| 81 | |||
| 82 | // ******************************************************* |
||
| 83 | // Function for determining source for creating screenshot |
||
| 84 | // ******************************************************* |
||
| 85 | /** |
||
| 86 | * @param $vidid |
||
| 87 | * @param $title |
||
| 88 | * @param $source |
||
| 89 | * @param $picurl |
||
| 90 | * @param $screenshot |
||
| 91 | * @param string $width |
||
| 92 | * @param string $height |
||
| 93 | * |
||
| 94 | * @return string |
||
| 95 | */ |
||
| 96 | function xtubeGetVideoThumb($vidid, $title, $source, $picurl, $screenshot, $width = '', $height = '') |
||
| 97 | { |
||
| 98 | global $xoopsModuleConfig; |
||
| 99 | if ($width == '' || $height == '') { |
||
| 100 | $width = $xoopsModuleConfig['shotwidth']; |
||
| 101 | $height = $xoopsModuleConfig['shotheight']; |
||
| 102 | } |
||
| 103 | $thumb = ''; |
||
| 104 | switch ($source) { |
||
| 105 | // YouTube |
||
| 106 | View Code Duplication | case 0: |
|
| 107 | $thumb |
||
| 108 | = '<img src="http://img.youtube.com/vi/' . $vidid . '/default.jpg" title="' . $title . '" alt="' . $title . '" width="' . $width . '" height="' . $height |
||
| 109 | . '" style="padding: 0px; border-style: none;" />'; |
||
| 110 | break; |
||
| 111 | |||
| 112 | // MetaCafe |
||
| 113 | case 1: |
||
| 114 | list($metaclip) = explode('[/]', $vidid); |
||
| 115 | $videothumb['metathumb'] = $metaclip; |
||
| 116 | $thumb |
||
| 117 | = |
||
| 118 | '<img src="http://www.metacafe.com/thumb/' . $videothumb['metathumb'] . '.jpg" title="' . $title . '" alt="' . $title . '" width="' . $width . '" height="' . $height |
||
| 119 | . '" style="padding: 0px; border-style: none;" />'; |
||
| 120 | break; |
||
| 121 | |||
| 122 | // iFilm/Spike |
||
| 123 | View Code Duplication | case 2: |
|
| 124 | $thumb |
||
| 125 | = '<img src="http://img3.ifilmpro.com/resize/image/stills/films/resize/istd/' . $vidid . '.jpg?width=' . $width . '" title="' . $title . '" alt="' . $title |
||
| 126 | . '" style="padding: 0px; border-style: none;" />'; |
||
| 127 | break; |
||
| 128 | |||
| 129 | // Photobucket |
||
| 130 | View Code Duplication | case 3: |
|
| 131 | $thumb |
||
| 132 | = '<img src="http://i153.photobucket.com/albums/' . $vidid . '.jpg" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title |
||
| 133 | . '" style="padding: 0px; border-style: none;" />'; |
||
| 134 | break; |
||
| 135 | |||
| 136 | // Photobucket |
||
| 137 | View Code Duplication | case 4: |
|
| 138 | $thumb |
||
| 139 | = '<img src="http://cdn-thumbs.viddler.com/thumbnail_2_' . $vidid . '.jpg" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title |
||
| 140 | . '" style="padding: 0px; border-style: none;" />'; |
||
| 141 | break; |
||
| 142 | |||
| 143 | // Google Video, MySpace TV, DailyMotion, BrightCove, Blip.tv, ClipFish, LiveLeak, Maktoob, Veoh |
||
| 144 | case 100: |
||
| 145 | case 101: |
||
| 146 | case 102: |
||
| 147 | case 103: |
||
| 148 | case 104: |
||
| 149 | case 105: |
||
| 150 | case 106: |
||
| 151 | case 107: |
||
| 152 | case 108: |
||
| 153 | View Code Duplication | case 109: |
|
| 154 | $thumb |
||
| 155 | = '<img src="' . $picurl . '" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;" />'; |
||
| 156 | break; |
||
| 157 | |||
| 158 | // Determine if video source is XoopsTube for thumbnail |
||
| 159 | View Code Duplication | case 200: |
|
| 160 | $thumb |
||
| 161 | = '<img src="' . XOOPS_URL . '/' . $screenshot . '" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title |
||
| 162 | . '" style="padding: 0px; border-style: none;" />'; |
||
| 163 | break; |
||
| 164 | } |
||
| 165 | |||
| 166 | return $thumb; |
||
| 167 | } |
||
| 168 | |||
| 169 | // ********************************** |
||
| 170 | // Function for determining publisher |
||
| 171 | // ********************************** |
||
| 172 | /** |
||
| 173 | * @param $vidid |
||
| 174 | * @param $publisher |
||
| 175 | * @param int $source |
||
| 176 | * |
||
| 177 | * @return string |
||
| 178 | */ |
||
| 179 | function xtubeGetVideoPublisher($vidid, $publisher, $source = 0) |
||
| 180 | { |
||
| 181 | |||
| 182 | switch ($source) { |
||
| 183 | // Determine if video source YouTube for publisher |
||
| 184 | case 0: |
||
| 185 | $publisher |
||
| 186 | = '<a href="http://www.youtube.com/profile?user=' . $publisher . '" target="_blank">' . $publisher . '</a>'; |
||
| 187 | break; |
||
| 188 | |||
| 189 | // Determine if video source MetaCafe for publisher |
||
| 190 | case 1: |
||
| 191 | $publisher |
||
| 192 | = '<a href="http://www.metacafe.com/channels/' . $publisher . '" target="_blank">' . $publisher . '</a>'; |
||
| 193 | break; |
||
| 194 | |||
| 195 | // Determine if video source iFilm/Spike for publisher |
||
| 196 | case 2: |
||
| 197 | $publisher |
||
| 198 | = '<a href="http://www.ifilm.com/profile/' . $publisher . '" target="_blank">' . $publisher . '</a>'; |
||
| 199 | break; |
||
| 200 | |||
| 201 | // Determine if video source Photobucket for publisher |
||
| 202 | case 3: |
||
| 203 | $string = 'th_'; |
||
| 204 | list($photobucket) = explode($string, $vidid); |
||
| 205 | $ppublisher['ppublisher'] = $photobucket; |
||
| 206 | $publisher |
||
| 207 | = '<a href="http://s39.photobucket.com/albums/' . $ppublisher['ppublisher'] . '" target="_blank">' . $publisher . '</a>'; |
||
| 208 | break; |
||
| 209 | |||
| 210 | // Determine if video source is Viddler for publisher |
||
| 211 | case 4: |
||
| 212 | $publisher |
||
| 213 | = '<a href="http://www.viddler.com/explore/' . $publisher . '/" target="_blank">' . $publisher . '</a>'; |
||
| 214 | break; |
||
| 215 | |||
| 216 | // Determine if video source is Google Video for publisher |
||
| 217 | case 100: |
||
| 218 | case 101: |
||
| 219 | case 103: |
||
| 220 | case 106: |
||
| 221 | case 108: |
||
| 222 | case 109: |
||
| 223 | // $publisher = $publisher; |
||
|
0 ignored issues
–
show
|
|||
| 224 | break; |
||
| 225 | |||
| 226 | // Determine if video source is DailyMotion for publisher |
||
| 227 | case 102: |
||
| 228 | $publisher |
||
| 229 | = '<a href="http://www.dailymotion.com/' . $publisher . '" target="_blank">' . $publisher . '</a>'; |
||
| 230 | break; |
||
| 231 | |||
| 232 | // Determine if video source is ClipFish for publisher |
||
| 233 | case 104: |
||
| 234 | $publisher |
||
| 235 | = '<a href="http://www.clipfish.de/user/' . $publisher . '" target="_blank">' . $publisher . '</a>'; |
||
| 236 | break; |
||
| 237 | |||
| 238 | // Determine if video source is LiveLeak for publisher |
||
| 239 | case 105: |
||
| 240 | $publisher |
||
| 241 | = '<a href="http://www.liveleak.com/user/' . $publisher . '" target="_blank">' . $publisher . '</a>'; |
||
| 242 | break; |
||
| 243 | |||
| 244 | // Determine if video source is Veoh for publisher |
||
| 245 | case 107: |
||
| 246 | $publisher |
||
| 247 | = '<a href="http://www.veoh.com/users/' . $publisher . '" target="_blank">' . $publisher . '</a>'; |
||
| 248 | break; |
||
| 249 | |||
| 250 | // Determine if video source is XoopsTube for publisher |
||
| 251 | case 200: |
||
| 252 | // $publisher = $publisher; |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
43% of this comment could be valid code. Did you maybe forget this after debugging?
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it. The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production. This check looks for comments that seem to be mostly valid code and reports them. Loading history...
|
|||
| 253 | break; |
||
| 254 | } |
||
| 255 | |||
| 256 | return $publisher; |
||
| 257 | } |
||
| 258 | |||
| 259 | // ************************************************ |
||
| 260 | //Function for displaying videoclip (embedded code) |
||
| 261 | // ************************************************ |
||
| 262 | /** |
||
| 263 | * @param $vidid |
||
| 264 | * @param $source |
||
| 265 | * @param $screenshot |
||
| 266 | * @param $picurl |
||
| 267 | * |
||
| 268 | * @return string |
||
| 269 | */ |
||
| 270 | function xtubeShowVideo($vidid, $source, $screenshot, $picurl) |
||
| 271 | { |
||
| 272 | global $xoopsModule, $xoopsModuleConfig; |
||
| 273 | $showvideo = ''; |
||
| 274 | $autoplay = $xoopsModuleConfig['autoplay']; |
||
| 275 | if ($xoopsModuleConfig['autoplay']) { |
||
| 276 | $autoplay2 = 'yes'; |
||
| 277 | $autoplay3 = 'true'; |
||
| 278 | $photobucket = '&ap=1'; |
||
| 279 | $google = 'FlashVars="autoPlay=true"'; |
||
| 280 | $viddler = 'flashvars="autoplay=t"'; |
||
| 281 | } else { |
||
| 282 | $autoplay2 = 'no'; |
||
| 283 | $autoplay3 = 'false'; |
||
| 284 | $photobucket = ''; |
||
| 285 | $google = ''; |
||
| 286 | $viddler = ''; |
||
| 287 | } |
||
| 288 | |||
| 289 | // $hquality = ''; |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
42% of this comment could be valid code. Did you maybe forget this after debugging?
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it. The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production. This check looks for comments that seem to be mostly valid code and reports them. Loading history...
|
|||
| 290 | // if ($hq == 1) { |
||
| 291 | // $hquality = '&ap=%2526fmt%3D18&'; |
||
| 292 | // } |
||
| 293 | |||
| 294 | switch ($source) { |
||
| 295 | // YouTube |
||
| 296 | case 0: |
||
| 297 | // $showvideo = '<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/' . $vidid . '&ap=%2526fmt%3D18&&autoplay=' . $autoplay . '&rel=1&fs=1&color1=0x999999&color2=0x999999&border=0&loop=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $vidid . '&ap=%2526fmt%3D18&&autoplay=' . $autoplay . '&rel=1&fs=1&color1=0x999999&color2=0x999999&border=0&loop=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="480" height="295"></embed></object>'; |
||
| 298 | $showvideo = '<embed src="http://www.youtube.com/v/' . $vidid . '&autoplay=' . $autoplay |
||
| 299 | . '&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed>'; |
||
| 300 | break; |
||
| 301 | |||
| 302 | // MetaCafe |
||
| 303 | case 1: |
||
| 304 | $showvideo = '<embed flashVars="playerVars=showStats=no|autoPlay=' . $autoplay2 . '" src="http://www.metacafe.com/fplayer/' . $vidid |
||
| 305 | . '.swf" width="480" height="295" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>'; |
||
| 306 | break; |
||
| 307 | |||
| 308 | // iFilm/Spike |
||
| 309 | case 2: |
||
| 310 | $showvideo |
||
| 311 | = |
||
| 312 | '<embed width="480" height="295" src="http://www.spike.com/efp" quality="high" bgcolor="000000" name="efp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="flvbaseclip=' |
||
| 313 | . $vidid . '" allowfullscreen="true"> </embed>'; |
||
| 314 | break; |
||
| 315 | |||
| 316 | // Photobucket |
||
| 317 | case 3: |
||
| 318 | $vidid = str_replace('th_', '', $vidid); |
||
| 319 | $showvideo |
||
| 320 | = |
||
| 321 | '<embed width="480" height="295" type="application/x-shockwave-flash" wmode="transparent" src="http://i51.photobucket.com/player.swf?file=http://vid51.photobucket.com/albums/' . $vidid |
||
| 322 | . '.flv' . $photobucket . '"></embed>'; |
||
| 323 | break; |
||
| 324 | |||
| 325 | // Viddler |
||
| 326 | case 4: |
||
| 327 | $showvideo = '<embed src="http://www.viddler.com/player/' . $vidid . '/" width="480" height="295" type="application/x-shockwave-flash" ' . $viddler |
||
| 328 | . ' allowScriptAccess="always" allowFullScreen="true" name="viddler_' . $vidid . '" ></embed>'; |
||
| 329 | break; |
||
| 330 | |||
| 331 | // Google Video |
||
| 332 | case 100: |
||
| 333 | $showvideo |
||
| 334 | = |
||
| 335 | '<embed style="width:480px; height:295px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=' . $vidid . '&hl=en" ' . $google |
||
| 336 | . '> </embed>'; |
||
| 337 | break; |
||
| 338 | |||
| 339 | // MySpace TV |
||
| 340 | case 101: |
||
| 341 | $showvideo |
||
| 342 | = '<embed src="http://mediaservices.myspace.com/services/media/embed.aspx/m=' . $vidid . ',t=1,mt=video,ap=' . $autoplay |
||
| 343 | . '" width="480" height="295" allowFullScreen="true" type="application/x-shockwave-flash"></embed>'; |
||
| 344 | break; |
||
| 345 | |||
| 346 | // DailyMotion |
||
| 347 | case 102: |
||
| 348 | $showvideo = '<embed src="http://www.dailymotion.com/swf/' . $vidid . '&autoPlay=' . $autoplay |
||
| 349 | . '" type="application/x-shockwave-flash" width="480" height="295" allowFullScreen="true" allowScriptAccess="always"></embed>'; |
||
| 350 | break; |
||
| 351 | |||
| 352 | // Blip.tv |
||
| 353 | case 103: |
||
| 354 | $showvideo |
||
| 355 | = |
||
| 356 | '<embed src="http://blip.tv/play/' . $vidid . '" type="application/x-shockwave-flash" width="480" height="295" allowscriptaccess="always" allowfullscreen="true" flashvars="autostart=' |
||
| 357 | . $autoplay3 . '"></embed>'; |
||
| 358 | break; |
||
| 359 | |||
| 360 | // ClipFish |
||
| 361 | case 104: |
||
| 362 | $showvideo = '<embed src="http://www.clipfish.de/videoplayer.swf?as=' . $autoplay . '&videoid=' . $vidid |
||
| 363 | . '==&r=1&c=0067B3" quality="high" bgcolor="#0067B3" width="464" height="380" name="player" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'; // Change c=0067B3 for different player color |
||
| 364 | break; |
||
| 365 | |||
| 366 | // LiveLeak |
||
| 367 | case 105: |
||
| 368 | $showvideo = '<embed src="http://www.liveleak.com/e/' . $vidid . '" type="application/x-shockwave-flash" flashvars="autostart=' . $autoplay3 |
||
| 369 | . '" wmode="transparent" width="450" height="370"></embed>'; |
||
| 370 | break; |
||
| 371 | |||
| 372 | // Maktoob |
||
| 373 | case 106: |
||
| 374 | $showvideo |
||
| 375 | = |
||
| 376 | '<embed width="448" height="320" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="flvplayer" bgcolor="#ffffff" devicefont="true" wmode="transparent" quality="high" src="http://clipat.maktoob.com/flvplayerOurJS.swf?file=http://' |
||
| 377 | . $vidid . '.flv&enablejs=true&image=' . $picurl . '&lightcolor=0x557722&backcolor=0x000000&frontcolor=0xCCCCCC&showfsbutton=true&autostart=' . $autoplay3 |
||
| 378 | . '&logo=http://clipat.maktoob.com/language/ar_sa/images/clipat-icon.png&displaywidth=448" />'; |
||
| 379 | break; |
||
| 380 | |||
| 381 | // Veoh |
||
| 382 | case 107: |
||
| 383 | $showvideo = '<embed src="http://www.veoh.com/veohplayer.swf?permalinkId=' . $vidid . '&id=anonymous&player=videodetailsembedded&affiliateId=&videoAutoPlay=' . $autoplay |
||
| 384 | . '" allowFullScreen="true" width="480" height="295" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'; |
||
| 385 | break; |
||
| 386 | |||
| 387 | // Vimeo |
||
| 388 | case 108: |
||
| 389 | $showvideo = '<embed src="http://vimeo.com/moogaloop.swf?clip_id=' . $vidid . '&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1&autoplay=' . $autoplay |
||
| 390 | . '" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" quality="best" width="400" height="321"></embed>'; |
||
| 391 | break; |
||
| 392 | |||
| 393 | // Megavideo |
||
| 394 | case 109: |
||
| 395 | $showvideo |
||
| 396 | = '<object width="640" height="363"><param name="movie" value="http://www.megavideo.com/v/' . $vidid |
||
| 397 | . '"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.megavideo.com/v/' . $vidid |
||
| 398 | . '" type="application/x-shockwave-flash" allowfullscreen="true" width="640" height="363"></embed></object>'; |
||
| 399 | break; |
||
| 400 | |||
| 401 | // XoopsTube |
||
| 402 | case 200: |
||
| 403 | // $showvideo = '<embed src="' . XOOPS_URL . '/modules/' . $xoopsModule->getvar('dirname') |
||
| 404 | // . '/include/mediaplayer.swf" width="425" height="350" allowScriptAccess="always" allowFullScreen="true" flashvars="width=425&height=350&file=' |
||
| 405 | // . XOOPS_URL . '/' . $xoopsModuleConfig['videodir'] . '/' . $vidid . '&image=' . XOOPS_URL . '/' |
||
| 406 | // . $xoopsModuleConfig['videoimgdir'] . '/' . $screenshot . '&autostart=' . $autoplay3 . '"></embed>'; |
||
| 407 | |||
| 408 | $showvideo |
||
| 409 | = ' |
||
| 410 | <script type="text/javascript" src="' . XOOPS_URL . '/modules/' . $xoopsModule->getvar('dirname') . '/flvplayer/flowplayer/flowplayer.min.js"></script> |
||
| 411 | <a href="' . XOOPS_URL . '/' . $xoopsModule->getvar('dirname') . '/' . $vidid . '" style="display: block; width: 520px; height: 330px;" id="player"></a> |
||
| 412 | <script> |
||
| 413 | flowplayer("player", "' . XOOPS_URL . '/modules/' . $xoopsModule->getvar('dirname') . '/flvplayer/flowplayer/flowplayer.swf", { |
||
| 414 | clip: { |
||
| 415 | autoPlay: ' . $autoplay3 . ', |
||
| 416 | autoBuffering: true |
||
| 417 | } |
||
| 418 | } |
||
| 419 | ); |
||
| 420 | </script> |
||
| 421 | '; |
||
| 422 | |||
| 423 | break; |
||
| 424 | } |
||
| 425 | |||
| 426 | return $showvideo; |
||
| 427 | } |
||
| 428 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.