插件名稱:遮罩用戶在簽名檔中的某些Discuz代碼
適用版本:2.5/SP1
最後更新日期:25/8
作 者:jimmyjimmyqqq
修 改:2.2F,忘記了
程式指導:jimmyjimmyqqq
數據升級:/
修改文件:viewthread.php
修改模板:/
新增文件:/
新增模板:/
安裝難度:★☆☆☆☆
演 示:
沒有呀,你自己裝就知的了!
+++++++++++++++++++++++++++++++++++
開始安裝
+++++++++++++++++++++++++++++++++++
打開viewthread.php
找:
- $post['signature'] = $post['usesig'] && $post['signature'] ? postify(
复制代码
前面加:
- $post['signature'] = preg_replace("/(\[swf])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[\/swf])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[mp])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[\/mp])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[ra])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[\/ra])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[rm])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[\/rm])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[rmvb])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[\/rmvb])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[wma])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[\/wma])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[wmv])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[\/wmv])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[asf])/siU","",$post['signature']);
- $post['signature'] = preg_replace("/(\[\/asf])/siU","",$post['signature']);
复制代码
可作適當的加減! |