| @@ 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'); |
|
| @@ 559-573 (lines=15) @@ | ||
| 556 | } |
|
| 557 | ||
| 558 | // If you are managing to find posts by ip |
|
| 559 | if($logged_info->is_admin == 'Y') |
|
| 560 | { |
|
| 561 | $oDocumentModel = getModel('document'); |
|
| 562 | $oDocument = $oDocumentModel->getDocument($document_srl); //before setting document recycle |
|
| 563 | ||
| 564 | if($oDocument->isExists()) |
|
| 565 | { |
|
| 566 | // Find a post equivalent to ip address |
|
| 567 | $url = getUrl('','module','admin','act','dispDocumentAdminList','search_target','ipaddress','search_keyword',$oDocument->getIpAddress()); |
|
| 568 | $oDocumentController->addDocumentPopupMenu($url,'cmd_search_by_ipaddress',$icon_path,'TraceByIpaddress'); |
|
| 569 | ||
| 570 | $url = sprintf("var params = new Array(); params['ipaddress_list']='%s'; exec_xml('spamfilter', 'procSpamfilterAdminInsertDeniedIP', params, completeCallModuleAction)", $oDocument->getIpAddress()); |
|
| 571 | $oDocumentController->addDocumentPopupMenu($url,'cmd_add_ip_to_spamfilter','','javascript'); |
|
| 572 | } |
|
| 573 | } |
|
| 574 | // Changing the language of pop-up menu |
|
| 575 | $menus = Context::get('document_popup_menu_list'); |
|
| 576 | $menus_count = count($menus); |
|