mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-16 17:59:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1327 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d6f05311b9
commit
791c6e4869
3 changed files with 30 additions and 28 deletions
|
|
@ -66,18 +66,18 @@
|
|||
|
||||
$this->content_size = strlen($output);
|
||||
|
||||
// 디버깅 데이터 출력
|
||||
$this->_debugOutput();
|
||||
|
||||
// 컨텐츠 출력
|
||||
if(Context::getResponseMethod()!="XMLRPC") {
|
||||
//ini_set('zlib.output_compression_level',3);
|
||||
//ob_start('ob_gzhandler');
|
||||
ini_set('zlib.output_compression_level',3);
|
||||
ob_start('ob_gzhandler');
|
||||
print trim($output);
|
||||
//ob_end_flush();
|
||||
ob_end_flush();
|
||||
} else {
|
||||
print trim($output);
|
||||
}
|
||||
|
||||
// 디버깅 데이터 출력
|
||||
$this->_debugOutput();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@
|
|||
$oModuleModel = &getModel('module');
|
||||
|
||||
// document_srl이 있으면 document_srl로 모듈과 모듈 정보를 구함
|
||||
if($this->document_srl) $module_info = $oModuleModel->getModuleInfoByDocumentSrl($this->document_srl);
|
||||
if($this->document_srl && !$this->mid) $module_info = $oModuleModel->getModuleInfoByDocumentSrl($this->document_srl);
|
||||
if($this->module && $module_info->module != $this->module) unset($module_info);
|
||||
|
||||
// 아직 모듈을 못 찾았고 $mid값이 있으면 $mid로 모듈을 구함
|
||||
|
|
|
|||
|
|
@ -248,30 +248,32 @@
|
|||
|
||||
$document_srl = $document->document_srl;
|
||||
|
||||
// 댓글 가져오기
|
||||
if($document->comment_count && $document->allow_comment == 'Y') {
|
||||
$oCommentModel = &getModel('comment');
|
||||
$document->comment_list = $oCommentModel->getCommentList($document_srl, $is_admin);
|
||||
}
|
||||
if($get_extra_info) {
|
||||
// 댓글 가져오기
|
||||
if($document->comment_count && $document->allow_comment == 'Y') {
|
||||
$oCommentModel = &getModel('comment');
|
||||
$document->comment_list = $oCommentModel->getCommentList($document_srl, $is_admin);
|
||||
}
|
||||
|
||||
// 트랙백 가져오기
|
||||
if($document->trackback_count && $document->allow_trackback == 'Y') {
|
||||
$oTrackbackModel = &getModel('trackback');
|
||||
$document->trackback_list = $oTrackbackModel->getTrackbackList($document_srl, $is_admin);
|
||||
}
|
||||
// 트랙백 가져오기
|
||||
if($document->trackback_count && $document->allow_trackback == 'Y') {
|
||||
$oTrackbackModel = &getModel('trackback');
|
||||
$document->trackback_list = $oTrackbackModel->getTrackbackList($document_srl, $is_admin);
|
||||
}
|
||||
|
||||
// 첨부파일 가져오기
|
||||
if($document->uploaded_count) {
|
||||
$oFileModel = &getModel('file');
|
||||
$file_list = $oFileModel->getFiles($document_srl, $is_admin);
|
||||
$document->uploaded_list = $file_list;
|
||||
}
|
||||
// 첨부파일 가져오기
|
||||
if($document->uploaded_count) {
|
||||
$oFileModel = &getModel('file');
|
||||
$file_list = $oFileModel->getFiles($document_srl, $is_admin);
|
||||
$document->uploaded_list = $file_list;
|
||||
}
|
||||
|
||||
// 태그 정리
|
||||
if($document->tags) {
|
||||
$tag_list = explode(',',$document->tags);
|
||||
$tag_count = count($tag_list);
|
||||
for($i=0;$i<$tag_count;$i++) if(trim($tag_list[$i])) $document->tag_list[] = trim($tag_list[$i]);
|
||||
// 태그 정리
|
||||
if($document->tags) {
|
||||
$tag_list = explode(',',$document->tags);
|
||||
$tag_count = count($tag_list);
|
||||
for($i=0;$i<$tag_count;$i++) if(trim($tag_list[$i])) $document->tag_list[] = trim($tag_list[$i]);
|
||||
}
|
||||
}
|
||||
|
||||
$document->content = sprintf('<!--BeforeDocument(%d,%d)-->%s<!--AfterDocument(%d,%d)-->', $document_srl, $document->member_srl, $document->content, $document_srl, $document->member_srl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue