mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 21:29:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1491 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
efa943ac26
commit
6221f0a444
14 changed files with 68 additions and 46 deletions
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
//debugPrint($GLOBALS['HTTP_RAW_POST_DATA']);
|
||||
|
||||
/**
|
||||
* @file blogapicounter.addon.php
|
||||
|
|
@ -12,7 +11,7 @@
|
|||
**/
|
||||
|
||||
// called_position가 before_module_proc일때 실행
|
||||
if($called_position != 'before_module_proc' || $_REQUEST['act'] != 'blogapi') return;
|
||||
if($called_position != 'before_module_proc' || $_REQUEST['act'] != 'api') return;
|
||||
|
||||
// 관련 func 파일 읽음
|
||||
require_once('./addons/blogapi/blogapi.func.php');
|
||||
|
|
@ -151,6 +150,8 @@
|
|||
$obj->content = str_replace($this->mid.'/{UPLOADED_PATH}',sprintf('./files/attach/images/%s/%s/%s', $this->module_srl, $document_srl, $filename), $obj->content);
|
||||
|
||||
$oDocumentController = &getController('document');
|
||||
$obj->allow_comment = 'Y';
|
||||
$obj->allow_trackback = 'Y';
|
||||
$output = $oDocumentController->insertDocument($obj);
|
||||
|
||||
if(!$output->toBool()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue