// 判断是否为空
$wrong = $check->fn_empty('article', 'title, keyword, content');
// 判断是否含有非法字符
$wrong = $check->fn_illegal_char('article', 'title, keyword, content');
if ($wrong) {
foreach ($wrong as $key => $value) {
$wrong_format .= $wrong[$key] . '<br>';
}
$dou->dou_msg($wrong_format, $_URL['article']);
}
其中'article'表示当前模块名,'title, keyword, content'表示要判断的字段,在语言包中必须有对应的语言变量,如article_title有对应的语言变量设置为“文章标题”