보안서버 등록후
글쓰기나 로그인을 하면
/board/bbs/board.php?bo_table=I01&wr_id=
이렇게 안나오고 아래와 같이 나와서 페이지를 찾을 수 없다고 합니다.
/boardboard.php?bo_table=I01&wr_id=
다시 접속해보면
글등록되어 있고 로그인도 되어 있습니다.
무엇이 문제일까요 ㅠㅠ
답변 3개 / 댓글 2개
./bbs/write_update.php
아래 보면
// 사용자 코드 실행
@include_once($board_skin_path.'/write_update.skin.php');
@include_once($board_skin_path.'/write_update.tail.skin.php');
delete_cache_latest($bo_table);
if ($file_upload_msg)
alert($file_upload_msg, G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr);
else
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr);
?>
여기서amp;wr_id='.$wr_id.$qstr); 이 문제 가되는거라는
./skin/board/적용스킨
의
write.skin.php
파일에보면 아래와긑은 것들이 있는데 내용이 넘어가지안아서나오는현상같아요
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
답변에 대한 댓글 1개
늦게 확인했습니다.
답변감사합니다.
도통 무슨 말씀이신지 모르겠어요. ㅠㅠ
전혀 모르는 부분이라 도움 좀 주실 수있을까요?
<?if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가?> <div id="test"> <? if ($is_admin && $w != "") { ?> <table cellpadding="0" cellspacing="0" width="<?=$width?>" align="center"><tr><td>등록일시 : <?=$write[wr_datetime]?></td></tr></table><? } ?> <table cellpadding="0" cellspacing="0" width="<?=$width?>" align="center"> <form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;"><input type=hidden name=null> <input type=hidden name=w value="<?=$w?>"><input type=hidden name=bo_table value="<?=$bo_table?>"><input type=hidden name=wr_id value="<?=$wr_id?>"><input type=hidden name=sca value="<?=$sca?>"><input type=hidden name=sfl value="<?=$sfl?>"><input type=hidden name=stx value="<?=$stx?>"><input type=hidden name=spt value="<?=$spt?>"><input type=hidden name=sst value="<?=$sst?>"><input type=hidden name=sod value="<?=$sod?>"><input type=hidden name=page value="<?=$page?>"> <tr> <td bgcolor="#DFD4CA" height="3"></td></tr><tr> <td style="padding-top:8px; padding-bottom:8px;"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" class="style14" width="140"><b><font color="#C28A50">*</font></b> 이름(단체명) : </td> <td width="10"> </td> <td width="188"><input class="input" name=wr_name itemname="이름(단체명)" required value="<?=$write[wr_name]?>"> </td> <td align="right" class="style14" width="140"><b><font color="#C28A50">*</font></b> 생년월일(사업자번호) : </td> <td width="10"> </td> <td><input class="input" name="wr_1" itemname="생년월일(사업자번호)" required value="<?=$write[wr_1]?>"></td> </tr> </table> </td></tr><tr> <td bgcolor="#D8D8D8" height="1"></td></tr><tr> <td style="padding-top:8px; padding-bottom:8px;"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" class="style14" width="140"><b><font color="#C28A50">*</font></b> 주소 : </td> <td width="10"> </td> <td> <input class="input" size="3" name=wr_5 itemname="우편번호" required value="<?=$write[wr_5]?>" readonly><font color="#666666">-</font><input class="input" size="3" name=wr_6 itemname="우편번호" required value="<?=$write[wr_6]?>" readonly> <a href="javascript:;" onclick="win_zip('fwrite', 'wr_5', 'wr_6', 'wr_7', 'wr_8');"><img align="absmiddle" border="0" height="18" hspace="2" src="<?=$board_skin_path?>/img/btn_post.gif" width="85" border="0"></a> <br><input class="input" size="60" name=wr_7 itemname="주소" required value="<?=$write[wr_7]?>"> <br><input class="input" size="50" name=wr_8 itemname="상세주소" required value="<?=$write[wr_8]?>"> <span class="style13"> (나머지 상세주소)</span> </td> </tr> </table> </td></tr><tr> <td bgcolor="#D8D8D8" height="1"></td></tr><?$p_three = explode("-",$write[wr_3]);$three01 = $p_three[0];$three02 = $p_three[1];$three03 = $p_three[2]; $p_four = explode("-",$write[wr_4]);$four01 = $p_four[0];$four02 = $p_four[1];$four03 = $p_four[2];?><tr> <td style="padding-top:8px; padding-bottom:8px;"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" class="style14" width="140"><b><font color="#C28A50">*</font></b> 연락처 : </td> <td width="10"> </td> <td class="style13">(전화번호) <input class="input" size="4" maxlength="4" minlength="2" numeric name=three01 itemname="전화번호" required value="<?=$three01?>"> <font color="#666666">-</font> <input class="input" size="4" maxlength="4" minlength="3" numeric name=three02 itemname="전화번호" required value="<?=$three02?>"><font color="#666666">-</font> <input class="input" size="4" maxlength="4" minlength="4" numeric name=three03 itemname="전화번호" required value="<?=$three03?>"> <font color="#666666"> </font>(휴대전화) <input class="input" size="4" maxlength="3" minlength="3" numeric name=four01 itemname="휴대전화" required value="<?=$four01?>"> <font color="#666666">-</font> <input class="input" size="4" maxlength="4" minlength="3" numeric name=four02 itemname="휴대전화" required value="<?=$four02?>"><font color="#666666">-</font> <input class="input" size="4" maxlength="4" minlength="4" numeric name=four03 itemname="휴대전화" required value="<?=$four03?>"> </td> </tr> </table> </td></tr><tr> <td bgcolor="#D8D8D8" height="1"></td></tr><tr> <td style="padding-top:8px; padding-bottom:8px;"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" class="style14" width="140"><b><font color="#C28A50">*</font></b> E-mail : </td> <td width="10"> </td> <td> <input class="input" size="24" name=wr_email email itemname="이메일" value="<?=$write[wr_email]?>"> </td> </tr> </table> </td></tr><tr> <td bgcolor="#D8D8D8" height="1"></td></tr> <tr> <td style="padding-top:8px; padding-bottom:8px;"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" class="style14" width="140"><!--<b><font color="#C28A50">*</font></b>--> 후원항목 :</td> <td width="10"> </td> <td width="150"> <input type="radio" name="nine06" value="정기" <? if ($write[wr_2]=="정기" || $write[wr_2]=="") echo "checked"; ?>>정기 <input type="radio" name="nine06" value="수시" <? if ($write[wr_2]=="수시") echo "checked"; ?>>수시 </td> <td colspan="3"> </td> </tr> </table> </td></tr><tr> <td bgcolor="#D8D8D8" height="1"></td></tr><tr> <td style="padding-top:8px; padding-bottom:8px;"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" class="style14" width="140"><!--<b><font color="#C28A50">*</font></b>--> 후원금액 :</td> <td width="10"> </td> <td> <table cellpadding="0" cellspacing="0" width="420"> <tr> <td width="20%"><input type="radio" name="wr_9" value="1" <? if ($write[wr_9]=="1" || $write[wr_9]=="") echo "checked"; ?>>월 1만원</td> <td width="20%"><input type="radio" name="wr_9" value="2" <? if ($write[wr_9]=="2") echo "checked"; ?>>월 2만원</td> <td width="20%"><input type="radio" name="wr_9" value="3" <? if ($write[wr_9]=="3") echo "checked"; ?>>월 3만원</td> <td width="40%"><input type="radio" name="wr_9" value="기타" <? if ($write[wr_9]=="기타") echo "checked"; ?>>기타 (월 <input class="input" name="wr_10" size="2" value="<?=$write[wr_10]?>"> 만원)</td> </tr> </table> </td> </tr> </table> </td></tr><tr> <td bgcolor="#D8D8D8" height="1"></td></tr><tr> <td style="padding-top:8px; padding-bottom:8px;"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" class="style14" width="140"><!--<b><font color="#C28A50">*</font></b>--> 이체일 :</td> <td width="10"> </td> <td> <table cellpadding="0" cellspacing="0" width="420"> <tr> <td width="20%"><input type="radio" name="wr_link1" value="1" <? if ($write[wr_link1]=="1" || $write[wr_link1]=="") echo "checked"; ?>>매월 1일</td> <td width="20%"><input type="radio" name="wr_link1" value="10" <? if ($write[wr_link1]=="10") echo "checked"; ?>>매월 10일</td> <td width="20%"><input type="radio" name="wr_link1" value="20" <? if ($write[wr_link1]=="20") echo "checked"; ?>>매월 20일</td> <td width="40%"><input type="radio" name="wr_link1" value="기타" <? if ($write[wr_link1]=="기타") echo "checked"; ?>>기타 (매월 <input class="input" name="wr_link2" size="2" value="<?=$write[wr_link2]?>"> 일)</td> </tr> </table> </td> </tr> </table> </td></tr><tr> <td bgcolor="#D8D8D8" height="1"></td></tr><tr> <td style="padding-top:8px; padding-bottom:8px;"> <table align="center" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" class="style14" width="140"><!--<b><font color="#C28A50">*</font></b>--> 후원방법 :</td> <td width="10"> </td> <td> <table cellpadding="0" cellspacing="0" width="420"> <tr> <td colspan="2" height="25"> 거래은행 방문(또는 인터넷 뱅킹) 후 자동이체 신청 </td> </tr> <tr> <td bgcolor="#D8D8D8" colspan="2"><img border="0" height="1" src="../images/blank.gif" width="1"></td> </tr> <tr> <td width="50%"> <input type="radio" name="wr_subject" value="기업은행(011-892-4777)" <? if ($write[wr_subject]=="기업은행(011-892-4777)" || $write[wr_subject]=="") echo "checked"; ?>>기업은행(011-892-4777) </td> <td width="50%"> <input type="radio" name="wr_subject" value="농협은행(011-892-47777-09)" <? if ($write[wr_subject]=="농협은행(011-892-47777-09)") echo "checked"; ?>>농협은행(011-892-47777-09) </td> </tr> </table> </td> </tr> </table> </td></tr><tr> <td bgcolor="#D8D8D8" height="1"></td></tr><tr> <td style="padding-top:8px; padding-bottom:8px;"> <table align="center" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" class="style14" width="140"><!--<b><font color="#C28A50">*</font></b>--> 개인정보수집 동의 :</td> <td width="10"> </td> <td> 가입해주신 정보는 후원 외 다른 용도로 쓰이지 않습니다.<br>후원을 위한 개인정보수집에 동의하십니까?<br> <input type=checkbox value=1 name=agree id=agree> 예, 동의합니다. </td> </tr> </table> </td></tr><tr> <td bgcolor="#D8D8D8" height="1"></td></tr><!--<tr> <td style="padding-top:8px; padding-bottom:8px;"> <table align="center" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" class="style14" width="140"> 기타문의사항 :</td> <td width="10"> </td> <td class="style13"> <textarea cols="33" name="wr_content" rows="5" style="border-width:1; border-color:rgb(187,187,187); border-style:solid; width:100%;"><?=$content?></textarea> </td> </tr> </table> </td></tr><tr> <td bgcolor="#D8D8D8" height="1"></td></tr>--> <tr> <td bgcolor="#DFD4CA" height="5"></td></tr></table> <table align="center" border="0" cellpadding="0" cellspacing="0" width="<?=$width?>"><tr> <td align="center"> <br>본인은 한국무용지도자협회 후원 회원이 되고자 위와 같이 신청합니다.<br><span class=style11>후원하신 정기후원금은 연말정산시 소득 공제 혜택을 받을 수 있습니다. </span> </td></tr></table> </div> <table align="center" border="0" cellpadding="0" cellspacing="0" style="margin-top:20px;"><tr> <td> <div align="center"> <table align="center" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top" height="40"><input type="image" id="btn_submit" src="<?=$board_skin_path?>/img/btn_ok.gif" border=0 accesskey='s' align="absmiddle"></td> <? if (!$is_admin) { ?> <td valign="top" height="45" style="padding-top:1"> <img src="<?=$board_skin_path?>/img/btn_cancel.gif" align="absmiddle" onClick="history.back();" style="cursor:hand"></td> <? } else { ?> <td valign="top" height="45" style="padding-top:1"> <a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0 align="absmiddle"></a> <input type="button" value="인쇄하기" onClick="javascript:bodyPrint()" style="cursor:pointer;" /> </td> <? } ?> </tr> </table> </div> </td></tr></form></table> <script type="text/javascript"> var md5_norobot_key = ''; </script><script type="text/javascript" src="<?="$g4[path]/js/prototype.js"?>"></script><script type="text/javascript"> // 인쇄하기 스크립트function bodyPrint(){ var initBody = document.body.innerHTML; window.onbeforeprint = function(){ document.body.innerHTML = document.getElementById('test').innerHTML; }; window.onafterprint = function(){ document.body.innerHTML = initBody ; }; window.print();} function imageClick() { var url = "<?=$g4[bbs_path]?>/kcaptcha_session.php"; var para = ""; var myAjax = new Ajax.Request( url, { method: 'post', asynchronous: true, parameters: para, onComplete: imageClickResult });} function imageClickResult(req) { var result = req.responseText; var img = document.createElement("IMG"); img.setAttribute("src", "<?=$g4[bbs_path]?>/kcaptcha_image.php?t=" + (new Date).getTime()); document.getElementById('kcaptcha_image').src = img.getAttribute('src'); md5_norobot_key = result;} <? if (!$is_member) { ?>Event.observe(window, "load", imageClick);<? } ?> with (document.fwrite) { if (typeof(wr_name) != "undefined") wr_name.focus();} function fwrite_submit(f) { if (!f.agree.checked) { alert("개인정보수집에 동의해야 신청하실 수 있습니다."); f.agree.focus(); return false; } document.getElementById('btn_submit').disabled = true; <? if ($g4[https_url]) echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';"; else echo "f.action = './write_update.php';"; ?> return true;}</script> <script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script><script language="JavaScript"> window.onload=function() { drawFont(); } </script>
게시판 쓰기 스킨 에 보면요 내용처리하는 페이지 가 지정 되어 있는데요
거기에 보면 마지막에 DB 및 파일 처리 하고 돌아가는 페이지 지정 하는 부분 이있어요 거기서 경로 설정을 if 를
이용해서 처리하시면되요
답변에 대한 댓글 1개
답변감사합니다.
도통 무슨 말씀이신지 모르겠어요. ㅠㅠ
전혀 모르는 부분이라 도움 좀 주실 수있을까요?
답변을 작성하려면 로그인이 필요합니다.
./bbs/write_update.php
여기를 열어보니
@include_once("$board_skin_path/write_update.tail.skin.php");
if ($g4[https_url])
$https_url = "$g4[url]/$g4[bbs]";
else
$https_url = ".";
if ($file_upload_msg)
alert($file_upload_msg, "{$https_url}/board.php?bo_table=$bo_table&wr_id=$wr_id&page=$page" . $qstr);
else
goto_url("{$https_url}/board.php?bo_table=$bo_table&wr_id=$wr_id&page=$page" . $qstr);
?>
에서
/board.php?bo_table=$bo_table&wr_id=$wr_id&page=$page 이부분들을
/board/bbs/board.php?bo_table=$bo_table&wr_id=$wr_id&page=$page 변경하니 잘 됩니다.
감사합니다. ㅠㅠ
/board/bbs/board.php?bo_table=I01&wr_id=
이렇게 안나오고 아래와 같이 나와서 페이지를 찾을 수 없다고 합니다.
/boardboard.php?bo_table=I01&wr_id=