54177(fd!)
新手上路

UID 76652
精华
0
积分 33
帖子 28
金钱 33 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-7-18
状态 离线
|
[急求][跪求]支持视频(wmv,rm)音频(mp3,wma)播放的UBB源码
<?php $content=str_replace("<","<",$content); $content=str_replace(">",">",$content); $content=str_replace("|","│",$content); $content=str_replace("r","",$content); $content=str_replace("t","",$content); $content=str_replace("n","<br>",$content); $content=str_replace(" "," ",$content);
//UBB 标签 $content =str_replace("[post]", "<!--", $content); $content =str_replace("[/post]", "-->------内容只有回复才可看------<br><a href=\"read.php?tid=$tid&fpage=1\"><b style=\"color:red\">马上回复</b></a>", $content); $content =str_replace("[h1]", "<h1>", $content); $content =str_replace("[h2]", "<h2>", $content); $content =str_replace("[h3]", "<h3>", $content); $content =str_replace("[h4]", "<h4>", $content); $content =str_replace("[h5]", "<h5>", $content); $content =str_replace("[h6]", "<h6>", $content); $content =str_replace("[h7]", "<h7>", $content); $content =str_replace("[/h1]", "</h1>", $content); $content =str_replace("[/h2]", "</h2>", $content); $content =str_replace("[/h3]", "</h3>", $content); $content =str_replace("[/h4]", "</h4>", $content); $content =str_replace("[/h5]", "</h5>", $content); $content =str_replace("[/h6]", "</h6>", $content); $content =str_replace("[/h7]", "</h7>", $content); $content =str_replace("[u]","<u>",$content); $content =str_replace("[/u]","</u>",$content); $content =str_replace("[b]","<b>",$content); $content =str_replace("[/b]","</b>",$content); $content =str_replace("[i]","<i>",$content); $content =str_replace("[/i]","</i>",$content); $content =str_replace("[br]","<br>",$content); $content =str_replace("[list]","<ul>",$content); $content =str_replace("[/list]","</ul>",$content); $content =str_replace("[olist]","<ol>",$content); $content =str_replace("[/olist]","</ol>",$content); $content =str_replace("[*]","<li>",$content); $content =str_replace("[hr]","<hr>",$content); $content =str_replace("[sup]","<sup>",$content); $content =str_replace("[/sup]","</sup>",$content); $content =str_replace('[url="','[url="',$content); $content =str_replace('"]','"]',$content); $pattern = array( "/[font=([^[]*)](.+?)[/font]/is", "/[color=([#0-9a-z]{1,10})](.+?)[/color]/is", "/[email=([^[]*)](.+?)[/email]/is", //"/[email=\"([^[]*)\"](.+?)[/email]/is", "/[email]([^[]*)[/email]/is", "/[url=([^[]*)](.+?)[/url]/is", "/[url]www.([^[]*)[/url]/is", "/[url]([^[]*)[/url]/is", "/[quote]s*(.*?)s*[/quote]/is", "/([fly])(.+?)([/fly])/is", "/([move])(.+?)([/move])/is", "/([align=)(left|center|right)(])(.+?)([/align])/is", "/([shadow=)(S+?)(,)(.+?)(,)(.+?)(])(.+?)([/shadow])/is", "/([glow=)(S+?)(,)(.+?)(,)(.+?)(])(.+?)([/glow])/is", "/[code](.+?)[/code]/is"
"/[swf]s*([^[<rn]+?)s*[/swf]/ies", "/[wmv]s*(.+?)s*[/wmv]/ies", "/[mp3]s*(.+?)s*[/mp3]/ies", "/[ron]s*(.+?)s*[/ron]/ies", "/[rm]s*(.+?)s*[/rm]/ies", "/[wmv=(d+?)[x|,](d+?)[x|,](d+?)]s*(.+?)s*[/wmv]/ies", "/[rm=(d+?)[x|,](d+?)[x|,](d+?)]s*(.+?)s*[/rm]/ies", "/[img=(d{1,3})[x|,](d{1,3})]s*([^[]+?)s*[/img]/ies" );
$replacement = array( "<font face=\"\1\">\2</font>", "<font color=\"\1\">\2</font>", "<a href=\"mailto:\1\">\2</a>", //"<a href=\"mailto:\1\">\2</a>", "<a href=\"mailto:\1\">\1</a>", "<a href=\"\1\" target=_blank>\2</a>", "<a href=\"\1\" target=_blank>\1</a>", "<a href=\"\1\" target=_blank>\1</a>", "<table cellpadding=0 cellspacing=0 border=0 WIDTH=94% bgcolor=#000000 align=center><tr><td><table width=100% cellpadding=5 cellspacing=1 border=0><TR><TD BGCOLOR=#EFF3F9>\1</table></table>", "<marquee width=90% behavior=alternate scrollamount=3>\2</marquee>", "<MARQUEE scrollamount=3>\2</MARQUEE>", "<DIV Align=\2>\4</DIV>", "<table width=\2 style=\"filter:shadow(color=\4, direction=\6 ,strength=2)\">\8</table>", "<table width=\2 style=\"filter:glow(color=\4, strength=\6)\">\8</table>", "<table border=0 width=95% align=center cellpadding=2 bgcolor=eeeeee><tr><td><pre><font face='Courier New'>\1</font></pre></td></tr></table>", ); $content = preg_replace($pattern,$replacement,$content); $content = preg_replace("/[img]s*(S+?)s*[/img]/is","<a href=\1 target=_blank><img src=\1 border=0 alt='点击图片放大' onload='javascript:if(this.width>screen.width-600) this.width=screen.width-600'></a>" ,$content); return $content;
?> 我实在是搞不出来,脑袋都快炸了.求求高手指点一二!谢谢谢谢!
附件: 您所在的用户组无法下载或查看附件
|
|