이곳은 ZEROBOARD 4버전 관련 질문/답변 게시판입니다.
다른 사이트의 게시판도 몇몇 에러가 나는것 같습니다.
주소는 다음과 같습니다.
http://www.openlock.co.kr/bbs/zboard.php?id=example&PHPSESSID=9f29786597c5802cc4c635bc9dda3ae5
에러내용은
게시된 숫자만큼 이런 메세지가 뜹니다. 이유를 모르겠습니다. 고수분들의 설명과 해결방법 부탁드립니다.
그리고 소스는 아래와 같습니다.
<?
$subject = str_replace(">"," CLASS=12KoLinkBlue>",$subject);
$name= str_replace(">"," CLASS=12KoLinkBlack>",$name);
unset($temp);
$img_name = "$dir/noscreenshot.gif"; // 업로드된 이미지가 없을때 보여줄 파일...$dir 은 스킨 폴더
$img_width = 90; // 파일 width
$img_height = 20; // 파일 height
$bbs_width = 90; // width 제한 크기
if($data[file_name1]) { // 이미지가 있을때
$img_name = $data[file_name1]; // 업로드된 이미지 파일명 추출
$temp = @GetImageSize($img_name); // 화면에 표시할 그림파일 크기 정보 얻고
if($temp[0] > $bbs_width ) { // 지정된 게시판 가로크기보다 클경우
$ratio = $bbs_width/$temp[0]; // 게시판 width에 대한 그림파일의 width 비율 계산.
$img_width = $temp[0]*$ratio; // 그림파일의 width와 height에 동일 ratio 적용.
$img_height = $temp[1]*$ratio;
}
else {
$img_width = $temp[0]; // 지정된 크기보다 작을경우 원사이즈대로 출력
$img_height = $temp[1];
}
}
$_alink="";
if($data[file_name1])
{
$s_info = @getimagesize($data[file_name1]);
if($s_info[2]>0&&$s_info[2]<4)
{
$_xsize = $s_info[0];
if($_xsize>$_hsize) $_xsize=$_hsize;
$_srcname = $data[file_name1];
$_alink="<a href=javascript:void(window.open('$dir/show_pic.php?file=$data[file_name1]','$data[no]','+
'+
'width=$s_info[0],height=$s_info[1],resizable=yes,toolbars=no,scrollbars=auto')) onfocus=blur()>";
}
}
$_x ++;
$_temp = $_x % $_h_num; (39라인은 요부분입니다.)
?>
<tr align=center class=list<?=$coloring%2?>>
<td CLASS=10En000000><?=$number?></td>
<?=$hide_category_start?><td nowrap><nobr><?=$category_name?><nobr></td><?=$hide_category_end?>
<TD><?=$_alink?><img src=<?=$img_name?> width=<?=$img_width?> height=<?=$img_height?> border=0 CLASS=Border2pxEEEEEE></a></TD>
<td align=left nowrap><?=$hide_cart_start?><input type=checkbox name=cart value="<?=$data[no]?>"><?=$hide_cart_end?> <?=$insert?><?=$icon?><?=$subject?> <SPAN class=10En666666><?=$comment_num?></SPAN></td>
<td><nobr><?=$face_image?> <?=$name?></nobr></td>
<td nowrap CLASS=10En000000><?=$reg_date?></td>
<td nowrap CLASS=10En000000><?=$vote?></td>
<td nowrap CLASS=10En000000><?=$hit?></td>
</tr>
<?$coloring++;?>
