我很老吗?晕呼,其实这个功能不用搞的这么复杂,
这些代码是影响速度且有关安全问题的代码,
所以一次性给于加了就是了,一般不会去更改
所以我给你的评分理由是:实用性
代码如下:
$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']); |