mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
35 lines
915 B
PHP
35 lines
915 B
PHP
<?php
|
|
/**
|
|
* @class spamfilterController
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief spamfilter 모듈의 controller class
|
|
**/
|
|
|
|
class spamfilterController extends spamfilter {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
}
|
|
|
|
/**
|
|
* @brief IP 등록
|
|
* 등록된 IP는 스패머로 간주
|
|
**/
|
|
function insertIP($ipaddress) {
|
|
$args->ipaddress = $ipaddress;
|
|
return executeQuery('spamfilter.insertDeniedIP', $args);
|
|
}
|
|
|
|
/**
|
|
* @brief 로그 등록
|
|
* 현 접속 IP를 로그에 등록, 로그의 간격이 특정 시간 이내일 경우 도배로 간주하여
|
|
* 스패머로 등록할 수 있음
|
|
**/
|
|
function insertLog() {
|
|
$output = executeQuery('spamfilter.insertLog');
|
|
return $output;
|
|
}
|
|
}
|
|
?>
|