웹프로그래밍

Global It Leader!!


그누보드


 
 

외부 이미지 썸네일 보여주기

페이지 정보

작성자 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 3,010회 작성일 21-02-03 00:57

본문

$thumb = get_list_thumbnail($board['code'], $list[$i]['sn'], $thumb_width, $thumb_height, false, true); 

        if($thumb['src']) {

        $img = $thumb['src'];

} else if($url_img = get_editor_image($list[$i]['wr_content'])) { 

$img_src = $url_img[1][0];

preg_match("/src=[\'\"]?([^>\'\"]+[^>\'\"]+)/i", $img_src, $m);

$src = htmlspecialchars_decode($m[1]);

preg_match("/alt=[\"\']?([^\"\']*)[\"\']?/", $img_src, $m);

$filename =  hash("sha256", $src);

$source_path = $target_path = G5_DATA_PATH.'/file/'.$bo_table;

$file_download = $target_path."/".$filename;

if (!file_exists($file_download)) {

copy($src, $file_download);

}                                        

$thumb_src = thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_height, false, true);

$img = G5_DATA_URL.'/file/'.$bo_table.'/'.$thumb_src;

} else {

        $img = G5_IMG_URL.'/no_img.png';

            $thumb['alt'] = 'No image';

    }

댓글목록

등록된 댓글이 없습니다.

전체 71
게시물 검색
그누보드 목록
번호 제목 글쓴이 조회 날짜
51 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4331 06-24
50 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4247 03-26
49 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4230 01-31
48 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4217 11-15
47 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4163 11-29
46 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4066 06-14
45 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4002 02-21
44 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3936 08-20
43 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3915 12-25
42 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3903 07-21
41 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3848 03-13
40 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3812 05-06
39 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3751 04-15
38 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3625 10-15
37 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3333 11-06
36 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3283 10-21
35 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3273 10-21
34 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3239 02-23
33 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3156 06-14
열람중 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3011 02-03