mylittleforum youtube (mylittleforum)

by yangsw @, Wednesday, August 24, 2016, 02:40 (480 days ago)
edited by yangsw, Sunday, March 05, 2017, 00:34

https://github.com/ilosuna/mylittleforum/blob/master/includes/functions.inc.php

lines 531-539

$html = '<!--[if IE]>
    <object type="application/x-shockwave-flash" data="'.htmlspecialchars($content = str_replace("https://www.youtube.com/watch?v=", "http://www.youtube.com/v/", $content)).'" width="[width]" height="[height]">
    <param name="movie" value="'.htmlspecialchars($content = str_replace("https://www.youtube.com/watch?v=", "http://www.youtube.com/v/", $content)).'" />
    </object>
    <![endif]-->
    <!--[if !IE]>-->
    <iframe width="560" height="315" src="'.htmlspecialchars($content).'" frameborder="0" allowfullscreen></iframe>
    <!--<![endif]-->';

Tags:
youtube, mylittleforum


Complete thread:

 RSS Feed of thread

powered by my little forum