假如對方回復(fù)不了設(shè)置的5個(gè)中文,會(huì)提示對方:請尊重別人勞動(dòng)成果,嚴(yán)禁惡意灌水!必須輸入5個(gè)中文以上!亂灌水會(huì)被封號處理!
不一定設(shè)置5個(gè),可以根據(jù)你的站點(diǎn)隨意設(shè)置!
1:打開source\include\post\post_newreply.php
$message = preg_replace('/\[attachimg\](\d+)\[\/attachimg\]/is', '[attach]\1[/attach]', $message);
2:在其下一行加入以下代碼:
if(preg_match_all("/[\xB0-\xF7][\xA1-\xFE]/",$message,$regs)<=5) showmessage("請尊重別人勞動(dòng)成果,嚴(yán)禁惡意灌水!必須輸入5個(gè)中文以上!亂灌水會(huì)被封號處理!");