找到 /source/function/function_discuzcode.php 大约 206 行
找到代码:- if(strpos($msglower, '[/flash]') !== FALSE) {
- $message = preg_replace("/\[flash(=(\d+),(\d+))?\]\s*([^\[\<\r\n]+?)\s*\[\/flash\]/is", "[media]\\4[/media]", $message);
- }
复制代码 修改为:- if(strpos($msglower, '[/flash]') !== FALSE) {
- //$message = preg_replace("/\[flash(=(\d+),(\d+))?\]\s*([^\[\<\r\n]+?)\s*\[\/flash\]/is", "[media]\\4[/media]", $message);
- $message = preg_replace("/\[flash(=(\d+),(\d+))?\]\s*([^\[\<\r\n]+?)\s*\[\/flash\]/", "<embed src='\\4' allowFullScreen='true' quality='high' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash'></embed>", $message);
- }
复制代码 更新缓存即可
|