mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@864 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5a2be2d812
commit
35b9bb8fd2
28 changed files with 186 additions and 485 deletions
|
|
@ -64,9 +64,8 @@
|
|||
* 등록된 IP는 스패머로 간주
|
||||
**/
|
||||
function insertIP($ipaddress) {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->ipaddress = $ipaddress;
|
||||
return $oDB->executeQuery('spamfilter.insertDeniedIP', $args);
|
||||
return executeQuery('spamfilter.insertDeniedIP', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -76,9 +75,8 @@
|
|||
function deleteIP($ipaddress) {
|
||||
if(!$ipaddress) return;
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
$args->ipaddress = $ipaddress;
|
||||
return $oDB->executeQuery('spamfilter.deleteDeniedIP', $args);
|
||||
return executeQuery('spamfilter.deleteDeniedIP', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -88,9 +86,8 @@
|
|||
function insertWord($word) {
|
||||
if(!$word) return;
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
$args->word = $word;
|
||||
return $oDB->executeQuery('spamfilter.insertDeniedWord', $args);
|
||||
return executeQuery('spamfilter.insertDeniedWord', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -100,9 +97,8 @@
|
|||
function deleteWord($word) {
|
||||
if(!$word) return;
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
$args->word = $word;
|
||||
return $oDB->executeQuery('spamfilter.deleteDeniedWord', $args);
|
||||
return executeQuery('spamfilter.deleteDeniedWord', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -111,8 +107,7 @@
|
|||
* 스패머로 등록할 수 있음
|
||||
**/
|
||||
function insertLog() {
|
||||
$oDB = &DB::getInstance();
|
||||
$output = $oDB->executeQuery('spamfilter.insertLog');
|
||||
$output = executeQuery('spamfilter.insertLog');
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,10 +26,9 @@
|
|||
* @brief 등록된 금지 IP의 목록을 return
|
||||
**/
|
||||
function getDeniedIPList() {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->sort_index = "regdate";
|
||||
$args->page = Context::get('page')?Context::get('page'):1;
|
||||
$output = $oDB->executeQuery('spamfilter.getDeniedIPList', $args);
|
||||
$output = executeQuery('spamfilter.getDeniedIPList', $args);
|
||||
if(!$output->data) return;
|
||||
if(!is_array($output->data)) return array($output->data);
|
||||
return $output->data;
|
||||
|
|
@ -39,9 +38,8 @@
|
|||
* @brief 인자로 넘겨진 ipaddress가 금지 ip인지 체크하여 return
|
||||
**/
|
||||
function isDeniedIP($ipaddress) {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->ipaddress = $ipaddress;
|
||||
$output = $oDB->executeQuery('spamfilter.isDeniedIP', $args);
|
||||
$output = executeQuery('spamfilter.isDeniedIP', $args);
|
||||
if($output->data->count>0) return true;
|
||||
return false;
|
||||
}
|
||||
|
|
@ -50,9 +48,8 @@
|
|||
* @brief 등록된 금지 Word 의 목록을 return
|
||||
**/
|
||||
function getDeniedWordList() {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->sort_index = "regdate";
|
||||
$output = $oDB->executeQuery('spamfilter.getDeniedWordList', $args);
|
||||
$output = executeQuery('spamfilter.getDeniedWordList', $args);
|
||||
if(!$output->data) return;
|
||||
if(!is_array($output->data)) return array($output->data);
|
||||
return $output->data;
|
||||
|
|
@ -64,10 +61,9 @@
|
|||
function getLogCount($time = 60, $ipaddress='') {
|
||||
if(!$ipaddress) $ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
$args->ipaddress = $ipaddress;
|
||||
$args->regdate = date("YmdHis", time()-$time);
|
||||
$output = $oDB->executeQuery('spamfilter.getLogCount', $args);
|
||||
$output = executeQuery('spamfilter.getLogCount', $args);
|
||||
$count = $output->data->count;
|
||||
return $count;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue