mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 15:49:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@129 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
515e928b12
commit
969c831a18
18 changed files with 78 additions and 64 deletions
|
|
@ -11,8 +11,6 @@
|
|||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
// 파일 업로드일 경우 $act값을 procUploadFile() 로 변경
|
||||
if(Context::isUploaded() && $this->grant->fileupload) Context::set('act', 'procUploadFile');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -25,7 +23,8 @@
|
|||
|
||||
// member모듈 controller 객체 생성
|
||||
$oMemberController = &getController('member');
|
||||
return $oMemberController->doLogin($user_id, $password);
|
||||
$output = $oMemberController->doLogin($user_id, $password);
|
||||
if(!$output->toBool()) return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -41,6 +40,7 @@
|
|||
* @brief 문서 입력
|
||||
**/
|
||||
function procInsertDocument() {
|
||||
|
||||
// 글작성시 필요한 변수를 세팅
|
||||
$obj = Context::getRequestVars();
|
||||
$obj->module_srl = $this->module_srl;
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
$oDocumentController = &getController('document');
|
||||
|
||||
// 이미 존재하는 글인지 체크
|
||||
$document = $oDocumentModel->getDocument($obj->document_srl);
|
||||
$document = $oDocumentModel->getDocument($obj->document_srl, $this->grant->manager);
|
||||
|
||||
// 이미 존재하는 경우 수정
|
||||
if($document->document_srl == $obj->document_srl) {
|
||||
|
|
@ -66,6 +66,7 @@
|
|||
$msg_code = 'success_registed';
|
||||
$obj->document_srl = $output->get('document_srl');
|
||||
}
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// 트랙백 발송
|
||||
$trackback_url = Context::get('trackback_url');
|
||||
|
|
@ -75,10 +76,9 @@
|
|||
$oTrackbackController->sendTrackback($obj, $trackback_url, $trackback_charset);
|
||||
}
|
||||
|
||||
if(!$output->toBool()) return $output;
|
||||
$this->setMessage($msg_code);
|
||||
$this->add('mid', Context::get('mid'));
|
||||
$this->add('document_srl', $output->get('document_srl'));
|
||||
$this->setMessage($msg_code);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -270,6 +270,9 @@
|
|||
* @brief 첨부파일 업로드
|
||||
**/
|
||||
function procUploadFile() {
|
||||
// 업로드 권한이 없거나 정보가 없을시 종료
|
||||
if(!Context::isUploaded() || !$this->grant->fileupload) exit();
|
||||
|
||||
// 기본적으로 필요한 변수인 document_srl, module_srl을 설정
|
||||
$document_srl = Context::get('document_srl');
|
||||
$module_srl = $this->module_srl;
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@
|
|||
|
||||
// 지정된 글이 없다면 (신규) 새로운 번호를 만든다
|
||||
if($document_srl) {
|
||||
$document = $oDocumentModel->getDocument($document_srl);
|
||||
$document = $oDocumentModel->getDocument($document_srl, $this->grant->manager);
|
||||
if(!$document) {
|
||||
unset($document_srl);
|
||||
Context::set('document_srl','');
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<a href="{getUrl('act','dispCommentModifyForm','comment_srl',$val->comment_srl)}">[{$lang->cmd_modify}]</a>
|
||||
<a href="{getUrl('act','dispCommentReplyForm','comment_srl',$val->comment_srl)}">[{$lang->cmd_reply}]</a>
|
||||
<a href="{getUrl('act','dispCommentDeleteForm','comment_srl',$val->comment_srl)}">[{$lang->cmd_delete}]</a>
|
||||
<a href="{getUrl('act','dispCommentModify','comment_srl',$val->comment_srl)}">[{$lang->cmd_modify}]</a>
|
||||
<a href="{getUrl('act','dispCommentReply','comment_srl',$val->comment_srl)}">[{$lang->cmd_reply}]</a>
|
||||
<a href="{getUrl('act','dispCommentDelete','comment_srl',$val->comment_srl)}">[{$lang->cmd_delete}]</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!--%import("filter/filter.delete_trackback.xml")-->
|
||||
<!--%import("filter/delete_trackback.xml")-->
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFormFilter(this, delete_trackback)">
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, delete_trackback)">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="act" value="procDeleteTrackback" />
|
||||
<input type="hidden" name="page" value="{$page}" />
|
||||
|
|
|
|||
|
|
@ -1,12 +1,7 @@
|
|||
<filter name="logout" module="board" act="procLogout">
|
||||
<form>
|
||||
<node target="mid" required="true" />
|
||||
<node target="act" required="true" />
|
||||
</form>
|
||||
<parameter>
|
||||
<param name="mid" target="mid" />
|
||||
<param name="act" target="act" />
|
||||
</parameter>
|
||||
<response>
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
|
|
|
|||
|
|
@ -17,13 +17,6 @@ function completeDocumentInserted(ret_obj) {
|
|||
location.href = url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* 글 삭제 */
|
||||
function procDeleteDocument(ret_obj, response_tags) {
|
||||
var error = ret_obj['error'];
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
<!--%import("filter/filter.login.xml")-->
|
||||
<!--%import("filter/login.xml")-->
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, login)">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="act" value="procLogin" />
|
||||
<table>
|
||||
<col width="120" />
|
||||
<col width="*" />
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
<!--%import("filter/filter.logout.xml")-->
|
||||
<!--%import("filter/logout.xml")-->
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, logout)">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="act" value="procLogout" />
|
||||
<table>
|
||||
<tr>
|
||||
<th>{$lang->cmd_logout}</th>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<a href="{getUrl('act','dispTrackbackDeleteForm','trackback_srl',$val->trackback_srl)}">[{$lang->cmd_delete}]</a>
|
||||
<a href="{getUrl('act','dispTrackbackDelete','trackback_srl',$val->trackback_srl)}">[{$lang->cmd_delete}]</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->content}</th>
|
||||
<td height="100" valign="top">{Document::transContent($document->content)}</td>
|
||||
<td height="100" valign="top">{$document->content}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
|
|
@ -92,8 +92,8 @@
|
|||
<div>
|
||||
<a href="{getUrl('document_srl','')}">[{$lang->cmd_list}]</a>
|
||||
<a href="#" onclick="doVote();return false;">[{$lang->cmd_vote}]</a>
|
||||
<a href="{getUrl('act','dispWriteForm')}">[{$lang->cmd_modify}]</a>
|
||||
<a href="{getUrl('act','dispDeleteForm')}">[{$lang->cmd_delete}]</a>
|
||||
<a href="{getUrl('act','dispWrite')}">[{$lang->cmd_modify}]</a>
|
||||
<a href="{getUrl('act','dispDelete')}">[{$lang->cmd_delete}]</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert)" <!--@if($grant->fileupload)-->enctype="multipart/form-data"<!--@end-->>
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="act" value="procInsertDocument" />
|
||||
<input type="hidden" name="act" value="procUploadFile" />
|
||||
<input type="hidden" name="content" value="{htmlspecialchars($document->content)}" />
|
||||
<input type="hidden" name="document_srl" value="{$document_srl}" />
|
||||
<table width="100%">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue