테스트 사이트 - 개발 중인 베타 버전입니다

글쓴 인간이 관리자이면 똑바로 할 수 없을까요? 채택완료

민쯩먼저깔게요 8년 전 조회 2,533

안녕하세요~

a가 pc에서 글을 쓰면

관리자가 비밀댓글로 코멘트를 답니다...이것은 a에게도 안보이게 했습니다.

아시다시피 제가 짠게 아니그..ㅎ 

이분이 알려주셨어요~

https://sir.kr/qa/184718?sfl=mb_id%2C1&page=4&lstx=youmoya">https://sir.kr/qa/184718?sfl=mb_id%2C1&page=4&lstx=youmoya 

pc에서는 잘 작동하는데요,,,모바일에서는 노출되어 버리더라구요,,,

이게 관리자의 인간성 문제인가요??

pc의 코멘트 스킨에..

 비밀글

        

if (strstr($list[$i]['wr_option'], "secret") && $is_admin) {

$list[$i]['wr_content'] = url_auto_link(str_replace("

echo $list[$i]['wr_content'] ; 

} else if ( $list[$i]['wr_option']!="secret"  ){

$list[$i]['wr_content'] = url_auto_link(str_replace("

echo $list[$i]['wr_content'] ; 

}

?> 

이렇게 했구요,,,

모바일 코멘트 스킨에도 이걸 넣어주었는데...작동하지 않고 노출되더라구요,,,

왜그럴까요?

위의 코드를 모바일 코멘트스킨의 어느부분과 대체 해주어야 할까요?

소스가 길지만 첨부해봅니다.

if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

?>

   

댓글목록

   

    for ($i=0; $i

        $comment_id = $list[$i]['wr_id'];

        $cmt_depth = ""; // 댓글단계

        $cmt_depth = strlen($list[$i]['wr_comment_reply']) * 20;

 

// $str = $list[$i]['content'];

if (G5_IS_MOBILE) {

    $str = strip_tags($list[$i]['wr_content']);

} else {

    $str = $list[$i]['content'];

}

            if (strstr($list[$i]['wr_option'], "secret"))

                $str = $str;

            $str = preg_replace("/\[\\]/i", "", $str);

    ?>

   

style="margin-left:px;border-top-color:#e0e0e0">

       

           

님의 댓글

           

            댓글의 댓글

           

            아이피

           

           

            작성일

           

           

            include(G5_SNS_PATH."/view_comment_list.sns.skin.php");

            ?>

       

       

       

            "; ?>

           

       

       

       

        ">

       

       

            $query_string = clean_query_string($_SERVER['QUERY_STRING']);

            if($w == 'cu') {

                $sql = " select wr_id, wr_content, mb_id from $write_table where wr_id = '$c_id' and wr_is_comment = '1' ";

                $cmt = sql_fetch($sql);

                if (!($is_admin || ($member['mb_id'] == $cmt['mb_id'] && $cmt['mb_id'])))

                    $cmt['wr_content'] = '';

                $c_wr_content = $cmt['wr_content'];

            }

            $c_reply_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=c#bo_vc_w';

            $c_edit_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=cu#bo_vc_w';

        ?>

       

           

                   

  • 답변
  •                

  • 수정
  •                

  • 삭제
  •            

       

       

   

   

   

등록된 댓글이 없습니다.

        if($w == '')

            $w = 'c';

    ?>

   

   

   

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
o
8년 전

pc에서 정상작동한 코드를 동일하게 모바일에서 넣었다면 똑같은 결과가 나타납니다.

모바일이라고 해서 그 코드가 다른 결과를 보여주지는 않는데요;;;

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

민쯩먼저깔게요
8년 전
감사합니다~ 답변을 참고하여 해결하였습니다.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인