备份:垃圾评论过滤
//Anti-Spam 防止垃圾评论function lianyue_comment_post( $incoming_comment ) {
$pattern = '/[一-龥]/u';
$http = '/[|サ|ン|グ|ラ|ス|ナ|イ|キ|す|る|こ|と|の|ま|い|計|財|販|ッ|チ|]/u';
if(preg_match($http, $incoming_comment['comment_content'])) {
$myfile = "blacklist.txt" ;
$targetip = $_SERVER['REMOTE_ADDR'] ;
$file_poin- 阅读剩余部分 -