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

This commit is contained in:
zero 2007-03-05 07:34:11 +00:00
parent bd1aa25eb6
commit 0b00b8348b
9 changed files with 120 additions and 26 deletions

View file

@ -6,6 +6,7 @@
<action name="dispDeniedIPList" 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="procDeleteDeniedIP" type="controller" standalone="true" />
<action name="procInsertDeniedWord" type="controller" standalone="true" />

View file

@ -5,8 +5,16 @@
* @desc : 한국어 언어팩 (기본적인 내용만 수록)
**/
// action 관련
$lang->cmd_denied_ip = "금지IP 목록";
$lang->cmd_denied_word = "금지단어 목록";
// 일반 단어
$lang->interval = "스팸 처리 간격";
// 설명문
$lang->about_interval = "지정된 시간내에 다시 글이 등록이 되면 스팸으로 간주가 됩니다";
// 메세지 출력용
$lang->msg_alert_registered_spamer = '스패머로 등록되셨습니다';
?>

View file

@ -12,6 +12,19 @@
**/
function init() {
}
/**
* @brief 스팸필터 설정
**/
function procInsertConfig() {
// 기본 정보를 받음
$args = Context::gets('interval');
// module Controller 객체 생성하여 입력
$oModuleController = &getController('module');
$output = $oModuleController->insertModuleConfig('spamfilter',$args);
return $output;
}
/**
* @brief 금지 IP등록

View file

@ -19,6 +19,11 @@
* @brief 스팸필터의 설정 화면
**/
function dispConfig() {
// 설정 정보를 받아옴 (module model 객체를 이용)
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('spamfilter');
Context::set('config',$config);
// 템플릿 파일 지정
$this->setTemplateFile('index');
}

View 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>

View 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>

View 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>

View file

@ -1,33 +1,19 @@
<!--#include("header.html")-->
<!-- 스패머 정보 -->
<div>
{$lang->total_count} : {number_format($total_count)}
</div>
<!-- 목록 -->
<div>
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table border="1">
<tr>
<th>{$lang->no}</th>
<th>{$lang->ipaddress}</th>
<th>{$lang->regdate}</th>
<th>{$lang->cmd_delete}</th>
<th rowspan="2">{$lang->interval}</th>
<td><input type="text" name="interval" value="{$config->interval?$config->interval:60}" /> {$lang->unit_sec}</td>
</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>
<td>{$lang->about_interval}</td>
</tr>
<!--@end-->
</table>
</div>
<!-- 버튼 -->
<div>
[<a href="{getUrl('act','dispAdminInsertBoard','module_srl','')}">{$lang->cmd_insert}</a>]
</div>
<tr>
<td colspan="2">
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{@getUrl('act','')}'" />
<input type="submit" value="{$lang->cmd_registration}" accesskey="s" />
</td>
</tr>
</table>
</form>