git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-12 03:59:52 +00:00
commit 8326004cb2
2773 changed files with 91485 additions and 0 deletions

View file

@ -0,0 +1,55 @@
<!--%import("filter/insert_denied_ip.xml")-->
<!--%import("filter/delete_denied_ip.xml")-->
<!--#include("header.html")-->
<!-- 스패머 정보 -->
<div class="tableSummaryType1">
Total <strong>{number_format($ip_list)}</strong>
</div>
<!-- xml js filter를 이용하기 위한 데이터 전달용 form -->
<form id="fo_denied_ip" action="./" method="get">
<input type="hidden" name="ipaddress" value="" />
</form>
<!-- 목록 -->
<table cellspacing="0" class="tableType1">
<thead>
<tr>
<th scope="col">{$lang->no}</th>
<th scope="col">{$lang->ipaddress}</th>
<th scope="col">{$lang->regdate}</th>
<th scope="col">{$lang->cmd_delete}</th>
</tr>
</thead>
<tbody>
<!--@foreach($ip_list as $no => $val)-->
<tr>
<td class="tahoma">{count($ip_list)-$no}</td>
<td class="tahoma">{$val->ipaddress}</td>
<td class="tahoma">{zdate($val->regdate,"Y-m-d")}</td>
<td class="red"><a href="#" onclick="doDeleteDeniedIP('{$val->ipaddress}');return false;">{$lang->cmd_delete}</a></td>
</tr>
<!--@end-->
</tbody>
</table>
<!-- 수동 추가 -->
<form action="./" method="get" onsubmit="return procFilter(this, insert_denied_ip)">
<table cellspacing="0" class="tableType3 gap1">
<col width="150" />
<col />
<tr>
<th scope="row">{$lang->denied_ip}</th>
<td class="left">
<input type="text" name="ipaddress" value="" class="inputTypeText" />
<p>{$lang->about_denied_ip}</p>
</td>
</tr>
</table>
<div class="tRight gap1">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
</div>
</form>

View file

@ -0,0 +1,55 @@
<!--#include("header.html")-->
<!--%import("filter/insert_denied_word.xml")-->
<!--%import("filter/delete_denied_word.xml")-->
<!-- 스패머 정보 -->
<div class="tableSummaryType1">
Total <strong>{number_format($word_list)}</strong>
</div>
<!-- xml js filter를 이용하기 위한 데이터 전달용 form -->
<form id="fo_denied_word" action="./" method="get">
<input type="hidden" name="word" value="" />
</form>
<!-- 목록 -->
<table cellspacing="0" class="tableType1">
<thead>
<tr>
<th scope="col">{$lang->no}</th>
<th scope="col">{$lang->word}</th>
<th scope="col">{$lang->regdate}</th>
<th scope="col">{$lang->cmd_delete}</th>
</tr>
</thead>
<tbody>
<!--@foreach($word_list as $no => $val)-->
<tr>
<td class="tahoma">{count($word_list)-$no}</td>
<td>{$val->word}</td>
<td class="tahoma">{zdate($val->regdate,"Y-m-d")}</td>
<td class="red"><a href="#" onclick="doDeleteDeniedWord('{$val->word}');return false;">{$lang->cmd_delete}</a></td>
</tr>
<!--@end-->
</tbody>
</table>
<!-- 수동 추가 -->
<form action="./" method="get" onsubmit="return procFilter(this, insert_denied_word)">
<table cellspacing="0" class="tableType3 gap1">
<col width="150" />
<col />
<tr>
<th scope="row">{$lang->word}</th>
<td class="left">
<input type="text" name="word" value="" class="inputTypeText" />
<p>{$lang->about_denied_word}</p>
</td>
</tr>
</table>
<div class="tRight gap1">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
</div>
</form>

View file

@ -0,0 +1,7 @@
<filter name="delete_denied_ip" module="spamfilter" act="procSpamfilterAdminDeleteDeniedIP" confirm_msg_code="confirm_delete">
<form />
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -0,0 +1,7 @@
<filter name="delete_denied_word" module="spamfilter" act="procSpamfilterAdminDeleteDeniedWord" confirm_msg_code="confirm_delete">
<form />
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -0,0 +1,7 @@
<filter name="insert_config" module="spamfilter" act="procSpamfilterAdminInsertConfig" confirm_msg_code="confirm_submit">
<form />
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -0,0 +1,12 @@
<filter name="insert_denied_ip" module="spamfilter" act="procSpamfilterAdminInsertDeniedIP" confirm_msg_code="confirm_submit">
<form>
<node target="ipaddress" required="true" minlength="4" maxlength="250" />
</form>
<parameter>
<param param="ipaddress" target="ipaddress" />
</parameter>
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -0,0 +1,12 @@
<filter name="insert_denied_word" module="spamfilter" act="procSpamfilterAdminInsertDeniedWord" confirm_msg_code="confirm_submit">
<form>
<node target="word" required="true" minlength="1" maxlength="250" />
</form>
<parameter>
<param param="word" target="word" />
</parameter>
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -0,0 +1,11 @@
<!--%import("js/spamfilter_admin.js")-->
<h3>{$lang->spamfilter} <span class="gray">{$lang->cmd_management}</span></h3>
<div class="header4">
<ul class="localNavigation">
<li <!--@if($act=='dispSpamfilterAdminConfig')-->class="on"<!--@end-->><a href="{getUrl('act','dispSpamfilterAdminConfig','module_srl','')}">{$lang->cmd_module_config}</a></li>
<li <!--@if($act=='dispSpamfilterAdminDeniedIPList')-->class="on"<!--@end-->><a href="{getUrl('act','dispSpamfilterAdminDeniedIPList')}">{$lang->cmd_denied_ip}</a></li>
<li <!--@if($act=='dispSpamfilterAdminDeniedWordList')-->class="on"<!--@end-->><a href="{getUrl('act','dispSpamfilterAdminDeniedWordList')}">{$lang->cmd_denied_word}</a></li>
</ul>
</div>

View file

@ -0,0 +1,36 @@
<!--%import("filter/insert_config.xml")-->
<!--#include("header.html")-->
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table cellspacing="0" class="tableType3 gap1">
<tr>
<th scope="col">{$lang->interval}</th>
<td class="left">
<input type="text" name="interval" value="{$config->interval?$config->interval:60}" class="inputTypeText" /> {$lang->unit_sec}
<p>{$lang->about_interval}</p>
</td>
</tr>
<tr>
<th scope="col">{$lang->limit_count}</th>
<td class="left">
<input type="text" name="limit_count" value="{$config->limit_count?$config->limit_count:5}" class="inputTypeText" />
<p>{$lang->about_limit_count}</p>
</td>
</tr>
<tr>
<th scope="col">{$lang->check_trackback}</th>
<td class="left">
<input type="checkbox" name="check_trackback" value="Y" <!--@if($config->check_trackback=='Y')-->checked="checked"<!--@end--> />
{$lang->about_check_trackback}
</td>
</tr>
</table>
<!-- 버튼 -->
<div class="tRight gap1">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
</div>
</form>

View file

@ -0,0 +1,17 @@
/**
* @brief 금지 IP 삭제
**/
function doDeleteDeniedIP(ipaddress) {
var fo_obj = xGetElementById('fo_denied_ip');
fo_obj.ipaddress.value = ipaddress;
procFilter(fo_obj, delete_denied_ip);
}
/**
* @brief 금지 단어 삭제
**/
function doDeleteDeniedWord(word) {
var fo_obj = xGetElementById('fo_denied_word');
fo_obj.word.value = word;
procFilter(fo_obj, delete_denied_word);
}