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@244 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bd1aa25eb6
commit
0b00b8348b
9 changed files with 120 additions and 26 deletions
|
|
@ -96,6 +96,14 @@
|
||||||
$lang->use = "사용";
|
$lang->use = "사용";
|
||||||
$lang->notuse = "미사용";
|
$lang->notuse = "미사용";
|
||||||
|
|
||||||
|
$lang->unit_sec = "초";
|
||||||
|
$lang->unit_min = "분";
|
||||||
|
$lang->unit_hour = "시";
|
||||||
|
$lang->unit_day = "일";
|
||||||
|
$lang->unit_week = "주";
|
||||||
|
$lang->unit_month = "월";
|
||||||
|
$lang->unit_year = "년";
|
||||||
|
|
||||||
// xml filter에서 사용되는 javascript용 alert msg
|
// xml filter에서 사용되는 javascript용 alert msg
|
||||||
$lang->filter->isnull = '%s의 값을 입력해주세요';
|
$lang->filter->isnull = '%s의 값을 입력해주세요';
|
||||||
$lang->filter->outofrange = '%s의 글자 길이를 맞추어 주세요.';
|
$lang->filter->outofrange = '%s의 글자 길이를 맞추어 주세요.';
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
<action name="dispDeniedIPList" type="view" standalone="true" />
|
<action name="dispDeniedIPList" type="view" standalone="true" />
|
||||||
<action name="dispDeniedWordList" type="view" standalone="true" />
|
<action name="dispDeniedWordList" type="view" standalone="true" />
|
||||||
|
|
||||||
|
<action name="procInsertConfig" type="controller" standalone="true" />
|
||||||
<action name="procInsertDeniedIP" type="controller" standalone="true" />
|
<action name="procInsertDeniedIP" type="controller" standalone="true" />
|
||||||
<action name="procDeleteDeniedIP" type="controller" standalone="true" />
|
<action name="procDeleteDeniedIP" type="controller" standalone="true" />
|
||||||
<action name="procInsertDeniedWord" type="controller" standalone="true" />
|
<action name="procInsertDeniedWord" type="controller" standalone="true" />
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,16 @@
|
||||||
* @desc : 한국어 언어팩 (기본적인 내용만 수록)
|
* @desc : 한국어 언어팩 (기본적인 내용만 수록)
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
// action 관련
|
||||||
$lang->cmd_denied_ip = "금지IP 목록";
|
$lang->cmd_denied_ip = "금지IP 목록";
|
||||||
$lang->cmd_denied_word = "금지단어 목록";
|
$lang->cmd_denied_word = "금지단어 목록";
|
||||||
|
|
||||||
|
// 일반 단어
|
||||||
|
$lang->interval = "스팸 처리 간격";
|
||||||
|
|
||||||
|
// 설명문
|
||||||
|
$lang->about_interval = "지정된 시간내에 다시 글이 등록이 되면 스팸으로 간주가 됩니다";
|
||||||
|
|
||||||
|
// 메세지 출력용
|
||||||
$lang->msg_alert_registered_spamer = '스패머로 등록되셨습니다';
|
$lang->msg_alert_registered_spamer = '스패머로 등록되셨습니다';
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,19 @@
|
||||||
**/
|
**/
|
||||||
function init() {
|
function init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 스팸필터 설정
|
||||||
|
**/
|
||||||
|
function procInsertConfig() {
|
||||||
|
// 기본 정보를 받음
|
||||||
|
$args = Context::gets('interval');
|
||||||
|
|
||||||
|
// module Controller 객체 생성하여 입력
|
||||||
|
$oModuleController = &getController('module');
|
||||||
|
$output = $oModuleController->insertModuleConfig('spamfilter',$args);
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 금지 IP등록
|
* @brief 금지 IP등록
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,11 @@
|
||||||
* @brief 스팸필터의 설정 화면
|
* @brief 스팸필터의 설정 화면
|
||||||
**/
|
**/
|
||||||
function dispConfig() {
|
function dispConfig() {
|
||||||
|
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||||
|
$oModuleModel = &getModel('module');
|
||||||
|
$config = $oModuleModel->getModuleConfig('spamfilter');
|
||||||
|
Context::set('config',$config);
|
||||||
|
|
||||||
// 템플릿 파일 지정
|
// 템플릿 파일 지정
|
||||||
$this->setTemplateFile('index');
|
$this->setTemplateFile('index');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
33
modules/spamfilter/tpl.admin/denied_ip_list.html
Normal file
33
modules/spamfilter/tpl.admin/denied_ip_list.html
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
<!--#include("header.html")-->
|
||||||
|
|
||||||
|
<!-- 스패머 정보 -->
|
||||||
|
<div>
|
||||||
|
{$lang->total_count} : {number_format($total_count)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 목록 -->
|
||||||
|
<div>
|
||||||
|
<table border="1">
|
||||||
|
<tr>
|
||||||
|
<th>{$lang->no}</th>
|
||||||
|
<th>{$lang->ipaddress}</th>
|
||||||
|
<th>{$lang->regdate}</th>
|
||||||
|
<th>{$lang->cmd_delete}</th>
|
||||||
|
</tr>
|
||||||
|
<!--@foreach($spammer_list as $no => $val)-->
|
||||||
|
<tr>
|
||||||
|
<td>{$no}</td>
|
||||||
|
<td>{$val->ipaddress}</td>
|
||||||
|
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||||
|
<td><a href="{getUrl('act','dispAdminDeleteBoard','ipaddress', $val->ipaddress)}">{$lang->cmd_delete}</a></td>
|
||||||
|
</tr>
|
||||||
|
<!--@end-->
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 버튼 -->
|
||||||
|
<div>
|
||||||
|
[<a href="{getUrl('act','dispAdminInsertBoard','module_srl','')}">{$lang->cmd_insert}</a>]
|
||||||
|
</div>
|
||||||
|
|
||||||
33
modules/spamfilter/tpl.admin/denied_word_list.html
Normal file
33
modules/spamfilter/tpl.admin/denied_word_list.html
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
<!--#include("header.html")-->
|
||||||
|
|
||||||
|
<!-- 스패머 정보 -->
|
||||||
|
<div>
|
||||||
|
{$lang->total_count} : {number_format($total_count)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 목록 -->
|
||||||
|
<div>
|
||||||
|
<table border="1">
|
||||||
|
<tr>
|
||||||
|
<th>{$lang->no}</th>
|
||||||
|
<th>{$lang->ipaddress}</th>
|
||||||
|
<th>{$lang->regdate}</th>
|
||||||
|
<th>{$lang->cmd_delete}</th>
|
||||||
|
</tr>
|
||||||
|
<!--@foreach($spammer_list as $no => $val)-->
|
||||||
|
<tr>
|
||||||
|
<td>{$no}</td>
|
||||||
|
<td>{$val->ipaddress}</td>
|
||||||
|
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||||
|
<td><a href="{getUrl('act','dispAdminDeleteBoard','ipaddress', $val->ipaddress)}">{$lang->cmd_delete}</a></td>
|
||||||
|
</tr>
|
||||||
|
<!--@end-->
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 버튼 -->
|
||||||
|
<div>
|
||||||
|
[<a href="{getUrl('act','dispAdminInsertBoard','module_srl','')}">{$lang->cmd_insert}</a>]
|
||||||
|
</div>
|
||||||
|
|
||||||
7
modules/spamfilter/tpl.admin/filter/insert_config.xml
Normal file
7
modules/spamfilter/tpl.admin/filter/insert_config.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<filter name="insert_config" module="spamfilter" act="procInsertConfig" confirm_msg_code="confirm_submit">
|
||||||
|
<form />
|
||||||
|
<response>
|
||||||
|
<tag name="error" />
|
||||||
|
<tag name="message" />
|
||||||
|
</response>
|
||||||
|
</filter>
|
||||||
|
|
@ -1,33 +1,19 @@
|
||||||
<!--#include("header.html")-->
|
<!--#include("header.html")-->
|
||||||
|
|
||||||
<!-- 스패머 정보 -->
|
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
|
||||||
<div>
|
|
||||||
{$lang->total_count} : {number_format($total_count)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 목록 -->
|
|
||||||
<div>
|
|
||||||
<table border="1">
|
<table border="1">
|
||||||
<tr>
|
<tr>
|
||||||
<th>{$lang->no}</th>
|
<th rowspan="2">{$lang->interval}</th>
|
||||||
<th>{$lang->ipaddress}</th>
|
<td><input type="text" name="interval" value="{$config->interval?$config->interval:60}" /> {$lang->unit_sec}</td>
|
||||||
<th>{$lang->regdate}</th>
|
|
||||||
<th>{$lang->cmd_delete}</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
<!--@foreach($spammer_list as $no => $val)-->
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$no}</td>
|
<td>{$lang->about_interval}</td>
|
||||||
<td>{$val->ipaddress}</td>
|
|
||||||
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
|
||||||
<td><a href="{getUrl('act','dispAdminDeleteBoard','ipaddress', $val->ipaddress)}">{$lang->cmd_delete}</a></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<!--@end-->
|
<tr>
|
||||||
</table>
|
<td colspan="2">
|
||||||
</div>
|
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{@getUrl('act','')}'" />
|
||||||
|
<input type="submit" value="{$lang->cmd_registration}" accesskey="s" />
|
||||||
<!-- 버튼 -->
|
</td>
|
||||||
<div>
|
</tr>
|
||||||
[<a href="{getUrl('act','dispAdminInsertBoard','module_srl','')}">{$lang->cmd_insert}</a>]
|
</table>
|
||||||
</div>
|
</form>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue