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

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
<filter name="insert_denied_ip" module="spamfilter" act="procInsertDeniedIP" confirm_msg_code="confirm_submit">
<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>

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

@ -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>
</module>

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

@ -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; ///< 한페이지에 보여줄 글 수