@@ 87-101 (lines=15) @@ | ||
84 | } |
|
85 | ||
86 | // find a comment by IP matching if an administrator. |
|
87 | if($logged_info->is_admin == 'Y') |
|
88 | { |
|
89 | $oCommentModel = getModel('comment'); |
|
90 | $oComment = $oCommentModel->getComment($comment_srl); |
|
91 | ||
92 | if($oComment->isExists()) |
|
93 | { |
|
94 | // Find a post of the corresponding ip address |
|
95 | $url = getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList', 'search_target', 'ipaddress', 'search_keyword', $oComment->getIpAddress()); |
|
96 | $oCommentController->addCommentPopupMenu($url, 'cmd_search_by_ipaddress', $icon_path, 'TraceByIpaddress'); |
|
97 | ||
98 | $url = sprintf("var params = new Array(); params['ipaddress_list']='%s'; exec_xml('spamfilter', 'procSpamfilterAdminInsertDeniedIP', params, completeCallModuleAction)", $oComment->getIpAddress()); |
|
99 | $oCommentController->addCommentPopupMenu($url, 'cmd_add_ip_to_spamfilter', '', 'javascript'); |
|
100 | } |
|
101 | } |
|
102 | ||
103 | // Changing a language of pop-up menu |
|
104 | $menus = Context::get('comment_popup_menu_list'); |
@@ 568-582 (lines=15) @@ | ||
565 | } |
|
566 | ||
567 | // If you are managing to find posts by ip |
|
568 | if($logged_info->is_admin == 'Y') |
|
569 | { |
|
570 | $oDocumentModel = getModel('document'); |
|
571 | $oDocument = $oDocumentModel->getDocument($document_srl); //before setting document recycle |
|
572 | ||
573 | if($oDocument->isExists()) |
|
574 | { |
|
575 | // Find a post equivalent to ip address |
|
576 | $url = getUrl('','module','admin','act','dispDocumentAdminList','search_target','ipaddress','search_keyword',$oDocument->getIpAddress()); |
|
577 | $oDocumentController->addDocumentPopupMenu($url,'cmd_search_by_ipaddress',$icon_path,'TraceByIpaddress'); |
|
578 | ||
579 | $url = sprintf("var params = new Array(); params['ipaddress_list']='%s'; exec_xml('spamfilter', 'procSpamfilterAdminInsertDeniedIP', params, completeCallModuleAction)", $oDocument->getIpAddress()); |
|
580 | $oDocumentController->addDocumentPopupMenu($url,'cmd_add_ip_to_spamfilter','','javascript'); |
|
581 | } |
|
582 | } |
|
583 | // Changing the language of pop-up menu |
|
584 | $menus = Context::get('document_popup_menu_list'); |
|
585 | $menus_count = count($menus); |