글작성시에 알림 기능 추가. 알림 체크시 댓글/엮인글이 첨부되면 쪽지로 발송함

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2015 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-25 10:44:22 +00:00
parent 812283e33a
commit 94227a556d
22 changed files with 134 additions and 24 deletions

View file

@ -35,10 +35,10 @@
// 원본글을 가져옴
if(!$manual_inserted) {
$document = $oDocumentModel->getDocument($document_srl);
$oDocument = $oDocumentModel->getDocument($document_srl);
if($document_srl != $document->document_srl) return new Object(-1,'msg_invalid_document');
if($document->lock_comment=='Y') return new Object(-1,'msg_invalid_request');
if($document_srl != $oDocument->document_srl) return new Object(-1,'msg_invalid_document');
if($oDocument->isLocked()) return new Object(-1,'msg_invalid_request');
if($obj->password) $obj->password = md5($obj->password);
if($obj->homepage && !eregi('^http:\/\/',$obj->homepage)) $obj->homepage = 'http://'.$obj->homepage;
@ -95,6 +95,9 @@
// commit
$oDB->commit();
// 원본글에 알림(notify_message)가 설정되어 있으면 메세지 보냄
if(!$manual_inserted) $oDocument->notify(Context::getLang('comment'), $obj->content);
$output->add('comment_srl', $obj->comment_srl);
return $output;
}