// 判斷是否為空
$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有對應的語言變量設置為“文章標題”