비회원일경우 한줄방명록에서 정상적인접근이 아닐때ㅡㅡ;; 정보
비회원일경우 한줄방명록에서 정상적인접근이 아닐때ㅡㅡ;;본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : http://fgwoori.com/bbs/board.php?bo_table=memo
게시판 다운받아 적용하기가 무섭군요ㅡㅡ;;;
전부 잘못된 접근이라고하고 게시판 소스 만지는것도 힘들도...몇일째 밤세 고치고 또 고치고...
노동도 노동이지만 정신적으로 피곤하네요ㅠㅜ
연후아빠님의 한줄방명록 스킨....(http://sir.co.kr/bbs/tb.php/g4_skin/43303/ac54911d75dc9e795c1974759625c03d)를 다운받아 적용했는데...
비회원일경우 글을 쓰면 정상적인 접근이 아니라고 합니다...
이건 다른 게시판과 달리 어딜 수정해야할지 모르겠습니다..
도와주세요~
<META http-equiv=Content-Type content="text/html; charset=euc-kr">
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./norobot.inc.php");
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 9;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
if ($member[mb_id])
$bigo="100%";
else $bigo="50%";
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.wr_subject.value == '이곳에 메모를 입력하세요' ) f.wr_subject.value = ''; bReset = false; }
}
</script>
<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<!-- 1분단위로 자동 갱신시키려면 var limit="0:300"을 var limit="0:60"으로 수정 -->
<!--새로고침
<script language="javascript">
var limit="0:300"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
// if (curmin!=0)
// curtime=curmin+" minutes and "+cursec+"초 후에 자동으로 페이지를 새로고침 합니다!"
// else
// curtime=cursec+"초 후에 자동으로 페이지를 새로고침 합니다!"
// window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
</script>
새로고침끝-->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
<table width="100%" align="center" cellpadding="0" cellspacing="0">
<form name="fwrite" method="post" action="./write_update.php" enctype="multipart/form-data" autocomplete="off">
<input type=hidden name=null>
<input type=hidden name=w value="">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<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 width="4" height="25" bgcolor="#EEEEEE"></td>
<td width="50" align="center" bgcolor="#EEEEEE"><font color='#000000'>글입력</font></td>
<td align="center" bgcolor="#EEEEEE">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left:5px;">
<? if ($is_norobot) { ?>
<input type=hidden name=wr_key value="<?=$norobot_key?>">
<? } ?>
<INPUT class=ed style="width:99%;" name=wr_subject itemname="제목" required value='이곳에 메모를 입력하세요' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);' maxlength=<?=$board[bo_subject_len]/2?>></td>
<?if (!$member[mb_id]) { ?>
<td width="31"><div align="right">이름 </div></td>
<td width="76"> <INPUT class=ed maxLength=20 size=10 name=wr_name itemname="이름" required value="<?=$member[name]?>"></td>
<INPUT class=ed type=hidden maxLength=20 size=10 name=wr_password itemname="패스워드" >
</tr>
<?}?>
</table>
</td>
<td width="50" bgcolor="#EEEEEE" style="padding-left:5px;"><INPUT type=image id="btn_submit" src="<?=$board_skin_path?>/img/write_btn.gif" border=0 accesskey='s'></td>
<td width="4" bgcolor="#EEEEEE"></td>
</tr>
</form>
</table>
<!-- 제목 -->
<table width="100%" cellspacing="0" cellpadding="0">
<form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<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="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<!-- <tr <? if ($list[$i][is_notice]) { echo "bgcolor='#F9FBFB'"; } else { echo " onmouseover=\"this.style.backgroundColor='#EEEEEE';return true;\" onMouseOut=\"this.style.backgroundColor='';return true;\""; }?>> -->
<tr>
<td width="12" ><img src="<?=$board_skin_path?>/img/ble.gif" hspace="6"></td>
<td style='word-break:break-all;' height="25">
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
if ($list[$i][is_notice])
echo "<font color='#2C8CB9'><strong>{$list[$i][subject]}</strong></font>";
else
echo "{$list[$i][subject]}";
if ($list[$i][comment_cnt])
echo " <span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
echo $nobr_end;
?>
</td>
<td width="80" align="center" nowrap><?=$list[$i][name]?></td>
<td width="50" align="center"><?=$list[$i][datetime2]?></td>
<? if (($member[mb_id] && ($member[mb_id] == $write[mb_id])) || $is_admin) { ?>
<td width="40" align="center"><a href="javascript:del('./delete.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&page=');" title="삭제하기"><img src="<?=$board_skin_path?>/img/delete_btn.gif" alt="삭제" vspace="5" border="0" align="absmiddle" title="삭제하기"></a><? } ?>
</tr>
<tr>
<td colspan="5" height="1" background="<?=$board_skin_path?>/img/dot_bg.gif"></td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' align=center>게시물이 없습니다.</td></tr>"; } ?>
</form>
</table>
</td></tr></table>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
<!-- 페이지 -->
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
오류 주소 : http://fgwoori.com/bbs/board.php?bo_table=memo
게시판 다운받아 적용하기가 무섭군요ㅡㅡ;;;
전부 잘못된 접근이라고하고 게시판 소스 만지는것도 힘들도...몇일째 밤세 고치고 또 고치고...
노동도 노동이지만 정신적으로 피곤하네요ㅠㅜ
연후아빠님의 한줄방명록 스킨....(http://sir.co.kr/bbs/tb.php/g4_skin/43303/ac54911d75dc9e795c1974759625c03d)를 다운받아 적용했는데...
비회원일경우 글을 쓰면 정상적인 접근이 아니라고 합니다...
이건 다른 게시판과 달리 어딜 수정해야할지 모르겠습니다..
도와주세요~
<META http-equiv=Content-Type content="text/html; charset=euc-kr">
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./norobot.inc.php");
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 9;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
if ($member[mb_id])
$bigo="100%";
else $bigo="50%";
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.wr_subject.value == '이곳에 메모를 입력하세요' ) f.wr_subject.value = ''; bReset = false; }
}
</script>
<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<!-- 1분단위로 자동 갱신시키려면 var limit="0:300"을 var limit="0:60"으로 수정 -->
<!--새로고침
<script language="javascript">
var limit="0:300"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
// if (curmin!=0)
// curtime=curmin+" minutes and "+cursec+"초 후에 자동으로 페이지를 새로고침 합니다!"
// else
// curtime=cursec+"초 후에 자동으로 페이지를 새로고침 합니다!"
// window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
</script>
새로고침끝-->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
<table width="100%" align="center" cellpadding="0" cellspacing="0">
<form name="fwrite" method="post" action="./write_update.php" enctype="multipart/form-data" autocomplete="off">
<input type=hidden name=null>
<input type=hidden name=w value="">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<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 width="4" height="25" bgcolor="#EEEEEE"></td>
<td width="50" align="center" bgcolor="#EEEEEE"><font color='#000000'>글입력</font></td>
<td align="center" bgcolor="#EEEEEE">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left:5px;">
<? if ($is_norobot) { ?>
<input type=hidden name=wr_key value="<?=$norobot_key?>">
<? } ?>
<INPUT class=ed style="width:99%;" name=wr_subject itemname="제목" required value='이곳에 메모를 입력하세요' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);' maxlength=<?=$board[bo_subject_len]/2?>></td>
<?if (!$member[mb_id]) { ?>
<td width="31"><div align="right">이름 </div></td>
<td width="76"> <INPUT class=ed maxLength=20 size=10 name=wr_name itemname="이름" required value="<?=$member[name]?>"></td>
<INPUT class=ed type=hidden maxLength=20 size=10 name=wr_password itemname="패스워드" >
</tr>
<?}?>
</table>
</td>
<td width="50" bgcolor="#EEEEEE" style="padding-left:5px;"><INPUT type=image id="btn_submit" src="<?=$board_skin_path?>/img/write_btn.gif" border=0 accesskey='s'></td>
<td width="4" bgcolor="#EEEEEE"></td>
</tr>
</form>
</table>
<!-- 제목 -->
<table width="100%" cellspacing="0" cellpadding="0">
<form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<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="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<!-- <tr <? if ($list[$i][is_notice]) { echo "bgcolor='#F9FBFB'"; } else { echo " onmouseover=\"this.style.backgroundColor='#EEEEEE';return true;\" onMouseOut=\"this.style.backgroundColor='';return true;\""; }?>> -->
<tr>
<td width="12" ><img src="<?=$board_skin_path?>/img/ble.gif" hspace="6"></td>
<td style='word-break:break-all;' height="25">
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
if ($list[$i][is_notice])
echo "<font color='#2C8CB9'><strong>{$list[$i][subject]}</strong></font>";
else
echo "{$list[$i][subject]}";
if ($list[$i][comment_cnt])
echo " <span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
echo $nobr_end;
?>
</td>
<td width="80" align="center" nowrap><?=$list[$i][name]?></td>
<td width="50" align="center"><?=$list[$i][datetime2]?></td>
<? if (($member[mb_id] && ($member[mb_id] == $write[mb_id])) || $is_admin) { ?>
<td width="40" align="center"><a href="javascript:del('./delete.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&page=');" title="삭제하기"><img src="<?=$board_skin_path?>/img/delete_btn.gif" alt="삭제" vspace="5" border="0" align="absmiddle" title="삭제하기"></a><? } ?>
</tr>
<tr>
<td colspan="5" height="1" background="<?=$board_skin_path?>/img/dot_bg.gif"></td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' align=center>게시물이 없습니다.</td></tr>"; } ?>
</form>
</table>
</td></tr></table>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
<!-- 페이지 -->
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
댓글 전체
나도 고민중인데 누가아느분 없나요? 4.3 으로 변화 후에 나타나는 현상같은데