@@ 79-84 (lines=6) @@ | ||
76 | // call a trigger (after) |
|
77 | ModuleHandler::triggerCall('comment.getCommentMenu', 'after', $menu_list); |
|
78 | ||
79 | if($this->grant->manager){ |
|
80 | $str_confirm = Context::getLang('confirm_move'); |
|
81 | $url = sprintf("if(!confirm('%s')) return; var params = new Array(); params['comment_srl']='%s'; params['mid']=current_mid;params['cur_url']=current_url; exec_xml('comment', 'procCommentAdminMoveToTrash', params)", $str_confirm, $comment_srl); |
|
82 | $oCommentController->addCommentPopupMenu($url,'cmd_trash','','javascript'); |
|
83 | ||
84 | } |
|
85 | ||
86 | // find a comment by IP matching if an administrator. |
|
87 | if($logged_info->is_admin == 'Y') |
@@ 560-565 (lines=6) @@ | ||
557 | $oDocumentController->addDocumentPopupMenu($url,'cmd_print','','printDocument'); |
|
558 | // Call a trigger (after) |
|
559 | ModuleHandler::triggerCall('document.getDocumentMenu', 'after', $menu_list); |
|
560 | if($this->grant->manager) |
|
561 | { |
|
562 | $str_confirm = Context::getLang('confirm_move'); |
|
563 | $url = sprintf("if(!confirm('%s')) return; var params = new Array(); params['document_srl']='%s'; params['mid']=current_mid;params['cur_url']=current_url; exec_xml('document', 'procDocumentAdminMoveToTrash', params)", $str_confirm, $document_srl); |
|
564 | $oDocumentController->addDocumentPopupMenu($url,'cmd_trash','','javascript'); |
|
565 | } |
|
566 | ||
567 | // If you are managing to find posts by ip |
|
568 | if($logged_info->is_admin == 'Y') |