dz3.2版本不显示swf文件,网上找到替换代码,但是没搞明白意思:
需修改的源文件代码:由于这段代码太多,这里发不出来,麻烦打开这个教程帮我看一下 https://www.iteye.com/blog/sunxboy-2205640
我不明白的是他说的function parsemedia($params, $url) {}这段替换,是替换{}里面的内容还是function parsemedia($params, $url) {}这段都替换掉?
function parsemedia($params, $url) { $params = explode(‘,’, $params); $width = intval($params[1]) > 800 ? 800 : intval($params[1]); $height = intval($params[2]) > 600 ? 600 : intval($params[2]); $url = addslashes($url); if($flv = parseflv($url, $width, $height)) { return $flv; } if(in_array(count($params), array(3, 4))) { $type = $params[0]; $url = str_replace(array(‘<‘, ‘>’), ”, str_replace(‘\"’, ‘"’, $url)); switch($type) { case ‘mp3’: case ‘wma’: case ‘ra’: case ‘ram’: case ‘wav’: case ‘mid’: return parseaudio($url, $width); case ‘rm’: case ‘rmvb’: case ‘rtsp’: $mediaid = ‘media_’.random(3); |