mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3867 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e9cb096a4c
commit
c279abe1f2
2 changed files with 23 additions and 12 deletions
|
|
@ -17,6 +17,8 @@
|
||||||
* @brief 댓글의 추천을 처리하는 action (Up)
|
* @brief 댓글의 추천을 처리하는 action (Up)
|
||||||
**/
|
**/
|
||||||
function procCommentVoteUp() {
|
function procCommentVoteUp() {
|
||||||
|
if(!Context::get('is_logged')) return new Object(-1, 'msg_invalid_request');
|
||||||
|
|
||||||
$comment_srl = Context::get('target_srl');
|
$comment_srl = Context::get('target_srl');
|
||||||
if(!$comment_srl) return new Object(-1, 'msg_invalid_request');
|
if(!$comment_srl) return new Object(-1, 'msg_invalid_request');
|
||||||
|
|
||||||
|
|
@ -28,6 +30,8 @@
|
||||||
* @brief 댓글의 추천을 처리하는 action (Down)
|
* @brief 댓글의 추천을 처리하는 action (Down)
|
||||||
**/
|
**/
|
||||||
function procCommentVoteDown() {
|
function procCommentVoteDown() {
|
||||||
|
if(!Context::get('is_logged')) return new Object(-1, 'msg_invalid_request');
|
||||||
|
|
||||||
$comment_srl = Context::get('target_srl');
|
$comment_srl = Context::get('target_srl');
|
||||||
if(!$comment_srl) return new Object(-1, 'msg_invalid_request');
|
if(!$comment_srl) return new Object(-1, 'msg_invalid_request');
|
||||||
|
|
||||||
|
|
@ -39,6 +43,8 @@
|
||||||
* @brief 댓글이 신고될 경우 호출되는 action
|
* @brief 댓글이 신고될 경우 호출되는 action
|
||||||
**/
|
**/
|
||||||
function procCommentDeclare() {
|
function procCommentDeclare() {
|
||||||
|
if(!Context::get('is_logged')) return new Object(-1, 'msg_invalid_request');
|
||||||
|
|
||||||
$comment_srl = Context::get('target_srl');
|
$comment_srl = Context::get('target_srl');
|
||||||
if(!$comment_srl) return new Object(-1, 'msg_invalid_request');
|
if(!$comment_srl) return new Object(-1, 'msg_invalid_request');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,9 @@
|
||||||
// trigger 호출
|
// trigger 호출
|
||||||
ModuleHandler::triggerCall('comment.getCommentMenu', 'before', $menu_list);
|
ModuleHandler::triggerCall('comment.getCommentMenu', 'before', $menu_list);
|
||||||
|
|
||||||
|
// 회원이어야만 가능한 기능
|
||||||
|
if($logged_info->member_srl) {
|
||||||
|
|
||||||
// 추천 버튼 추가
|
// 추천 버튼 추가
|
||||||
$menu_str = Context::getLang('cmd_vote');
|
$menu_str = Context::getLang('cmd_vote');
|
||||||
$menu_link = sprintf("doCallModuleAction('comment','procCommentVoteUp','%s')", $comment_srl);
|
$menu_link = sprintf("doCallModuleAction('comment','procCommentVoteUp','%s')", $comment_srl);
|
||||||
|
|
@ -47,6 +50,8 @@
|
||||||
$menu_link = sprintf("doCallModuleAction('comment','procCommentDeclare','%s')", $comment_srl);
|
$menu_link = sprintf("doCallModuleAction('comment','procCommentDeclare','%s')", $comment_srl);
|
||||||
$menu_list[] = sprintf("\n%s,%s,%s", '', $menu_str, $menu_link);
|
$menu_list[] = sprintf("\n%s,%s,%s", '', $menu_str, $menu_link);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// trigger 호출 (after)
|
// trigger 호출 (after)
|
||||||
ModuleHandler::triggerCall('comment.getCommentMenu', 'after', $menu_list);
|
ModuleHandler::triggerCall('comment.getCommentMenu', 'after', $menu_list);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue