mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@245 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0b00b8348b
commit
e383947125
9 changed files with 72 additions and 19 deletions
|
|
@ -12,7 +12,7 @@
|
|||
* <node target="name" required="true" minlength="1" maxlength="5" filter="email,userid,alpha,number" equalto="target" />\n
|
||||
* </form>\n
|
||||
* <parameter> <-- 폼 항목을 조합하여 key=val 의 js array로 return, act는 필수\n
|
||||
* <param param="key" value="target" concat="'@',target2..." />\n
|
||||
* <param name="key" target="target" />\n
|
||||
* </parameter>\n
|
||||
* <response callback_func="callback 받게 될 js function 이름 지정" > <-- 서버에 ajax로 전송하여 받을 결과값\n
|
||||
* <tag name="error" /> <-- error이름의 결과값을 받겠다는 것\n
|
||||
|
|
@ -31,9 +31,8 @@
|
|||
* equalto = target , 현재 폼과 지정 target의 값이 동일해야 함\n
|
||||
* \n
|
||||
* - parameter - param\n
|
||||
* param = key : key를 이름으로 가지고 value의 값을 가지는 array 값 생성\n
|
||||
* name = key : key를 이름으로 가지고 value의 값을 가지는 array 값 생성\n
|
||||
* target = target_name : target form element의 값을 가져옴\n
|
||||
* concat = str1,str2,target2... : 값들의 string 또는 form element value를 연결\n
|
||||
* \n
|
||||
* - response\n
|
||||
* tag = key : return받을 결과값의 변수명\n
|
||||
|
|
@ -83,8 +82,13 @@
|
|||
$extend_filter = $xml_obj->filter->attrs->extend_filter;
|
||||
|
||||
$field_node = $xml_obj->filter->form->node;
|
||||
if($field_node && !is_array($field_node)) $field_node = array($field_node);
|
||||
|
||||
$parameter_param = $xml_obj->filter->parameter->param;
|
||||
if($parameter_param && !is_array($parameter_param)) $parameter_param = array($parameter_param);
|
||||
|
||||
$response_tag = $xml_obj->filter->response->tag;
|
||||
if($response_tag && !is_array($response_tag)) $response_tag = array($response_tag);
|
||||
|
||||
// extend_filter가 있을 경우 해당 method를 호출하여 결과를 받음
|
||||
if($extend_filter) {
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@
|
|||
$lang->grant = "권한";
|
||||
$lang->target = "대상";
|
||||
$lang->total_count = "전체개수";
|
||||
$lang->ipaddress = "IP 주소";
|
||||
|
||||
$lang->document_url = '게시글 주소';
|
||||
$lang->trackback_url = '엮인글 주소';
|
||||
|
|
|
|||
|
|
@ -10,10 +10,14 @@
|
|||
$lang->cmd_denied_word = "금지단어 목록";
|
||||
|
||||
// 일반 단어
|
||||
$lang->denied_ip = "금지 IP";
|
||||
$lang->interval = "스팸 처리 간격";
|
||||
$lang->word = "단어";
|
||||
|
||||
// 설명문
|
||||
$lang->about_interval = "지정된 시간내에 다시 글이 등록이 되면 스팸으로 간주가 됩니다";
|
||||
$lang->about_denied_ip = "127.0.0.* 와 같이 * 로 정해진 패턴의 IP 대역을 모두 금지 시킬 수 있습니다";
|
||||
$lang->about_denied_word = "금지 단어로 등록되면 해당 단어가 있는 글은 등록을 금지 시킬 수 있습니다";
|
||||
|
||||
// 메세지 출력용
|
||||
$lang->msg_alert_registered_spamer = '스패머로 등록되셨습니다';
|
||||
|
|
|
|||
|
|
@ -62,9 +62,7 @@
|
|||
* @brief IP 등록
|
||||
* 등록된 IP는 스패머로 간주
|
||||
**/
|
||||
function insertIP($ipaddress = '') {
|
||||
if(!$ipaddress) $ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
function insertIP($ipaddress) {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->ipaddress = $ipaddress;
|
||||
return $oDB->executeQuery('spamfilter.insertDeniedIP', $args);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
<!--#include("header.html")-->
|
||||
<!--%import("filter/insert_denied_ip.xml")-->
|
||||
|
||||
<!-- 스패머 정보 -->
|
||||
<div>
|
||||
{$lang->total_count} : {number_format($total_count)}
|
||||
{$lang->total_count} : {count($ip_list)}
|
||||
</div>
|
||||
|
||||
|
||||
|
|
@ -15,9 +16,9 @@
|
|||
<th>{$lang->regdate}</th>
|
||||
<th>{$lang->cmd_delete}</th>
|
||||
</tr>
|
||||
<!--@foreach($spammer_list as $no => $val)-->
|
||||
<!--@foreach($ip_list as $no => $val)-->
|
||||
<tr>
|
||||
<td>{$no}</td>
|
||||
<td>{count($ip_list)-$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>
|
||||
|
|
@ -26,8 +27,17 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<!-- 버튼 -->
|
||||
<!-- 수동 추가 -->
|
||||
<div>
|
||||
[<a href="{getUrl('act','dispAdminInsertBoard','module_srl','')}">{$lang->cmd_insert}</a>]
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, insert_denied_ip)">
|
||||
<div>
|
||||
{$lang->denied_ip}
|
||||
<input type="text" name="ipaddress" value="" />
|
||||
<input type="submit" value="{$lang->cmd_insert}" />
|
||||
</div>
|
||||
<div>
|
||||
{$lang->about_denied_ip}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
<!--#include("header.html")-->
|
||||
<!--%import("filter/insert_denied_word.xml")-->
|
||||
|
||||
<!-- 스패머 정보 -->
|
||||
<div>
|
||||
{$lang->total_count} : {number_format($total_count)}
|
||||
{$lang->total_count} : {count($word_list)}
|
||||
</div>
|
||||
|
||||
|
||||
|
|
@ -11,23 +12,33 @@
|
|||
<table border="1">
|
||||
<tr>
|
||||
<th>{$lang->no}</th>
|
||||
<th>{$lang->ipaddress}</th>
|
||||
<th>{$lang->word}</th>
|
||||
<th>{$lang->regdate}</th>
|
||||
<th>{$lang->cmd_delete}</th>
|
||||
</tr>
|
||||
<!--@foreach($spammer_list as $no => $val)-->
|
||||
<!--@foreach($word_list as $no => $val)-->
|
||||
<tr>
|
||||
<td>{$no}</td>
|
||||
<td>{$val->ipaddress}</td>
|
||||
<td>{count($word_list)-$no}</td>
|
||||
<td>{$val->word}</td>
|
||||
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||
<td><a href="{getUrl('act','dispAdminDeleteBoard','ipaddress', $val->ipaddress)}">{$lang->cmd_delete}</a></td>
|
||||
<td><a href="{getUrl('act','dispAdminDeleteWord','word', $val->word)}">{$lang->cmd_delete}</a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- 버튼 -->
|
||||
<!-- 수동 추가 -->
|
||||
<div>
|
||||
[<a href="{getUrl('act','dispAdminInsertBoard','module_srl','')}">{$lang->cmd_insert}</a>]
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, insert_denied_word)">
|
||||
<div>
|
||||
{$lang->word}
|
||||
<input type="text" name="word" value="" />
|
||||
<input type="submit" value="{$lang->cmd_insert}" />
|
||||
</div>
|
||||
<div>
|
||||
{$lang->about_denied_word}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
|||
12
modules/spamfilter/tpl.admin/filter/insert_denied_ip.xml
Normal file
12
modules/spamfilter/tpl.admin/filter/insert_denied_ip.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<filter name="insert_denied_ip" module="spamfilter" act="procInsertDeniedIP" 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>
|
||||
12
modules/spamfilter/tpl.admin/filter/insert_denied_word.xml
Normal file
12
modules/spamfilter/tpl.admin/filter/insert_denied_word.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<filter name="insert_denied_word" module="spamfilter" act="procInsertDeniedWord" confirm_msg_code="confirm_submit">
|
||||
<form>
|
||||
<node target="word" required="true" minlength="4" maxlength="250" />
|
||||
</form>
|
||||
<parameter>
|
||||
<param param="word" target="word" />
|
||||
</parameter>
|
||||
<response>
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
<!--#include("header.html")-->
|
||||
<!--%import("filter/insert_config.xml")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
|
||||
<table border="1">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue