mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 11:19:56 +09:00
#19029741 - 스팸필터 IP차단시 메모 남길 수 있도록 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7612 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
480c268ff9
commit
54e75da57f
7 changed files with 23 additions and 5 deletions
|
|
@ -132,7 +132,7 @@
|
|||
// 제목과 블로그이름이 동일할 경우 최근 6시간내의 ip를 조사하여 삭제하고 금지ip로 등록
|
||||
if($obj->title == $obj->excerpt) {
|
||||
$oTrackbackController->deleteTrackbackSender(60*60*6, $ipaddress, $obj->url, $obj->blog_name, $obj->title, $obj->excerpt);
|
||||
$this->insertIP($ipaddress.'.*');
|
||||
$this->insertIP($ipaddress.'.*', 'AUTO-DENIED : trackback.insertTrackback');
|
||||
return new Object(-1,'msg_alert_trackback_denied');
|
||||
}
|
||||
|
||||
|
|
@ -153,8 +153,9 @@
|
|||
* @brief IP 등록
|
||||
* 등록된 IP는 스패머로 간주
|
||||
**/
|
||||
function insertIP($ipaddress) {
|
||||
function insertIP($ipaddress, $description = null) {
|
||||
$args->ipaddress = $ipaddress;
|
||||
if($description) $args->description = $description;
|
||||
|
||||
return executeQuery('spamfilter.insertDeniedIP', $args);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue