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

By at • 1952次点击
乖乖念祢

``` //QQ临时会话 2013.9.2添加

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);
    }
}```

输入QQ不分大小写+英文冒号+Q号即可 例如:qq:55555 效果可见http://www.555pc.com/t-30 5 56视频 http://www.555pc.com/t-75 4


在线播放, QQ, 56, youbbs, 会话


目前尚无回复
登录 后发表评论