겔러리 스킨에서 리스트보기가 액박떠요. > 그누4 질문답변

그누4 질문답변

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

겔러리 스킨에서 리스트보기가 액박떠요. 정보

겔러리 스킨에서 리스트보기가 액박떠요.

본문

리스트 이미지가 보이질 않습니다.
아시는 분 답변좀 부탁합니다.

list.skin.php

소스가 이렇게 되는데요.
for ($i=0; $i<count($list); $i++)
{
    if ($i && $i%$mod==0)
        echo "</tr><tr>";

    $img = "<img src='$board_skin_path/img/noimage.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
                continue;

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

            if ($height < $board[bo_2])
                $dst = imagecreatetruecolor($board[bo_1], $height);
            else
                $dst = imagecreatetruecolor($board[bo_1], $board[bo_2]);
            imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);
            imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_3]);
            chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
        }
    }



    if (file_exists($thumb))
        $img = "<img src='$thumb' border=0 style='border:1px solid #999999;' vspace=4>";



    $style = "";
    if ($list[$i][icon_new])
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로