Add regexp support to spamfilter

This commit is contained in:
Kijin Sung 2018-08-14 13:15:11 +09:00
parent 75f55c9b5e
commit 7c07727e91
9 changed files with 38 additions and 16 deletions

View file

@ -0,0 +1,5 @@
span.is_regexp {
display: inline-block;
margin-left: 4px;
color: red;
}

View file

@ -25,7 +25,7 @@
</thead>
<tbody>
<tr loop="$word_list => $word_info">
<td>{$word_info->word}</td>
<td>{$word_info->word} <!--@if(preg_match('#^/.+/$#', $word_info->word))--><span class="is_regexp">[{$lang->msg_denied_word_is_regexp}]</span><!--@end--></td>
<td><!--@if($word_info->latest_hit)-->{zdate($word_info->latest_hit,'Y-m-d H:i')}<!--@else-->-<!--@end--></td>
<td>{$word_info->hit}</td>
<td>{zdate($word_info->regdate,'Y-m-d')}</td>

View file

@ -1,3 +1,4 @@
<load target="css/spamfilter_admin.css" />
<load target="js/spamfilter_admin.js" />
<div class="x_page-header">
<h1>{$lang->spamfilter} <a class="x_icon-question-sign" href="./common/manual/admin/index.html#UMAN_content_spamfilter" target="_blank">{$lang->help}</a></h1>