mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add hit counter and latest hit timer to IP spamfilter
This commit is contained in:
parent
853d6753eb
commit
1bf488e367
6 changed files with 52 additions and 13 deletions
|
|
@ -21,9 +21,16 @@ class spamfilterAdminView extends spamfilter
|
|||
*/
|
||||
function dispSpamfilterAdminDeniedIPList()
|
||||
{
|
||||
// Get sort index
|
||||
$sort_index = Context::get('sort_index');
|
||||
if (!in_array($sort_index, array('regdate', 'latest_hit', 'hit')))
|
||||
{
|
||||
$sort_index = 'regdate';
|
||||
}
|
||||
|
||||
// Get the list of denied IP addresses and words
|
||||
$oSpamFilterModel = getModel('spamfilter');
|
||||
$ip_list = $oSpamFilterModel->getDeniedIPList();
|
||||
$ip_list = $oSpamFilterModel->getDeniedIPList($sort_index);
|
||||
Context::set('ip_list', $ip_list);
|
||||
|
||||
$security = new Security();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue