|
|
|
13년 전
|
조회 1,183
|
|
|
|
13년 전
|
조회 914
|
|
|
|
13년 전
|
조회 3,365
|
|
|
|
13년 전
|
조회 1,609
|
|
|
|
13년 전
|
조회 1,439
|
|
|
|
13년 전
|
조회 1,020
|
|
|
|
13년 전
|
조회 2,810
|
|
|
|
13년 전
|
조회 3,802
|
|
|
|
13년 전
|
조회 848
|
|
|
|
13년 전
|
조회 1,540
|
|
|
|
13년 전
|
조회 606
|
|
|
|
13년 전
|
조회 1,049
|
|
|
|
13년 전
|
조회 1,028
|
|
|
|
13년 전
|
조회 1,629
|
|
|
|
13년 전
|
조회 784
|
|
|
|
13년 전
|
조회 1,964
|
|
|
|
13년 전
|
조회 860
|
|
|
|
13년 전
|
조회 1,540
|
|
|
DawnDew
|
13년 전
|
조회 2,283
|
|
|
|
13년 전
|
조회 1,000
|
댓글 2개
{
// 원본 강제 리사이징
if ($mw_basic[cf_original_width] && $mw_basic[cf_original_height]) {
if ($view[file][$i][image_width] > $mw_basic[cf_original_width] || $view[file][$i][image_height] > $mw_basic[cf_original_height]) {
$file = "$file_path/{$view[file][$i][file]}";
mw_make_thumbnail($mw_basic[cf_original_width], $mw_basic[cf_original_height], $file, $file, true);
if ($mw_basic[cf_watermark_use]) mw_watermark_file($file);
$size = getImageSize($file);
$view[file][$i][image_width] = $size[0];
$view[file][$i][image_height] = $size[1];
sql_query("update $g4[board_file_table] set bf_width = '$size[0]', bf_height = '$size[1]',
bf_filesize = '".filesize($file)."'
where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_file = '{$view[file][$i][file]}'");
}
}
// 이미지 크기 조절
if ($board[bo_image_width] < $view[file][$i][image_width]) {
$img_width = $board[bo_image_width];
} else {
$img_width = $view[file][$i][image_width];
}
$view[file][$i][view] = str_replace("<img", "<img width=\"{$img_width}\"", $view[file][$i][view]);
// 워터마크 이미지 출력
if ($mw_basic[cf_watermark_use]) {
preg_match("/src='([^']+)'/iUs", $view[file][$i][view], $match);
$watermark_file = mw_watermark_file($match[1]);
$view[file][$i][view] = str_replace($match[1], $watermark_file, $view[file][$i][view]);
}
이쪽부분에
$today = date("y-m-d",time());
echo("$today");
를 어떻게 대입하면 될것도 같은데 힘드네요 ㅠㅠ
http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php
phpthumb 사용해보심이