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

This commit is contained in:
zero 2007-03-30 07:21:33 +00:00
parent 712cb9906c
commit cf01a082c7
30 changed files with 266 additions and 275 deletions

View file

@ -5,7 +5,7 @@
<!-- 스패머 정보 -->
<div>
{$lang->total_count} : {count($ip_list)}
{$lang->total_count} : {count($ip_list)}
</div>
<!-- xml js filter를 이용하기 위한 데이터 전달용 form -->
@ -15,35 +15,35 @@
<!-- 목록 -->
<div>
<table border="1">
<tr>
<th>{$lang->no}</th>
<th>{$lang->ipaddress}</th>
<th>{$lang->regdate}</th>
<th>{$lang->cmd_delete}</th>
</tr>
<!--@foreach($ip_list as $no => $val)-->
<tr>
<td>{count($ip_list)-$no}</td>
<td>{$val->ipaddress}</td>
<td>{zdate($val->regdate,"Y-m-d")}</td>
<td><a href="#" onclick="doDeleteDeniedIP('{$val->ipaddress}');return false;">{$lang->cmd_delete}</a></td>
</tr>
<!--@end-->
</table>
<table border="1">
<tr>
<th>{$lang->no}</th>
<th>{$lang->ipaddress}</th>
<th>{$lang->regdate}</th>
<th>{$lang->cmd_delete}</th>
</tr>
<!--@foreach($ip_list as $no => $val)-->
<tr>
<td>{count($ip_list)-$no}</td>
<td>{$val->ipaddress}</td>
<td>{zdate($val->regdate,"Y-m-d")}</td>
<td><a href="#" onclick="doDeleteDeniedIP('{$val->ipaddress}');return false;">{$lang->cmd_delete}</a></td>
</tr>
<!--@end-->
</table>
</div>
<!-- 수동 추가 -->
<div>
<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>
<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>

View file

@ -5,7 +5,7 @@
<!-- 스패머 정보 -->
<div>
{$lang->total_count} : {count($word_list)}
{$lang->total_count} : {count($word_list)}
</div>
<!-- xml js filter를 이용하기 위한 데이터 전달용 form -->
@ -15,36 +15,36 @@
<!-- 목록 -->
<div>
<table border="1">
<tr>
<th>{$lang->no}</th>
<th>{$lang->word}</th>
<th>{$lang->regdate}</th>
<th>{$lang->cmd_delete}</th>
</tr>
<!--@foreach($word_list as $no => $val)-->
<tr>
<td>{count($word_list)-$no}</td>
<td>{$val->word}</td>
<td>{zdate($val->regdate,"Y-m-d")}</td>
<td><a href="#" onclick="doDeleteDeniedWord('{$val->word}');return false;">{$lang->cmd_delete}</a></td>
</tr>
<!--@end-->
</table>
<table border="1">
<tr>
<th>{$lang->no}</th>
<th>{$lang->word}</th>
<th>{$lang->regdate}</th>
<th>{$lang->cmd_delete}</th>
</tr>
<!--@foreach($word_list as $no => $val)-->
<tr>
<td>{count($word_list)-$no}</td>
<td>{$val->word}</td>
<td>{zdate($val->regdate,"Y-m-d")}</td>
<td><a href="#" onclick="doDeleteDeniedWord('{$val->word}');return false;">{$lang->cmd_delete}</a></td>
</tr>
<!--@end-->
</table>
</div>
<!-- 수동 추가 -->
<div>
<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>
<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>

View file

@ -1,7 +1,7 @@
<filter name="delete_denied_ip" module="spamfilter" act="procDeleteDeniedIP" confirm_msg_code="confirm_delete">
<form />
<response>
<tag name="error" />
<tag name="message" />
</response>
<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

@ -1,7 +1,7 @@
<filter name="delete_denied_word" module="spamfilter" act="procDeleteDeniedWord" confirm_msg_code="confirm_delete">
<form />
<response>
<tag name="error" />
<tag name="message" />
</response>
<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

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

View file

@ -1,12 +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 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

@ -1,5 +1,5 @@
<div style="margin-bottom:20px;">
<span <!--@if($act=='dispConfig')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispConfig','module_srl','')}">{$lang->cmd_module_config}</a>]</span>
<span <!--@if($act=='dispDeniedIPList')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispDeniedIPList')}">{$lang->cmd_denied_ip}</a>]</span>
<span <!--@if($act=='dispDeniedWordList')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispDeniedWordList')}">{$lang->cmd_denied_word}</a>]</span>
<span <!--@if($act=='dispSpamfilterAdminConfig')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispSpamfilterAdminConfig','module_srl','')}">{$lang->cmd_module_config}</a>]</span>
<span <!--@if($act=='dispSpamfilterAdminDeniedIPList')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispSpamfilterAdminDeniedIPList')}">{$lang->cmd_denied_ip}</a>]</span>
<span <!--@if($act=='dispSpamfilterAdminDeniedWordList')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispSpamfilterAdminDeniedWordList')}">{$lang->cmd_denied_word}</a>]</span>
</div>

View file

@ -2,33 +2,33 @@
<!--%import("filter/insert_config.xml")-->
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table border="1">
<tr>
<th rowspan="2">{$lang->interval}</th>
<td><input type="text" name="interval" value="{$config->interval?$config->interval:60}" /> {$lang->unit_sec}</td>
</tr>
<tr>
<td>{$lang->about_interval}</td>
</tr>
<tr>
<th rowspan="2">{$lang->limit_count}</th>
<td><input type="text" name="limit_count" value="{$config->limit_count?$config->limit_count:5}" /></td>
</tr>
<tr>
<td>{$lang->about_limit_count}</td>
</tr>
<tr>
<th rowspan="2">{$lang->check_trackback}</th>
<td><input type="checkbox" name="check_trackback" value="Y" <!--@if($config->check_trackback=='Y')-->checked="true"<!--@end--> /></td>
</tr>
<tr>
<td>{$lang->about_check_trackback}</td>
</tr>
<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>
<table border="1">
<tr>
<th rowspan="2">{$lang->interval}</th>
<td><input type="text" name="interval" value="{$config->interval?$config->interval:60}" /> {$lang->unit_sec}</td>
</tr>
<tr>
<td>{$lang->about_interval}</td>
</tr>
<tr>
<th rowspan="2">{$lang->limit_count}</th>
<td><input type="text" name="limit_count" value="{$config->limit_count?$config->limit_count:5}" /></td>
</tr>
<tr>
<td>{$lang->about_limit_count}</td>
</tr>
<tr>
<th rowspan="2">{$lang->check_trackback}</th>
<td><input type="checkbox" name="check_trackback" value="Y" <!--@if($config->check_trackback=='Y')-->checked="true"<!--@end--> /></td>
</tr>
<tr>
<td>{$lang->about_check_trackback}</td>
</tr>
<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>

View file

@ -2,16 +2,16 @@
* @brief 금지 IP 삭제
**/
function doDeleteDeniedIP(ipaddress) {
var fo_obj = xGetElementById('fo_denied_ip');
fo_obj.ipaddress.value = ipaddress;
procFilter(fo_obj, delete_denied_ip);
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);
var fo_obj = xGetElementById('fo_denied_word');
fo_obj.word.value = word;
procFilter(fo_obj, delete_denied_word);
}

View file

@ -1,11 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<module version="0.1">
<title xml:lang="ko">꼬리표</title>
<title xml:lang="en">tag</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">tag</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">꼬리표 관리 모듈</description>
</author>
</module>

View file

@ -1,8 +1,8 @@
<query id="deleteModuleTags" action="delete">
<tables>
<table name="tags" />
</tables>
<conditions>
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
</conditions>
<tables>
<table name="tags" />
</tables>
<conditions>
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -1,8 +1,8 @@
<query id="deleteTag" action="delete">
<tables>
<table name="tags" />
</tables>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
</conditions>
<tables>
<table name="tags" />
</tables>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -1,12 +1,12 @@
<query id="insertTag" action="insert">
<tables>
<table name="tags" />
</tables>
<columns>
<column name="tag_srl" var="tag_srl" notnull="notnull" default="sequence()" />
<column name="module_srl" var="module_srl" filter="number" notnull="notnull" />
<column name="document_srl" var="document_srl" filter="number" notnull="notnull" />
<column name="tag" var="tag" notnull="notnull" minlength="1" maxlength="240" />
<column name="regdate" var="regdate" default="curdate()" />
</columns>
<tables>
<table name="tags" />
</tables>
<columns>
<column name="tag_srl" var="tag_srl" notnull="notnull" default="sequence()" />
<column name="module_srl" var="module_srl" filter="number" notnull="notnull" />
<column name="document_srl" var="document_srl" filter="number" notnull="notnull" />
<column name="tag" var="tag" notnull="notnull" minlength="1" maxlength="240" />
<column name="regdate" var="regdate" default="curdate()" />
</columns>
</query>

View file

@ -1,7 +1,7 @@
<table name="tags">
<column name="tag_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
<column name="module_srl" type="number" size="11" default="0" notnull="notnull" index="idx_module_srl" />
<column name="document_srl" type="number" size="11" default="0" notnull="notnull" index="idx_document_srl" />
<column name="tag" type="varchar" size="240" notnull="notnull" />
<column name="regdate" type="date" index="idx_regdate" />
<column name="tag_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
<column name="module_srl" type="number" size="11" default="0" notnull="notnull" index="idx_module_srl" />
<column name="document_srl" type="number" size="11" default="0" notnull="notnull" index="idx_document_srl" />
<column name="tag" type="varchar" size="240" notnull="notnull" />
<column name="regdate" type="date" index="idx_regdate" />
</table>

View file

@ -1,19 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<module version="0.1">
<title xml:lang="ko">엮인글</title>
<title xml:lang="en">Trackback</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">module of trackback management</description>
</author>
<history>
<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>
<name xml:lang="en">zero</name>
<description xml:lang="ko">엮인글 관리 모듈</description>
<description xml:lang="en">module of trackback management</description>
<name xml:lang="ko">제로</name>
<description xml:lang="ko">엮인글 관리 모듈</description>
</author>
</history>
</module>

View file

@ -2,7 +2,7 @@
<module>
<grants />
<actions>
<action name="dispList" type="view" admin_index="true" standalone="true" />
<action name="procDeleteChecked" type="controller" standalone="true" />
<action name="dispTrackbackAdminList" type="view" admin_index="true" standalone="true" />
<action name="procTrackbackAdminDeleteChecked" type="controller" standalone="true" />
</actions>
</module>

View file

@ -1,8 +1,8 @@
<query id="deleteTrackbacks" action="delete">
<tables>
<table name="trackbacks" />
</tables>
<conditions>
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
</conditions>
<tables>
<table name="trackbacks" />
</tables>
<conditions>
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -1,8 +1,8 @@
<query id="deleteTrackback" action="delete">
<tables>
<table name="trackbacks" />
</tables>
<conditions>
<condition operation="equal" column="trackback_srl" var="trackback_srl" filter="number" notnull="notnull" />
</conditions>
<tables>
<table name="trackbacks" />
</tables>
<conditions>
<condition operation="equal" column="trackback_srl" var="trackback_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -1,8 +1,8 @@
<query id="deleteTrackbacks" action="delete">
<tables>
<table name="trackbacks" />
</tables>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
</conditions>
<tables>
<table name="trackbacks" />
</tables>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -1,8 +1,8 @@
<query id="getTrackback" action="select">
<tables>
<table name="trackbacks" />
</tables>
<conditions>
<condition operation="equal" column="trackback_srl" var="trackback_srl" filter="number" notnull="notnull" />
</conditions>
<tables>
<table name="trackbacks" />
</tables>
<conditions>
<condition operation="equal" column="trackback_srl" var="trackback_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -1,11 +1,11 @@
<query id="getTrackbackCount" action="select">
<tables>
<table name="trackbacks" />
</tables>
<columns>
<column name="count(*)" alias="count" />
</columns>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
</conditions>
<tables>
<table name="trackbacks" />
</tables>
<columns>
<column name="count(*)" alias="count" />
</columns>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -1,12 +1,12 @@
<query id="getTrackbackCountByIPAddress" action="select">
<tables>
<table name="trackbacks" />
</tables>
<columns>
<column name="count(*)" alias="count" />
</columns>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="ipaddress" var="ipaddress" notnull="notnull" />
</conditions>
<tables>
<table name="trackbacks" />
</tables>
<columns>
<column name="count(*)" alias="count" />
</columns>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="ipaddress" var="ipaddress" notnull="notnull" />
</conditions>
</query>

View file

@ -1,14 +1,14 @@
<query id="getTrackbackList" action="select">
<tables>
<table name="trackbacks" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
</conditions>
<navigation>
<index var="list_order" order="asc" />
</navigation>
<tables>
<table name="trackbacks" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
</conditions>
<navigation>
<index var="list_order" order="asc" />
</navigation>
</query>

View file

@ -1,17 +1,17 @@
<query id="insertTrackback" action="insert">
<tables>
<table name="trackbacks" />
</tables>
<columns>
<column name="trackback_srl" var="trackback_srl" notnull="notnull" />
<column name="module_srl" var="module_srl" filter="number" notnull="notnull" />
<column name="document_srl" var="document_srl" filter="number" notnull="notnull" />
<column name="url" var="url" notnull="notnull" minlength="2" maxlength="250" />
<column name="title" var="title" notnull="notnull" minlength="2" maxlength="250" />
<column name="blog_name" var="blog_name" notnull="notnull" minlength="2" maxlength="250" />
<column name="excerpt" var="excerpt" notnull="notnull" />
<column name="regdate" var="regdate" default="curdate()" />
<column name="ipaddress" var="ipaddress" default="ipaddress()" />
<column name="list_order" var="list_order" default="0" />
</columns>
<tables>
<table name="trackbacks" />
</tables>
<columns>
<column name="trackback_srl" var="trackback_srl" notnull="notnull" />
<column name="module_srl" var="module_srl" filter="number" notnull="notnull" />
<column name="document_srl" var="document_srl" filter="number" notnull="notnull" />
<column name="url" var="url" notnull="notnull" minlength="2" maxlength="250" />
<column name="title" var="title" notnull="notnull" minlength="2" maxlength="250" />
<column name="blog_name" var="blog_name" notnull="notnull" minlength="2" maxlength="250" />
<column name="excerpt" var="excerpt" notnull="notnull" />
<column name="regdate" var="regdate" default="curdate()" />
<column name="ipaddress" var="ipaddress" default="ipaddress()" />
<column name="list_order" var="list_order" default="0" />
</columns>
</query>

View file

@ -1,12 +1,12 @@
<table name="trackbacks">
<column name="trackback_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
<column name="module_srl" type="number" size="11" default="0" notnull="notnull" index="idx_module_srl" />
<column name="document_srl" type="number" size="11" default="0" notnull="notnull" index="idx_document_srl" />
<column name="url" type="varchar" size="250" notnull="notnull" />
<column name="title" type="varchar" size="250" notnull="notnull" />
<column name="blog_name" type="varchar" size="250" notnull="notnull" />
<column name="excerpt" type="text" notnull="notnull" />
<column name="regdate" type="date" index="idx_regdate" />
<column name="ipaddress" type="varchar" size="128" notnull="notnull" index="idx_ipaddress" />
<column name="list_order" type="number" size="11" notnull="notnull" index="idx_list_order" />
<column name="trackback_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
<column name="module_srl" type="number" size="11" default="0" notnull="notnull" index="idx_module_srl" />
<column name="document_srl" type="number" size="11" default="0" notnull="notnull" index="idx_document_srl" />
<column name="url" type="varchar" size="250" notnull="notnull" />
<column name="title" type="varchar" size="250" notnull="notnull" />
<column name="blog_name" type="varchar" size="250" notnull="notnull" />
<column name="excerpt" type="text" notnull="notnull" />
<column name="regdate" type="date" index="idx_regdate" />
<column name="ipaddress" type="varchar" size="128" notnull="notnull" index="idx_ipaddress" />
<column name="list_order" type="number" size="11" notnull="notnull" index="idx_list_order" />
</table>

View file

@ -11,6 +11,11 @@
* @brief 설치시 추가 작업이 필요할시 구현
**/
function moduleInstall() {
// action forward에 등록 (관리자 모드에서 사용하기 위함)
$oModuleController = &getController('module');
$oModuleController->insertActionFoward('trackback', 'view', 'dispTrackbackAdminList');
$oModuleController->insertActionFoward('trackback', 'controller', 'procTrackbackAdminDeleteChecked');
return new Object();
}

View file

@ -13,6 +13,28 @@
function init() {
}
/**
* @brief 관리자 페이지에서 선택된 엮인글들을 삭제
**/
function procTrackbackAdminDeleteChecked() {
// 선택된 글이 없으면 오류 표시
$cart = Context::get('cart');
if(!$cart) return $this->stop('msg_cart_is_null');
$trackback_srl_list= explode('|@|', $cart);
$trackback_count = count($trackback_srl_list);
if(!$trackback_count) return $this->stop('msg_cart_is_null');
// 글삭제
for($i=0;$i<$trackback_count;$i++) {
$trackback_srl = trim($trackback_srl_list[$i]);
if(!$trackback_srl) continue;
$this->deleteTrackback($trackback_srl, true);
}
$this->setMessage( sprintf(Context::getLang('msg_checked_trackback_is_deleted'), $trackback_count) );
}
/**
* @brief 엮인글 입력
**/
@ -198,27 +220,5 @@
// socket 닫음
fclose($fp);
}
/**
* @brief 관리자 페이지에서 선택된 엮인글들을 삭제
**/
function procDeleteChecked() {
// 선택된 글이 없으면 오류 표시
$cart = Context::get('cart');
if(!$cart) return $this->stop('msg_cart_is_null');
$trackback_srl_list= explode('|@|', $cart);
$trackback_count = count($trackback_srl_list);
if(!$trackback_count) return $this->stop('msg_cart_is_null');
// 글삭제
for($i=0;$i<$trackback_count;$i++) {
$trackback_srl = trim($trackback_srl_list[$i]);
if(!$trackback_srl) continue;
$this->deleteTrackback($trackback_srl, true);
}
$this->setMessage( sprintf(Context::getLang('msg_checked_trackback_is_deleted'), $trackback_count) );
}
}
?>

View file

@ -16,7 +16,7 @@
/**
* @brief 목록 출력 (관리자용)
**/
function dispList() {
function dispTrackbackAdminList() {
// 목록을 구하기 위한 옵션
$args->page = Context::get('page'); ///< 페이지
$args->list_count = 50; ///< 한페이지에 보여줄 글 수