乖乖念祢
乖乖念祢
3608 0 0

youbbs添加56视频地址转在线播放 QQ临时会话

if(stripos($text, 'qq')){
$text = preg_replace('/[qQ]{2}[::]([0-9]{5,11})/', '<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=$1&site=555PC.com&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:$1:45" alt="555PC.com" title="QQ:$1"/></a>QQ:$1',$text);
}
// 56  2014.9.2添加
if(strpos($text, '56.com')){
if(strpos($text, 'player')){
$text = preg_replace('/http:\/\/player\.56\.com\/v_([a-zA-Z0-9]{8,}\.swf)/', '<embed src="http://player.56.com/v_\1" type="application/x-shockwave-flash" width="560" height="470" allowfullscreen="true" allownetworking="all" allowscriptaccess="always"></embed>', $text);
}else{
$text = preg_replace('/http:\/\/www\.56\.com\/(.+)\/v_([a-zA-Z0-9]{8,})\.html/', '<embed src="http://player.56.com/v_\2.swf" type="application/x-shockwave-flash" width="560" height="470" allowfullscreen="true" allownetworking="all" allowscriptaccess="always"></embed>', $text);
}
}```
![](/static/upload/1409645439.jpg)
输入QQ不分大小写+英文冒号+Q号即可 例如:qq:55555
效果可见http://www.555pc.com/t-30
56视频    http://www.555pc.com/t-75
0

See Also

Nearby


Discussion

Login Topics