"정상적인 등록이 아닌거 같습니다".. 라고 나옵니다... 정보
"정상적인 등록이 아닌거 같습니다".. 라고 나옵니다...본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
(방명록 테스트 글을 남겨주시면 도움이 될거 같습니다.^^)
방명록에 글을 등록하려고 하면 관리자에서 되는데,,
일반 게스트로는 "정상적인 등록이 아닌거 같습니다"라고 추측?을하며
글이 등록되지 않습니다.
오류 주소 :
http://www.gracia.kr/bbs/board.php?bo_table=Guest_book
사용하는 소스는
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=78025
특별이 수정한 곳이 없습니다.
다음은 저의 리스트 페이지입니다.
- 관리자 설정은
목록보기/글읽기/글쓰기 모두를 아무나 사용할수 있게 하였으며,
나머지는 관리자만 가능하게 하였습니다.
---------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 8;
$cmt_width = $width - 100;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
if ($member[mb_id]) {
$name = $member[mb_nick];
$email = $member[mb_email];
$homepage = set_http($member[mb_homepage]);
if($is_admin) {
$wr_password = $write[wr_password];
}
}
?>
<style>
<!--
a.text:link, a.text:visited, a.text:active { color:#A8A8A8; text-decoration:none;}
a.text:hover { color:#FFBECC; text-decoration:none;}
.s11 { font-family:Tahoma,Verdana,Helvetica; font-size:11px;}
.color_pink1 { color:#0099ff; }
.color_pink2 { color:#0099CC; }
.color_gray1 { color:#BCBCBC; }
.color_gray2 { color:#999999; }
.ed { background-color:#333333; border:1px solid #111111;}
.tx { background-color:#333333; border:1px solid #111111;
scrollbar-face-color: #FFFFFF;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #FFDEDE;
scrollbar-shadow-color: #FFFFFF;
scrollbar-darkshadow-color: #FFDEDE;
scrollbar-track-color: #FFF6F6;
scrollbar-arrow-color: #FDB6B6;
overflow-x:hidden; overflow-y:auto;}
.vc_pad1 { PADDING-LEFT: 6px; PADDING-top: 5px; PADDING-BOTTOM: 5px; }
.vc_pad2 { PADDING-RIGHT: 6px; PADDING-top: 4px; PADDING-BOTTOM: 4px; }
-->
</style>
<input type=hidden name=w value="<?=$w?>">
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><? include ("$board_skin_path/write.skin.php"); ?></td>
</tr>
<!-- 공지사항 시작 -->
<? if($board[bo_10]) { ?>
<tr><td height="10"></td></tr>
<tr>
<td align="center">
<table width="70%" height="30" cellpadding=0 cellspacing=0 style="border:1 #333333 solid">
<tr>
<td bgcolor=#040000 style="padding:8" <?=$board[bo_9]?>><?=$board[bo_10]?></td>
</tr>
</table>
</td>
</tr>
<? } ?>
<!-- 공지사항 끝 -->
<tr><td height="10"></td></tr>
<tr>
<td align="center">
<!-- 게시물 리스트 시작 -->
<?
$lists = array();
for ($i=0; $i<count($list); $i++) {
$lists[$i] = $list[$i];
}
?>
<? for ($ii=0; $ii < count($lists); $ii++) {
$profile = get_member($lists[$ii][mb_id]);
include "$board_skin_path/inc.list_main.php";
$secret_msg="";
$reply_allow="";
$wr_homepage = set_http($lists[$ii][wr_homepage]);
if($lists[$ii][wr_option]=="secret") {
if($member[mb_id] == $lists[$ii][mb_id] || $is_admin) {
$reply_allow = "yes";
$secret_msg = "<br><br><font color=#FF89A3>(관리자와 글쓴이에게만 보이는 비밀글입니다.)</font>";
$a_update = str_replace("w=u","w=u&mode=secret",$a_update);
} else {
$lists[$ii][wr_content] = "<font color=#FF89A3>글쓴이와 관리자만 볼 수 있습니다.";
if(!$lists[$ii][mb_id]) {
$lists[$ii][wr_content] .= "<br><br> 비회원으로 쓰신 글은 글쓴이확인이 불가능하므로 내용확인이 불가능합니다.";
}
$lists[$ii][wr_content] .= "</font>";
//$lists[$ii][name] = "<font color=#ff0000>secret</font>";
$reply_allow = "no";
$secret_msg = "";
}
}
?>
<table width="<?=$width?>" border="0" cellspacing="0" cellpadding="0" style='table-layout:fixed;'>
<tr>
<td align="center">
<table width="96%" border="0" cellspacing="0" cellpadding="0" style='table-layout:fixed;'>
<form name="fboardlist" method="post" action="" style="margin:0">
<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="">
<tr><td colspan="2" height="1" style="background: url('<?=$board_skin_path?>/img/ver3_bottom_dotline.gif') left;"></td></tr>
<tr>
<td width="80%" height="28" class="s11"> <font class="color_pink2">No.<?=$lists[$ii][num]?></font> <?=$lists[$ii][name]?> <? if ($lists[$ii][wr_homepage] && $reply_allow != "no") { echo "<a href='{$wr_homepage}' target='_blank'><img src='{$g4[path]}/ver3/board/home.gif' border='0'></a>"; } ?></td>
<td width="20%" align="right" class="w_padding3; vc_pad2"><?=$show_update_begin?><?=$a_update?><img src="<?=$board_skin_path?>/img/btn_edit.gif" alt="Update" border="0" align="absmiddle" title="Update"></a><?=$show_update_end?> <?=$show_delete_begin?><?=$a_delete?><img src="<?=$board_skin_path?>/img/btn_del.gif" alt="Delete" border="0" align="absmiddle" title="Delete"></a><?=$show_delete_end?></td>
</tr>
<tr><td colspan="2" height="1" style="background: url('<?=$board_skin_path?>/img/ver3_bottom_dotline.gif') left;"></td></tr>
<tr><td height=6 colspan=2></td></tr>
<tr>
<td width="100%" colspan="2" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120" align="center" valign="top"><?
// 링크
if (($lists[$ii][mb_id] == "ganel" || $lists[$ii][mb_id] == "chie00") && $lists[$ii][wr_option]!="secret") {
echo "<img src='{$board_skin_path}/icon/{$lists[$ii][mb_id]}.gif'>";
}
else if ($lists[$ii][link][1]) {
echo "<img src='{$board_skin_path}/icon/{$lists[$ii][wr_link1]}.gif'>";
}
else {
echo "<img src='{$board_skin_path}/icon/icon1.gif'>";
}
?></td>
<td class="vc_pad1"><? echo nl2br(url_auto_link($lists[$ii][wr_content])); ?><? echo $secret_msg; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="18" colspan="2" align="right" class="s11 color_pink2"><?=date("F j, Y, g:i a", strtotime($lists[$ii][wr_datetime]))?> <? if ($is_ip_view) { echo "| {$lists[$ii][wr_ip]} "; } ?><? if($is_admin || $lists[$ii][comment_cnt]) { ?>| <? if($is_admin) { ?><a href="javascript:comment_wri('wri', '<?=$lists[$ii][wr_id]?>');"><? } ?><font class="s11 color_pink1"><? if($lists[$ii][comment_cnt]) { ?>Reply <?=$lists[$ii][comment_cnt]?> <? } else { ?>Reply <? } ?></font><? if($is_admin) { ?></a><? } ?><? } ?></td>
</tr>
</form>
<tr>
<td colspan="2" align=right>
<table width="88%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- 게시물 내용 보기 끝 -->
<?
$wr_id = $lists[$ii][wr_id];
include ("$board_skin_path/view_comment.php");
?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="2" height="1"></td></tr>
</table>
</td>
</tr>
<tr>
<td height="16"></td>
</tr>
</table>
<?
}
// 필터
echo "<script language='javascript'> var g4_cf_filter = '$config[cf_filter]'; </script>\n";
echo "<script language='javascript' src='$g4[path]/js/filter.js'></script>\n";
if (!$member[mb_id]) // 비회원일 경우에만
echo "<script language='javascript' src='$g4[path]/js/md5.js'></script>\n";
?>
<? if (count($lists) == 0) { echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td align=center colspan='2' height=100 class='content contentbg'>자료가 없습니다.</td></tr></table>"; } ?>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30 valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 title='Befor Search'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' title='begin'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' title='before'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' title='next'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' title='end'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font class=\"s11 color_gray1\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font class=\"s11 color_pink1\">$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 title='Next Search'></a>"; } ?>
</td>
</tr>
</table>
<table width='100%' cellpadding=0 cellspacing=0>
<td height="2" bgcolor="#999999"></td>
</table>
<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<td width="50%" align="right">
<!-- <input type="hidden" name=sfl value='wr_subject||wr_content'><input type="hidden" name=sop value="and">
<input name=stx maxlength=15 size=20 itemname="검색어" required value="<?=$stx?>" class="ed">
<input type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle>--></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</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>
<!--<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</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://www.gracia.kr/bbs/board.php?bo_table=Guest_book
사용하는 소스는
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=78025
특별이 수정한 곳이 없습니다.
다음은 저의 리스트 페이지입니다.
- 관리자 설정은
목록보기/글읽기/글쓰기 모두를 아무나 사용할수 있게 하였으며,
나머지는 관리자만 가능하게 하였습니다.
---------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 8;
$cmt_width = $width - 100;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
if ($member[mb_id]) {
$name = $member[mb_nick];
$email = $member[mb_email];
$homepage = set_http($member[mb_homepage]);
if($is_admin) {
$wr_password = $write[wr_password];
}
}
?>
<style>
<!--
a.text:link, a.text:visited, a.text:active { color:#A8A8A8; text-decoration:none;}
a.text:hover { color:#FFBECC; text-decoration:none;}
.s11 { font-family:Tahoma,Verdana,Helvetica; font-size:11px;}
.color_pink1 { color:#0099ff; }
.color_pink2 { color:#0099CC; }
.color_gray1 { color:#BCBCBC; }
.color_gray2 { color:#999999; }
.ed { background-color:#333333; border:1px solid #111111;}
.tx { background-color:#333333; border:1px solid #111111;
scrollbar-face-color: #FFFFFF;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #FFDEDE;
scrollbar-shadow-color: #FFFFFF;
scrollbar-darkshadow-color: #FFDEDE;
scrollbar-track-color: #FFF6F6;
scrollbar-arrow-color: #FDB6B6;
overflow-x:hidden; overflow-y:auto;}
.vc_pad1 { PADDING-LEFT: 6px; PADDING-top: 5px; PADDING-BOTTOM: 5px; }
.vc_pad2 { PADDING-RIGHT: 6px; PADDING-top: 4px; PADDING-BOTTOM: 4px; }
-->
</style>
<input type=hidden name=w value="<?=$w?>">
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><? include ("$board_skin_path/write.skin.php"); ?></td>
</tr>
<!-- 공지사항 시작 -->
<? if($board[bo_10]) { ?>
<tr><td height="10"></td></tr>
<tr>
<td align="center">
<table width="70%" height="30" cellpadding=0 cellspacing=0 style="border:1 #333333 solid">
<tr>
<td bgcolor=#040000 style="padding:8" <?=$board[bo_9]?>><?=$board[bo_10]?></td>
</tr>
</table>
</td>
</tr>
<? } ?>
<!-- 공지사항 끝 -->
<tr><td height="10"></td></tr>
<tr>
<td align="center">
<!-- 게시물 리스트 시작 -->
<?
$lists = array();
for ($i=0; $i<count($list); $i++) {
$lists[$i] = $list[$i];
}
?>
<? for ($ii=0; $ii < count($lists); $ii++) {
$profile = get_member($lists[$ii][mb_id]);
include "$board_skin_path/inc.list_main.php";
$secret_msg="";
$reply_allow="";
$wr_homepage = set_http($lists[$ii][wr_homepage]);
if($lists[$ii][wr_option]=="secret") {
if($member[mb_id] == $lists[$ii][mb_id] || $is_admin) {
$reply_allow = "yes";
$secret_msg = "<br><br><font color=#FF89A3>(관리자와 글쓴이에게만 보이는 비밀글입니다.)</font>";
$a_update = str_replace("w=u","w=u&mode=secret",$a_update);
} else {
$lists[$ii][wr_content] = "<font color=#FF89A3>글쓴이와 관리자만 볼 수 있습니다.";
if(!$lists[$ii][mb_id]) {
$lists[$ii][wr_content] .= "<br><br> 비회원으로 쓰신 글은 글쓴이확인이 불가능하므로 내용확인이 불가능합니다.";
}
$lists[$ii][wr_content] .= "</font>";
//$lists[$ii][name] = "<font color=#ff0000>secret</font>";
$reply_allow = "no";
$secret_msg = "";
}
}
?>
<table width="<?=$width?>" border="0" cellspacing="0" cellpadding="0" style='table-layout:fixed;'>
<tr>
<td align="center">
<table width="96%" border="0" cellspacing="0" cellpadding="0" style='table-layout:fixed;'>
<form name="fboardlist" method="post" action="" style="margin:0">
<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="">
<tr><td colspan="2" height="1" style="background: url('<?=$board_skin_path?>/img/ver3_bottom_dotline.gif') left;"></td></tr>
<tr>
<td width="80%" height="28" class="s11"> <font class="color_pink2">No.<?=$lists[$ii][num]?></font> <?=$lists[$ii][name]?> <? if ($lists[$ii][wr_homepage] && $reply_allow != "no") { echo "<a href='{$wr_homepage}' target='_blank'><img src='{$g4[path]}/ver3/board/home.gif' border='0'></a>"; } ?></td>
<td width="20%" align="right" class="w_padding3; vc_pad2"><?=$show_update_begin?><?=$a_update?><img src="<?=$board_skin_path?>/img/btn_edit.gif" alt="Update" border="0" align="absmiddle" title="Update"></a><?=$show_update_end?> <?=$show_delete_begin?><?=$a_delete?><img src="<?=$board_skin_path?>/img/btn_del.gif" alt="Delete" border="0" align="absmiddle" title="Delete"></a><?=$show_delete_end?></td>
</tr>
<tr><td colspan="2" height="1" style="background: url('<?=$board_skin_path?>/img/ver3_bottom_dotline.gif') left;"></td></tr>
<tr><td height=6 colspan=2></td></tr>
<tr>
<td width="100%" colspan="2" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120" align="center" valign="top"><?
// 링크
if (($lists[$ii][mb_id] == "ganel" || $lists[$ii][mb_id] == "chie00") && $lists[$ii][wr_option]!="secret") {
echo "<img src='{$board_skin_path}/icon/{$lists[$ii][mb_id]}.gif'>";
}
else if ($lists[$ii][link][1]) {
echo "<img src='{$board_skin_path}/icon/{$lists[$ii][wr_link1]}.gif'>";
}
else {
echo "<img src='{$board_skin_path}/icon/icon1.gif'>";
}
?></td>
<td class="vc_pad1"><? echo nl2br(url_auto_link($lists[$ii][wr_content])); ?><? echo $secret_msg; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="18" colspan="2" align="right" class="s11 color_pink2"><?=date("F j, Y, g:i a", strtotime($lists[$ii][wr_datetime]))?> <? if ($is_ip_view) { echo "| {$lists[$ii][wr_ip]} "; } ?><? if($is_admin || $lists[$ii][comment_cnt]) { ?>| <? if($is_admin) { ?><a href="javascript:comment_wri('wri', '<?=$lists[$ii][wr_id]?>');"><? } ?><font class="s11 color_pink1"><? if($lists[$ii][comment_cnt]) { ?>Reply <?=$lists[$ii][comment_cnt]?> <? } else { ?>Reply <? } ?></font><? if($is_admin) { ?></a><? } ?><? } ?></td>
</tr>
</form>
<tr>
<td colspan="2" align=right>
<table width="88%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- 게시물 내용 보기 끝 -->
<?
$wr_id = $lists[$ii][wr_id];
include ("$board_skin_path/view_comment.php");
?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="2" height="1"></td></tr>
</table>
</td>
</tr>
<tr>
<td height="16"></td>
</tr>
</table>
<?
}
// 필터
echo "<script language='javascript'> var g4_cf_filter = '$config[cf_filter]'; </script>\n";
echo "<script language='javascript' src='$g4[path]/js/filter.js'></script>\n";
if (!$member[mb_id]) // 비회원일 경우에만
echo "<script language='javascript' src='$g4[path]/js/md5.js'></script>\n";
?>
<? if (count($lists) == 0) { echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td align=center colspan='2' height=100 class='content contentbg'>자료가 없습니다.</td></tr></table>"; } ?>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30 valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 title='Befor Search'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' title='begin'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' title='before'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' title='next'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' title='end'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font class=\"s11 color_gray1\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font class=\"s11 color_pink1\">$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 title='Next Search'></a>"; } ?>
</td>
</tr>
</table>
<table width='100%' cellpadding=0 cellspacing=0>
<td height="2" bgcolor="#999999"></td>
</table>
<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<td width="50%" align="right">
<!-- <input type="hidden" name=sfl value='wr_subject||wr_content'><input type="hidden" name=sop value="and">
<input name=stx maxlength=15 size=20 itemname="검색어" required value="<?=$stx?>" class="ed">
<input type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle>--></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</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>
<!--<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</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>
<? } ?>
댓글 전체
저도 그냥 아이콘만 추가한거라 몰랐네요^^;
일단 스킨에 자동등록기능이 빠져서 그런듯 합니다.
자동등록기능을 제거하고 실행해보면 정상적으로 등록이 됩니다.
스킨에서 자동등록기능을 추가시키면 되겠네요....
일단 스킨에 자동등록기능이 빠져서 그런듯 합니다.
자동등록기능을 제거하고 실행해보면 정상적으로 등록이 됩니다.
스킨에서 자동등록기능을 추가시키면 되겠네요....
방명록 스킨에 write.skin.php 를 수정합니다.
1. 맨 위에
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
바로 밑에 다음 내용을 추가합니다.
include_once ("./norobot.inc.php");
2. 여기부분에 아래코드를 추가하세요<? if($is_member) { ?><input type=checkbox value="secret" name="secret"
즉
<tr>
<td class=write_head>
자동등록방지코드
<? if($is_member) { ?><input type=checkbox value="secret" name="secret" ...
이렇게 되겠죠..
자동등록방지코드
<table>
<? if ($is_norobot) { ?>
<tr>
<td class=write_head>
<?//=$norobot_str?>
<?
// 이미지 생성이 가능한 경우 자동등록체크코드를 이미지로 만든다.
if (function_exists("imagecreate")) {
echo "<img src='$g4[bbs_path]/norobot_image.php?{$g4['server_time']}' border='0'>";
$norobot_msg = "* 왼쪽의 코드를 입력하세요.";
}
else {
echo $norobot_str;
$norobot_msg = "* 왼쪽의 글자중 <FONT COLOR='red'>빨간글자</font>만 순서대로 입력하세요.";
}
?>
</td>
<td><input class='field' type=input size=10 name=wr_key itemname="자동등록방지" required>
<?=$norobot_msg?>
</td>
</tr>
<? } ?>
</table>
3. 이곳과 같이 나오면 됩니다.
http://saeneul.webzero.co.kr/gnuboard4/bbs/board.php?bo_table=test1
4. 이쁘게 사용하세요~
1. 맨 위에
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
바로 밑에 다음 내용을 추가합니다.
include_once ("./norobot.inc.php");
2. 여기부분에 아래코드를 추가하세요<? if($is_member) { ?><input type=checkbox value="secret" name="secret"
즉
<tr>
<td class=write_head>
자동등록방지코드
<? if($is_member) { ?><input type=checkbox value="secret" name="secret" ...
이렇게 되겠죠..
자동등록방지코드
<table>
<? if ($is_norobot) { ?>
<tr>
<td class=write_head>
<?//=$norobot_str?>
<?
// 이미지 생성이 가능한 경우 자동등록체크코드를 이미지로 만든다.
if (function_exists("imagecreate")) {
echo "<img src='$g4[bbs_path]/norobot_image.php?{$g4['server_time']}' border='0'>";
$norobot_msg = "* 왼쪽의 코드를 입력하세요.";
}
else {
echo $norobot_str;
$norobot_msg = "* 왼쪽의 글자중 <FONT COLOR='red'>빨간글자</font>만 순서대로 입력하세요.";
}
?>
</td>
<td><input class='field' type=input size=10 name=wr_key itemname="자동등록방지" required>
<?=$norobot_msg?>
</td>
</tr>
<? } ?>
</table>
3. 이곳과 같이 나오면 됩니다.
http://saeneul.webzero.co.kr/gnuboard4/bbs/board.php?bo_table=test1
4. 이쁘게 사용하세요~