git-svn-id: http://xe-core.googlecode.com/svn/trunk@237 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-05 06:31:22 +00:00
parent 6ead633151
commit a5f53d4b25
12 changed files with 158 additions and 47 deletions

View file

@ -0,0 +1,32 @@
<?php
/**
* @class spamfilterModel
* @author zero (zero@nzeo.com)
* @brief spamfilter 모듈의 controller class
**/
class spamfilterModel extends spamfilter {
/**
* @brief 초기화
**/
function init() {
}
/**
* @brief 지정된 IPaddress의 특정 시간대 내의 로그 수를 return
**/
function getLogCount($time = 3600, $ipaddress='') {
if(!$ipaddress) $ipaddress = $_SERVER['REMOTE_ADDR'];
$oDB = &DB::getInstance();
$args->ipaddress = $ipaddress;
$args->regdate = date("YmdHis", time()-$time);
$output = $oDB->executeQuery('spamfilter.getLogCount');
$count = $output->data->count;
return $count;
}
}
?>