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

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

@ -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);
}