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

게시판 수정 할수 있게 도와주세요^^;; 채택완료

하늘제사장 10년 전 조회 4,067

http://gimdaeman.dothome.co.kr/gnuboard4/bbs/board.php?bo_table=Memo">http://gimdaeman.dothome.co.kr/gnuboard4/bbs/board.php?bo_table=Memo ​ 위 스킨을 사용하려고 하는데요. 비회원도 바로 사용할수있게 하고싶습니다 가능할까요?

 

</strong><span style="font-size: 14.6666669845581px; line-height: 1.5;">​</span><span style="font-size: 14.6666669845581px; line-height: 1.5;"><?</span></p><p style="font-size: 14.6666669845581px;">if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가</p><p style="font-size: 14.6666669845581px;">if (!$is_member) {</p><p style="font-size: 14.6666669845581px;">    $write_error = "readonly onclick=\"alert('비회원은 하단의 일반글 등록을 이용해주세요.'); return false;\"";</p><p style="font-size: 14.6666669845581px;">}</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">if ($w == "") {</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>$is_name = false;</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>$is_password = false;</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>if (!$member[mb_id] || ($is_admin && $w == 'u' && $member[mb_id] != $write[mb_id])) {</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span>$is_name = true;</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>    $is_password = true;</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>}</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>$password_required = "required";</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>$content = $board[bo_insert_content];</p><p style="font-size: 14.6666669845581px;">}</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">if (!$subject) $subject = "제목";</p><p style="font-size: 14.6666669845581px;">if (!$wr_1) $write[wr_1] = "1";</p><p style="font-size: 14.6666669845581px;">?></p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;"><script type="text/javascript"></p><p style="font-size: 14.6666669845581px;">function show() { </p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>document.getElementById('emoticon').style.visibility = "visible" ;</p><p style="font-size: 14.6666669845581px;">}</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">function hide() { </p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>document.getElementById('emoticon').style.visibility = "hidden" ;</p><p style="font-size: 14.6666669845581px;">} </p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">function insertSmiley(emo){</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>var skin_path = "<?=$board_skin_path?>";</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>if(document.fwrite) {</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span>document.fwrite.mainimage.src = skin_path + "/emoticons/" + emo + ".gif";</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span>document.fwrite.wr_1.value = emo;</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span>hide();</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span>}</p><p style="font-size: 14.6666669845581px;">}</p><p style="font-size: 14.6666669845581px;"></script></p><p style="font-size: 14.6666669845581px;"><div style="height:10px; line-height:1px; font-size:1px;"> </div></p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;"><form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;"></p><p style="font-size: 14.6666669845581px;"><input type=hidden name=w          value=""></p><p style="font-size: 14.6666669845581px;"><input type=hidden name=bo_table   value="<?=$bo_table?>"></p><p style="font-size: 14.6666669845581px;"><input type=hidden name=wr_id      value=""></p><p style="font-size: 14.6666669845581px;"><input type=hidden name=page       value="<?=$page?>"></p><p style="font-size: 14.6666669845581px;"><input type=hidden name=wr_subject value="<?=$subject?>"></p><p style="font-size: 14.6666669845581px;"><input type=hidden name=wr_1 value="<?=$write[wr_1]?>"></p><p style="font-size: 14.6666669845581px;"><? if ($is_password) { ?><input type="hidden" name="wr_password"  value="<?=$norobot_str?>"><? } ?></p><p style="font-size: 14.6666669845581px;"><? if ($is_norobot) { ?><input type="hidden" name="wr_key"  value="<?=$norobot_key?>" <?=$write_error?>><? } ?></p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;"><table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0" style="border:3px solid #f13427; background-color:#fafafa;"></p><p style="font-size: 14.6666669845581px;"><col width="50" /></p><p style="font-size: 14.6666669845581px;"><col /></p><p style="font-size: 14.6666669845581px;"><col width="78" /></p><p style="font-size: 14.6666669845581px;"><tr></p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span><td onClick="show()" valign="middle"></p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span><img name="mainimage" src='<?=$board_skin_path?>/emoticons/<?=$write[wr_1]?>.gif' style="cursor:pointer; border:2px solid #fafafa;">
</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span><div id="emoticon" onmouseover="show();" onMouseOut="hide();" style="position:absolute; z-index:0; visibility:hidden;"></p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span><table border="0" cellpadding="0" cellspacing="0" style="background-color:#FFFFFF; border:3px solid #dadada;"></p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span><? </p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span>for($k=1; $k<=132; $k++){</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">			</span>$list_emo = ($k-1) % 12;</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span></p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">			</span>if(!$list_emo) echo "\n<tr>";</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">			</span>echo "<td width=50><a onclick=insertSmiley('$k')><img src='$board_skin_path/emoticons/$k.gif' width=50 height=50 border=0 style=cursor:pointer></a></td>";</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span>} </p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span>if(!$list_emo) echo "\n<td> </td></tr>";</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span>?></p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">		</span></table></p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span></div></td></p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span><td style="padding:8px 10px 10px 1px;"></p><p style="font-size: 14.6666669845581px;">    <input id="wr_content" name="wr_content" class="tx" style='width:100%; word-break:break-all; font-size:13px; height:31px; padding:7px 0 7px 0;' itemname="내용" required</p><p style="font-size: 14.6666669845581px;"><span class="Apple-tab-span" style="white-space: pre;">	</span><? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?> <?=$write_error?>><?=$content?></input></p><p style="font-size: 14.6666669845581px;">    <? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_content', 'char_count'); </script><? } ?></p><p style="font-size: 14.6666669845581px;">    </td></p><p style="font-size: 14.6666669845581px;">    <td><input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write_submit_small.gif" border='0' accesskey='s' style="vertical-align:bottom;" <?=$write_error?>></td></p><p style="font-size: 14.6666669845581px;"></tr></p><p style="font-size: 14.6666669845581px;"></table></p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;"><table width="<?=$width?>" align="center" border="0" cellspacing="0" cellpadding="0" background="<?=$board_skin_path?>/img/box_shadow.gif"></p><p style="font-size: 14.6666669845581px;"><tr><td height="20"></td></tr></p><p style="font-size: 14.6666669845581px;"></table></p><p style="font-size: 14.6666669845581px;"></form></p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;"><script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script></p><p style="font-size: 14.6666669845581px;"><script type="text/javascript"></p><p style="font-size: 14.6666669845581px;">function fwrite_submit(f)</p><p style="font-size: 14.6666669845581px;">{</p><p style="font-size: 14.6666669845581px;">    /*</p><p style="font-size: 14.6666669845581px;">    var s = "";</p><p style="font-size: 14.6666669845581px;">    if (s = word_filter_check(f.wr_subject.value)) {</p><p style="font-size: 14.6666669845581px;">        alert("제목에 금지단어('"+s+"')가 포함되어있습니다");</p><p style="font-size: 14.6666669845581px;">        return false;</p><p style="font-size: 14.6666669845581px;">    }</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">    if (s = word_filter_check(f.wr_content.value)) {</p><p style="font-size: 14.6666669845581px;">        alert("내용에 금지단어('"+s+"')가 포함되어있습니다");</p><p style="font-size: 14.6666669845581px;">        return false;</p><p style="font-size: 14.6666669845581px;">    }</p><p style="font-size: 14.6666669845581px;">    */</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">    if (document.getElementById('char_count')) {</p><p style="font-size: 14.6666669845581px;">        if (char_min > 0 || char_max > 0) {</p><p style="font-size: 14.6666669845581px;">            var cnt = parseInt(document.getElementById('char_count').innerHTML);</p><p style="font-size: 14.6666669845581px;">            if (char_min > 0 && char_min > cnt) {</p><p style="font-size: 14.6666669845581px;">                alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");</p><p style="font-size: 14.6666669845581px;">                return false;</p><p style="font-size: 14.6666669845581px;">            }</p><p style="font-size: 14.6666669845581px;">            else if (char_max > 0 && char_max < cnt) {</p><p style="font-size: 14.6666669845581px;">                alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");</p><p style="font-size: 14.6666669845581px;">                return false;</p><p style="font-size: 14.6666669845581px;">            }</p><p style="font-size: 14.6666669845581px;">        }</p><p style="font-size: 14.6666669845581px;">    }</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">    <?</p><p style="font-size: 14.6666669845581px;">    if ($is_dhtml_editor) echo cheditor3('wr_content');</p><p style="font-size: 14.6666669845581px;">    ?></p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">    if (document.getElementById('tx_wr_content')) {</p><p style="font-size: 14.6666669845581px;">        if (!ed_wr_content.outputBodyText()) {</p><p style="font-size: 14.6666669845581px;">            alert('내용을 입력하십시오.');</p><p style="font-size: 14.6666669845581px;">            ed_wr_content.returnFalse();</p><p style="font-size: 14.6666669845581px;">            return false;</p><p style="font-size: 14.6666669845581px;">        }</p><p style="font-size: 14.6666669845581px;">    }</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">    var subject = "";</p><p style="font-size: 14.6666669845581px;">    var content = "";</p><p style="font-size: 14.6666669845581px;">    $.ajax({</p><p style="font-size: 14.6666669845581px;">        url: "<?=$board_skin_path?>/ajax.filter.php",</p><p style="font-size: 14.6666669845581px;">        type: "POST",</p><p style="font-size: 14.6666669845581px;">        data: {</p><p style="font-size: 14.6666669845581px;">            "subject": f.wr_subject.value,</p><p style="font-size: 14.6666669845581px;">            "content": f.wr_content.value</p><p style="font-size: 14.6666669845581px;">        },</p><p style="font-size: 14.6666669845581px;">        dataType: "json",</p><p style="font-size: 14.6666669845581px;">        async: false,</p><p style="font-size: 14.6666669845581px;">        cache: false,</p><p style="font-size: 14.6666669845581px;">        success: function(data, textStatus) {</p><p style="font-size: 14.6666669845581px;">            subject = data.subject;</p><p style="font-size: 14.6666669845581px;">            content = data.content;</p><p style="font-size: 14.6666669845581px;">        }</p><p style="font-size: 14.6666669845581px;">    });</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">    if (subject) {</p><p style="font-size: 14.6666669845581px;">        alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");</p><p style="font-size: 14.6666669845581px;">        f.wr_subject.focus();</p><p style="font-size: 14.6666669845581px;">        return false;</p><p style="font-size: 14.6666669845581px;">    }</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">    if (content) {</p><p style="font-size: 14.6666669845581px;">        alert("내용에 금지단어('"+content+"')가 포함되어있습니다");</p><p style="font-size: 14.6666669845581px;">        if (typeof(ed_wr_content) != "undefined")</p><p style="font-size: 14.6666669845581px;">            ed_wr_content.returnFalse();</p><p style="font-size: 14.6666669845581px;">        else</p><p style="font-size: 14.6666669845581px;">            f.wr_content.focus();</p><p style="font-size: 14.6666669845581px;">        return false;</p><p style="font-size: 14.6666669845581px;">    }</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">    if (typeof(f.wr_key) != 'undefined') {</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">        if (!checkFrm()) {</p><p style="font-size: 14.6666669845581px;">            return false;</p><p style="font-size: 14.6666669845581px;">        }</p><p style="font-size: 14.6666669845581px;">    }</p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">    <?</p><p style="font-size: 14.6666669845581px;">    if ($g4[https_url])</p><p style="font-size: 14.6666669845581px;">        echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";</p><p style="font-size: 14.6666669845581px;">    else</p><p style="font-size: 14.6666669845581px;">        echo "f.action = './write_update.php';";</p><p style="font-size: 14.6666669845581px;">    ?></p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;">    return true;</p><p style="font-size: 14.6666669845581px;">}</p><p style="font-size: 14.6666669845581px;"></script></p><p style="font-size: 14.6666669845581px;"> </p><p style="font-size: 14.6666669845581px;"><script type="text/javascript" src="<?="$g4[path]/js/board.js"?>"></script></p><p><span style="font-size: 14.6666669845581px; line-height: 1.5;"><script type="text/javascript"> window.onload=function() { drawFont(); } </script></span><strong style="color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif; font-size: 12px; line-height: normal;">

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

답변 1개

10년 전

3번~5번째줄에 있는

이 부분을

 

if ($is_guest) {}

 

으로 바꿔주시면 될거 같네요.

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

답변에 대한 댓글 1개

하늘제사장
10년 전
해봤는데 안되네요 ㅠㅠㅠㅠㅠ

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

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

로그인