dedecms(本例為V57_UTF8_SP1)中在互動部分有詞語過濾功能,但是文章部分沒有添加此功能,我們自己手動添加下發(fā)布文章禁用詞語過濾功能。

if( $cfg_notallowstr != '' ) { if(preg_match("#".$cfg_notallowstr."#i", $title)) { ShowMsg("title has not allow words!","-1"); exit(); }if(preg_match("#".$cfg_notallowstr."#i", $shorttitle)) { ShowMsg("shorttitle has not allow words!!","-1"); exit(); }if(preg_match("#".$cfg_notallowstr."#i", $description)) { ShowMsg("description has not allow words!","-1"); exit(); } if(preg_match("#".$cfg_notallowstr."#i", $body)) { ShowMsg("body has not allow words!","-1"); exit(); } } |
新聞熱點
疑難解答
圖片精選