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
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 953
17년 전 조회 777
17년 전 조회 756
17년 전 조회 777
17년 전 조회 801
17년 전 조회 640
17년 전 조회 726
17년 전 조회 1,596
17년 전 조회 782
17년 전 조회 962
17년 전 조회 977
17년 전 조회 827
17년 전 조회 761
17년 전 조회 772
17년 전 조회 971
17년 전 조회 793
17년 전 조회 789
17년 전 조회 822
17년 전 조회 810
17년 전 조회 748