웹프로그래밍

Global It Leader!!


그누보드


 
 

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

페이지 정보

작성자 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 2,680회 작성일 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';

    }

댓글목록

등록된 댓글이 없습니다.

전체 59
게시물 검색
그누보드 목록
번호 제목 글쓴이 조회 날짜
59 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 31 03-22
58 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 28 03-22
57 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 127 01-12
56 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 140 01-11
55 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 124 01-11
54 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 251 10-29
53 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 355 09-14
52 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 388 08-21
51 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 393 08-06
50 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 362 08-05
49 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2008 03-22
48 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1287 03-22
47 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4579 08-09
46 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1879 07-22
45 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3936 07-16
44 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2152 06-28
43 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1935 06-20
42 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2379 04-06
41 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2654 02-07
열람중 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2681 02-03