mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 16:22:41 +09:00
issue 70 spamfilter admin module UI modified
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8768 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aa694bce26
commit
727c569053
9 changed files with 133 additions and 60 deletions
|
|
@ -136,11 +136,26 @@
|
|||
* @brief IP registration
|
||||
* The registered IP address is considered as a spammer
|
||||
**/
|
||||
function insertIP($ipaddress, $description = null) {
|
||||
$args->ipaddress = $ipaddress;
|
||||
if($description) $args->description = $description;
|
||||
function insertIP($ipaddressList, $description = null) {
|
||||
//리눅스시.. 변환부분 체크하는 것 다시 봐야할 듯.
|
||||
$ipaddressList = str_replace("\r","",$ipaddressList);
|
||||
$ipaddressList = explode("\n",$ipaddressList);
|
||||
debugPrint('sdfsdf');
|
||||
foreach($ipaddressList as $ipaddressKey => $ipaddressValue) {
|
||||
preg_match("/(\d{1,3}(?:.(\d{1,3}|\*)){3})\s*(\/\/\s*(.*))?/",$ipaddressValue,$matches);
|
||||
debugPrint($matches);
|
||||
if($ipaddress=trim($matches[1])) {
|
||||
$args->ipaddress = $ipaddress;
|
||||
if(!$description && $matches[4]) $args->description = $matches[4];
|
||||
else $args->description = $description;
|
||||
}
|
||||
|
||||
$output = executeQuery('spamfilter.insertDeniedIP', $args);
|
||||
|
||||
if(!$output->toBool()) return $output;
|
||||
}
|
||||
return $output;
|
||||
|
||||
return executeQuery('spamfilter.insertDeniedIP', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue