mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Add regexp support to spamfilter
This commit is contained in:
parent
75f55c9b5e
commit
7c07727e91
9 changed files with 38 additions and 16 deletions
5
modules/spamfilter/tpl/css/spamfilter_admin.css
Normal file
5
modules/spamfilter/tpl/css/spamfilter_admin.css
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
span.is_regexp {
|
||||
display: inline-block;
|
||||
margin-left: 4px;
|
||||
color: red;
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue