엮인글 모듈에서 전체 엮인글 받지 않음 기능 설정하도록 기능 추가

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2272 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-09 06:39:19 +00:00
parent 998e5dc57f
commit 402cbb2ba3
10 changed files with 61 additions and 3 deletions

View file

@ -4,6 +4,7 @@
<actions>
<action name="dispTrackbackAdminList" type="view" admin_index="true" standalone="true" />
<action name="procTrackbackAdminDeleteChecked" type="controller" standalone="true" />
<action name="procTrackbackAdminInsertConfig" type="controller" standalone="true" />
<action name="trackback" type="controller" standalone="true" />
</actions>
</module>

View file

@ -18,4 +18,7 @@
'regdate' => 'Posting Date',
'ipaddress' => 'IP Address',
);
$lang->enable_trackback = "엮인글 사용";
$lang->about_enable_trackback = "체크를 해제하시면 사이트내에 모든 글의 엮인글 접수를 중지합니다";
?>

View file

@ -18,4 +18,7 @@
'regdate' => '登録日',
'ipaddress' => 'IPアドレス',
);
$lang->enable_trackback = "엮인글 사용";
$lang->about_enable_trackback = "체크를 해제하시면 사이트내에 모든 글의 엮인글 접수를 중지합니다";
?>

View file

@ -18,4 +18,7 @@
'regdate' => '등록일',
'ipaddress' => 'IP 주소',
);
$lang->enable_trackback = "엮인글 사용";
$lang->about_enable_trackback = "체크를 해제하시면 사이트내에 모든 글의 엮인글 접수를 중지합니다";
?>

View file

@ -18,4 +18,7 @@
'regdate' => '登录日期',
'ipaddress' => 'IP地址',
);
$lang->enable_trackback = "엮인글 사용";
$lang->about_enable_trackback = "체크를 해제하시면 사이트내에 모든 글의 엮인글 접수를 중지합니다";
?>

View file

@ -0,0 +1,5 @@
<filter name="insert_config" module="trackback" act="procTrackbackAdminInsertConfig" confirm_msg_code="confirm_delete">
<form />
<parameter />
<response />
</filter>

View file

@ -1,7 +1,27 @@
<!--%import("filter/delete_checked.xml")-->
<!--%import("filter/insert_config.xml")-->
<h3>{$lang->trackback} <span class="gray">{$lang->cmd_management}</span></h3>
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table cellspacing="0" class="tableType2 gap1">
<col width="150" />
<col />
<tr>
<th scope="col">{$lang->enable_trackback}</th>
<td>
<input type="checkbox" name="enable_trackback" value="Y" size="3" <!--@if($config->enable_trackback!='N')-->checked="checked"<!--@end-->/> {$lang->cmd_use}
<p>{$lang->about_enable_trackback}</p>
</td>
</tr>
</table>
<!-- 버튼 -->
<div class="tRight gap1">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
</div>
</form>
<!-- 정보 -->
<div class="tableSummaryType1">
Total <strong>{number_format($total_count)}</strong>, Page <strong>{number_format($page)}</strong>/{number_format($total_page)}

View file

@ -48,5 +48,18 @@
return $output;
}
/**
* @brief 설정 저장
**/
function procTrackbackAdminInsertConfig() {
$config->enable_trackback = Context::get('enable_trackback');
if($config->enable_trackback != 'Y') $config->enable_trackback = 'N';
// module Controller 객체 생성하여 입력
$oModuleController = &getController('module');
$output = $oModuleController->insertModuleConfig('trackback',$config);
return $output;
}
}
?>

View file

@ -17,6 +17,11 @@
* @brief 목록 출력 (관리자용)
**/
function dispTrackbackAdminList() {
// 설정 구함
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('trackback');
Context::set('config',$config);
// 목록을 구하기 위한 옵션
$args->page = Context::get('page'); ///< 페이지
$args->list_count = 50; ///< 한페이지에 보여줄 글 수

View file

@ -17,12 +17,14 @@
* @brief 엮인글 입력
**/
function trackback() {
// 설정 구함
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('trackback');
if($config->enable_trackback == 'N') return $this->stop('fail');
Context::setRequestMethod("XMLRPC");
$obj = Context::gets('document_srl','blog_name','url','title','excerpt');
if(!$obj->document_srl || !$obj->url || !$obj->title || !$obj->excerpt) return $this->stop('fail');
return $this->insertTrackback($obj);
}