<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[비밀글 답글에 대한 조회]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/2832</link>
		<description><![CDATA[<p>비회원이 쓴 비밀글에 대한 관리자의 일반답글(비밀글 아님)의 경우 조회시 비밀번호 확인이 이루어 집니다.</p>

<p>하지만 비회원이 쓴 원글의 비밀번호를 입력해도 조회 되지 않으며 소스를 분석해본바 해당 글의 비밀번호만 확인 하고 있었습니다.(답글은 관리자 로그인해 쓴 글이므로 비번이 존재하지 않음)</p>

<p> </p>

<p>원글의 비번으로 조회 가능하게 소스를 수정 했고 아직 별다른 오류는 발견되지 않은거 같은데 확인 부탁 드립니다.</p>

<p> </p>

<p>KBoardBuilder.class.php</p>

<p> </p>

<pre class="brush:php;toolbar:false;">

180 public function builderDocument(){
181        global $user_ID;
        $userdata = get_userdata($user_ID);
        $url = new KBUrl();

        $content = new KBContent($this-&gt;board_id);
        $content-&gt;initWithUID($this-&gt;uid);

        $skin_path = KBOARD_URL_PATH . "/skin/$this-&gt;skin";
        $board = $this-&gt;board;

        if(!$this-&gt;board-&gt;isReader($content-&gt;member_uid, $content-&gt;secret) &amp;&amp; $content-&gt;notice != 'true'){
            if($this-&gt;board-&gt;permission_write=='all' &amp;&amp; ($this-&gt;board-&gt;permission_read=='all' || $this-&gt;board-&gt;permission_read=='author')){

                // ############ [start] : 비밀글의 답글 조회 -&gt; 원글 비밀번호로 확인 #############
                $parent = new KBContent();
                $parent-&gt;initWithUID($content-&gt;parent_uid);
                if($parent-&gt;secret=='true' &amp;&amp; !$content-&gt;notice &amp;&amp; ($this-&gt;board-&gt;isEditor($parent-&gt;member_uid) || $this-&gt;board-&gt;isConfirm($parent-&gt;password, $parent-&gt;uid))) $content-&gt;password = $parent-&gt;password;
                // ############ [end] : 비밀글의 답글 조회 -&gt; 원글 비밀번호로 확인 ############


                if(!$this-&gt;board-&gt;isConfirm($content-&gt;password, $content-&gt;uid)){
                    include KBOARD_DIR_PATH . "/skin/$this-&gt;skin/confirm.php";
                }
                else{
                    $allow_document = true;
                }
            }
            else if(!$user_ID){
                die('&lt;script&gt;alert("'.__('Please Log in to continue.', 'kboard').'");location.href="'.wp_login_url().'";&lt;/script&gt;');
            }
            else{
                die('&lt;script&gt;alert("'.__('You do not have permission.', 'kboard').'");history.go(-1);&lt;/script&gt;');
            }
        }</pre>

<p> </p>

<p> </p>
]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[좋은 정보 감사합니다.

답글 기능이 적용된지 얼마 안되어 문제들이 조금 있습니다.

https://github.c...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/2838</link>
			<description><![CDATA[<p>좋은 정보 감사합니다.</p>

<p>답글 기능이 적용된지 얼마 안되어 문제들이 조금 있습니다.</p>

<p><a href="https://github.com/cosmosfarm/KBoard-wordpress-plugin/blob/behind/plugins/kboard/skin/default/editor.php" target="_blank">https://github.com/cosmosfarm/KBoard-wordpress-plugin/blob/behind/plugins/kboard/skin/default/editor.php</a></p>

<p>위 주소는 문제가 일부 해결된 최신버전 스킨의 editor.php 파일 소스 코드 입니다.</p>

<p>위 editor.php 파일의 코드와</p>

<p>본문에 남겨주신 코드를 종합하여 나은 방법으로 최적화 하겠습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 10 Apr 2014 09:38:56 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>