D

다음 자료실게시판 스킨을 쓰는데요..

리스트 화면에서 엑박이 떠버리네요..

<? for ($i=0; $i<count($list); $i++) {

//필드쪼개기
$ex9_filed = explode("|",$list[$i][wr_9]);
$ext9_00 = $ex9_filed[0];
$ext9_01 = $ex9_filed[1];

$content = cut_str(get_text($list[$i][wr_content]), 150);
if ($i && $i%$mod==0)
echo "</tr><tr>";

$img = "<img src='$board_skin_path/img/no_image.gif' border=0 width='$board[bo_1]' title='이미지 없음'>";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;

$rate = $board[bo_1] / $size[0];
$height = (int)($size[1] * $rate);

$dst = imagecreatetruecolor($board[bo_1], $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);
imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_2]);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0>";

$style = "";
if ($list[$i][icon_new])
$style = ""; // 읽지 않은 글?? style='font-weight:bold;' 추가
$subject = "<span $style>". $list[$i][subject] ."</span>";


이부분에 뭔가 문제가 있는거같은데 왜그런거죠..?

그림파일 경로 추적해봤더니

http://도메인/thumb/4

이런식으루 그림파일확장자가 아니고 이상한 파일이더라구요.. 답변좀

첨부파일

pcs_basic_bbs.zip (121.7 KB) 2회 2008-12-06 22:17
|

댓글 작성

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

로그인하기
🐛 버그신고