mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
32 lines
815 B
PHP
32 lines
815 B
PHP
<?php
|
|
/**
|
|
* @class spamfilterModel
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief spamfilter 모듈의 Model 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;
|
|
}
|
|
|
|
|
|
}
|
|
?>
|