mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@822 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
182f48d011
commit
712cb9906c
27 changed files with 110 additions and 102 deletions
|
|
@ -1,11 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module version="0.1">
|
||||
<title xml:lang="ko">스팸필터</title>
|
||||
<title xml:lang="en">spam filter</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<description xml:lang="ko">제로보드의 기본 스팸필터입니다.</description>
|
||||
<description xml:lang="en">Default spam filter of zeroboard</description>
|
||||
</author>
|
||||
<title xml:lang="ko">스팸필터</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<description xml:lang="ko">제로보드 XE의 기본 스팸필터입니다.</description>
|
||||
</author>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@
|
|||
<module>
|
||||
<grants />
|
||||
<actions>
|
||||
<action name="dispConfig" type="view" admin_index="true" standalone="true" />
|
||||
<action name="dispDeniedIPList" type="view" standalone="true" />
|
||||
<action name="dispDeniedWordList" type="view" standalone="true" />
|
||||
<action name="dispSpamfilterAdminConfig" type="view" admin_index="true" standalone="true" />
|
||||
<action name="dispSpamfilterAdminDeniedIPList" type="view" standalone="true" />
|
||||
<action name="dispSpamfilterAdminDeniedWordList" type="view" standalone="true" />
|
||||
|
||||
<action name="procInsertConfig" type="controller" standalone="true" />
|
||||
<action name="procInsertDeniedIP" type="controller" standalone="true" />
|
||||
<action name="procDeleteDeniedIP" type="controller" standalone="true" />
|
||||
<action name="procInsertDeniedWord" type="controller" standalone="true" />
|
||||
<action name="procDeleteDeniedWord" type="controller" standalone="true" />
|
||||
<action name="procSpamfilterAdminInsertConfig" type="controller" standalone="true" />
|
||||
<action name="procSpamfilterAdminInsertDeniedIP" type="controller" standalone="true" />
|
||||
<action name="procSpamfilterAdminDeleteDeniedIP" type="controller" standalone="true" />
|
||||
<action name="procSpamfilterAdminInsertDeniedWord" type="controller" standalone="true" />
|
||||
<action name="procSpamfilterAdminDeleteDeniedWord" type="controller" standalone="true" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<query id="deleteDeniedIP" action="delete">
|
||||
<tables>
|
||||
<table name="spamfilter_denied_ip" />
|
||||
</tables>
|
||||
<conditions>
|
||||
<condition operation="equal" column="ipaddress" var="ipaddress" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
<tables>
|
||||
<table name="spamfilter_denied_ip" />
|
||||
</tables>
|
||||
<conditions>
|
||||
<condition operation="equal" column="ipaddress" var="ipaddress" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<query id="deleteDeniedWord" action="delete">
|
||||
<tables>
|
||||
<table name="spamfilter_denied_word" />
|
||||
</tables>
|
||||
<conditions>
|
||||
<condition operation="equal" column="word" var="word" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
<tables>
|
||||
<table name="spamfilter_denied_word" />
|
||||
</tables>
|
||||
<conditions>
|
||||
<condition operation="equal" column="word" var="word" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<query id="getDeniedIPList" action="select">
|
||||
<tables>
|
||||
<table name="spamfilter_denied_ip" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<navigation>
|
||||
<index var="sort_index" order="desc" />
|
||||
</navigation>
|
||||
<tables>
|
||||
<table name="spamfilter_denied_ip" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<navigation>
|
||||
<index var="sort_index" order="desc" />
|
||||
</navigation>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<query id="getDeniedWordList" action="select">
|
||||
<tables>
|
||||
<table name="spamfilter_denied_word" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<navigation>
|
||||
<index var="sort_index" order="desc" />
|
||||
</navigation>
|
||||
<tables>
|
||||
<table name="spamfilter_denied_word" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<navigation>
|
||||
<index var="sort_index" order="desc" />
|
||||
</navigation>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<query id="getLogCount" action="select">
|
||||
<tables>
|
||||
<table name="spamfilter_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="ipaddress" var="ipaddress" filter="number" notnull="notnull" />
|
||||
<condition operation="more" column="regdate" var="regdate" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
<tables>
|
||||
<table name="spamfilter_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="ipaddress" var="ipaddress" filter="number" notnull="notnull" />
|
||||
<condition operation="more" column="regdate" var="regdate" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<query id="insertDeniedIP" action="insert">
|
||||
<tables>
|
||||
<table name="spamfilter_denied_ip" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="ipaddress" var="ipaddress" notnull="notnull" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
</columns>
|
||||
<tables>
|
||||
<table name="spamfilter_denied_ip" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="ipaddress" var="ipaddress" notnull="notnull" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
</columns>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<query id="insertDeniedIP" action="insert">
|
||||
<tables>
|
||||
<table name="spamfilter_denied_word" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="word" var="word" notnull="notnull" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
</columns>
|
||||
<tables>
|
||||
<table name="spamfilter_denied_word" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="word" var="word" notnull="notnull" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
</columns>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<query id="insertLog" action="insert">
|
||||
<tables>
|
||||
<table name="spamfilter_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="spamfilter_log_srl" default="sequence()" />
|
||||
<column name="ipaddress" default="ipaddress()" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
</columns>
|
||||
<tables>
|
||||
<table name="spamfilter_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="spamfilter_log_srl" default="sequence()"/>
|
||||
<column name="ipaddress" default="ipaddress()" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
</columns>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<query id="isDeniedIP" action="select">
|
||||
<tables>
|
||||
<table name="spamfilter_denied_ip" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="ipaddress" var="ipaddress" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
<tables>
|
||||
<table name="spamfilter_denied_ip" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="ipaddress" var="ipaddress" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<table name="spamfilter_denied_ip">
|
||||
<column name="ipaddress" type="varchar" size="250" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
<column name="ipaddress" type="varchar" size="250" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<table name="spamfilter_denied_word">
|
||||
<column name="word" type="varchar" size="250" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
<column name="word" type="varchar" size="250" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<table name="spamfilter_log">
|
||||
<column name="spamfilter_log_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="ipaddress" type="varchar" size="250" notnull="notnull" index="idx_ipaddress" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
<column name="spamfilter_log_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="ipaddress" type="varchar" size="250" notnull="notnull" index="idx_ipaddress" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -11,6 +11,17 @@
|
|||
* @brief 설치시 추가 작업이 필요할시 구현
|
||||
**/
|
||||
function moduleInstall() {
|
||||
// action forward에 등록 (관리자 모드에서 사용하기 위함)
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->insertActionFoward('spamfilter', 'view', 'dispSpamfilterAdminConfig');
|
||||
$oModuleController->insertActionFoward('spamfilter', 'view', 'dispSpamfilterAdminDeniedIPList');
|
||||
$oModuleController->insertActionFoward('spamfilter', 'view', 'dispSpamfilterAdminDeniedWordList');
|
||||
$oModuleController->insertActionFoward('spamfilter', 'controller', 'procSpamfilterAdminInsertConfig');
|
||||
$oModuleController->insertActionFoward('spamfilter', 'controller', 'procSpamfilterAdminInsertDeniedIP');
|
||||
$oModuleController->insertActionFoward('spamfilter', 'controller', 'procSpamfilterAdminDeleteDeniedIP');
|
||||
$oModuleController->insertActionFoward('spamfilter', 'controller', 'procSpamfilterAdminInsertDeniedWord');
|
||||
$oModuleController->insertActionFoward('spamfilter', 'controller', 'procSpamfilterAdminDeleteDeniedWord');
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* @brief 스팸필터 설정
|
||||
**/
|
||||
function procInsertConfig() {
|
||||
function procSpamfilterAdminInsertConfig() {
|
||||
// 기본 정보를 받음
|
||||
$args = Context::gets('interval','limit_count','check_trackback');
|
||||
if($args->check_trackback!='Y') $args->check_trackback = 'N';
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
/**
|
||||
* @brief 금지 IP등록
|
||||
**/
|
||||
function procInsertDeniedIP() {
|
||||
function procSpamfilterAdminInsertDeniedIP() {
|
||||
$ipaddress = Context::get('ipaddress');
|
||||
return $this->insertIP($ipaddress);
|
||||
}
|
||||
|
|
@ -39,14 +39,14 @@
|
|||
* @brief 금지 IP삭제
|
||||
**/
|
||||
function procDeleteDeniedIP() {
|
||||
$ipaddress = Context::get('ipaddress');
|
||||
$ipaddresSpamfilterAdmins = Context::get('ipaddress');
|
||||
return $this->deleteIP($ipaddress);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 금지 Word등록
|
||||
**/
|
||||
function procInsertDeniedWord() {
|
||||
function procSpamfilterAdminInsertDeniedWord() {
|
||||
$word = Context::get('word');
|
||||
return $this->insertWord($word);
|
||||
}
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
/**
|
||||
* @brief 금지 Word삭제
|
||||
**/
|
||||
function procDeleteDeniedWord() {
|
||||
function procSpamfilterAdminDeleteDeniedWord() {
|
||||
$word = Context::get('word');
|
||||
return $this->deleteWord($word);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
/**
|
||||
* @brief 스팸필터의 설정 화면
|
||||
**/
|
||||
function dispConfig() {
|
||||
function dispSpamfilterAdminConfig() {
|
||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('spamfilter');
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
/**
|
||||
* @brief 금지 목록 출력
|
||||
**/
|
||||
function dispDeniedIPList() {
|
||||
function dispSpamfilterAdminDeniedIPList() {
|
||||
// 등록된 금지 IP 목록을 가져옴
|
||||
$oSpamFilterModel = &getModel('spamfilter');
|
||||
$ip_list = $oSpamFilterModel->getDeniedIPList();
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
/**
|
||||
* @brief 금지 목록 출력
|
||||
**/
|
||||
function dispDeniedWordList() {
|
||||
function dispSpamfilterAdminDeniedWordList() {
|
||||
// 등록된 금지 Word 목록을 가져옴
|
||||
$oSpamFilterModel = &getModel('spamfilter');
|
||||
$word_list = $oSpamFilterModel->getDeniedWordList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue