신고 플러그인 v 1.2.5 > 그누4 플러그인

그누4 플러그인

그누보드에는 여러가지 기능 추가가 쉽도록 제작 되었습니다.
플러그인의 저작권은 해당 플러그인 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다.
플러그인 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y

신고 플러그인 v 1.2.5 정보

신고 플러그인 v 1.2.5

첨부파일

report_v1.2.5(utf-8).zip (9.4K) 198회 다운로드 2011-08-05 00:35:40
report_v1.2.5(euc-kr).zip (9.1K) 45회 다운로드 2011-08-05 00:35:40

본문

복구조건을 개선하엿습니다
[작은별님 제보 ★]
[보안패치] 그누보드 4.34.02 로 인한 삭제가 안되는 현상도 수정되엇습니다.

[2011-08-05 0:33 삭제시 경고창이 뜨는걸 수정햇습니다;]
2011-08-05 0:33 이전에 1.2.5를 다운받으신 회원님은 adm/report_list.php 에 잇는 
alert(html); 두개 를 삭제해주시면됩니다 ^^;

1.2.4버전에서 1.2.5버전으로 업데이트하시는분!-------------------------------------
[가장좋은방법은 다 덮어씌우는것 ㅎ]

수정할파일
extend/report.lib.php
adm/report_list.php 

extend/report.lib.php 에 잇는 function report_button() { ... } 을 밑의 내용으로 바꾸어주세요

function report_button()
{
global $view, $list, $i, $bo_table, $wr_id, $is_admin, $report;

if($is_admin && $view['singo'] && !$view['wr_is_comment'] && !$list[$i]['wr_is_comment']) 
{
if($list[$i][bo_table])
$bo_table = $list[$i][bo_table];
return "<a href='#' onclick=\"window.open('$g4[path]/report/singo_pop.php?bo_table=$bo_table&wr_id={$view[wr_id]}&wr_is_comment=0&mode=reset', '복구', 'width=200px, height=10px, menubar=no, toolbar=no, location=no, scrollbars=no')\">복구</a>";
}

if($is_admin && (($list[$i]['singo'] && $list[$i]['wr_is_comment']) || ($view['singo'] && $view['wr_is_comment'] && !$list[$i]['wr_is_comment']))) 
{
if($list[$i][bo_table])
$bo_table = $list[$i][bo_table];
if($list[$i]['wr_is_comment'])
$view[wr_id] = $list[$i][wr_id];
return "<a href='#' onclick=\"window.open('$g4[path]/report/singo_pop.php?bo_table=$bo_table&wr_id=$view[wr_id]&wr_is_comment=1&mode=reset', '복구', 'width=200px, height=10px, menubar=no, toolbar=no, location=no, scrollbars=no')\">복구</a>";
}


if($view['singo'] < $report['count'] && !$list[$i]['wr_is_comment'])
return "<a onclick=\"window.open('$g4[path]/report/singo_pop.php?bo_table=$bo_table&wr_id=$wr_id&wr_is_comment=0', '신고하기', 'width=700px, height=170px, menubar=no, toolbar=no, location=no, scrollbars=no')\" style=\"cursor:pointer;\"><img src=\"$g4[path]/report/img/icon_singo.gif\"></a>";

if($list[$i]['wr_is_comment'] && $list[$i]['singo'] < $report['count']) 
{
$singo_wr_id = $list[$i]['wr_id'];
return "<a onclick=\"window.open('$g4[path]/report/singo_pop.php?bo_table=$bo_table&wr_id=$singo_wr_id&wr_is_comment=1', '신고하기', 'width=700px, height=170px, menubar=no, toolbar=no, location=no, scrollbars=no')\" style=\"cursor:pointer;\"><img src=\"$g4[path]/report/img/icon_singo.gif\"></a>";
}


}

adm/report_list.php 
$report_mode= $_GET['mode']; 밑에
set_session("ss_delete_token", $token = uniqid(time())); 를 추가.

function report_delete(i, bo_table, wr_id, comment) { ... } 을 아래내용으로 수정
function report_delete(i, bo_table, wr_id, comment) {
if(!comment) {
    $.ajax({
      type: "GET",
      url: "../bbs/delete.php?bo_table="+ bo_table +"&wr_id="+wr_id+"&token=<?=$token?>",
      cache: false,
      success: function(html){
$("#report_list"+i).css("display", "none");
$("#report_content"+i).css("display", "none");
alert(html);
}
    });
} else {
    $.ajax({
      type: "GET",
      url: "../bbs/delete_comment.php?bo_table="+ bo_table +"&comment_id="+wr_id+"&token=<?=$token?>",
      cache: false,
      success: function(html){
$("#report_list"+i).css("display", "none");
$("#report_content"+i).css("display", "none");
alert(html);
}
    });
}


--------------------------------------------------------------------------------------------------------


그리고 제작자가 기부금을 받습니다. (395-085165-01-017 기업은행 김경욱) ♡
추천
0

댓글 전체

제가 초보라 설치는 제대로 했는데
이런 문제가 생겼네요~
어디를 고쳐야 할지를 몰라서요
예를 들어서 http://xxxx.com/ok/
이 폴더에 그누보드를 설치를 했습니다.
신고 플러그인 설치를 하고 list.skin.php, view.skin.php, view_comment.skin.php 에 공통적으로 맨위부분에 report_check(); 를 넣었구요.
view.skin.php, view_comment.skin.php 에 신고및복구 버튼이 뜨길 원하는 곳에 <?=report_button();?> 를 추가했습니다.
그런데 http://xxxx.com/ok/bbs/board.php?bo_table=okok&wr_id=1 이 게시판 view 페이지에서 신고아이콘이 엑박으로 나오네요.
그리고 엑박이 나온 아이콘을 클릭하면 http://xxxx.com/report/singo_pop.php?bo_table=okok&wr_id=2&wr_is_comment=1 팝업창이 뜨네요.
제 생각에는 http://xxxx.com/ok/report/singo_pop.php?bo_table=okok&wr_id=2&wr_is_comment=1 이렇게 떠야 하는데 말이죠 .
아마도 이미지 하고 팝업이 뜨는 게 경로 지정을 바꿔야 할 거 같은데 어디서 어떻게 바꿔야 하는 지 좀 알려주세요.
extend/report.lib.php 파일의

global $view, $list, $i, $bo_table, $wr_id, $is_admin, $report;

부분을

global $g4, $view, $list, $i, $bo_table, $wr_id, $is_admin, $report;

로 수정해보시구 덧글 달아주세요 ^^
전체 3,524 |RSS
그누4 플러그인 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT