최근게시물 에러인데, 한 번 봐주세요... 정보
최근게시물 에러인데, 한 번 봐주세요...본문
Fatal error: Call to undefined function: smaller() in /home/hosting_users/s0132_sukpo/www/skin/latest/broadcast/latest.skin.php on line 19
설교게시판인데, (캡춰)이미지를 올리니 저런 메시지가 뜨네요...
한 번 봐주세요...
latest.skin.php 는 앞쪽이 이런 내용입니다...
-------------------------------------
<? for ($i=0; $i<count($list); $i++) {
// Thumbnail
$image = urlencode($list[$i][file][0][file]);
$ori="$g4[path]/data/file/$bo_table/" . $image;
$ext = strtolower(substr(strrchr($ori,"."), 1)); //확장자
if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff") $ori_info=getimagesize($ori); else $ori_info="";
if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) { //원파일이 [ 2JPG, 2JPEG, 3PNG ] 경우.
$thum = $ori.".Thum" ;
if ( file_exists($thum) ) { // Thumbnail [O] 경우
$thum_info = getimagesize ($thum);
$thum_W = $thum_info[0] ;
$thum_H = $thum_info[1] ;
} else { // Thumbnail [X] 경우
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
maker( $thum_W, $thum_H );
}
}
} else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) { //원파일이 [ 1GIF,6BMP,7TIF ] 경우.
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
$thum = $ori ;
}
} else { //원파일이 [ 1,2,3,6,7 ] 아닐 경우.
$thum = "$latest_skin_path/img/noimg.gif";
}
?>
----------------------------------------------------------------------------
설교게시판인데, (캡춰)이미지를 올리니 저런 메시지가 뜨네요...
한 번 봐주세요...
latest.skin.php 는 앞쪽이 이런 내용입니다...
-------------------------------------
<? for ($i=0; $i<count($list); $i++) {
// Thumbnail
$image = urlencode($list[$i][file][0][file]);
$ori="$g4[path]/data/file/$bo_table/" . $image;
$ext = strtolower(substr(strrchr($ori,"."), 1)); //확장자
if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff") $ori_info=getimagesize($ori); else $ori_info="";
if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) { //원파일이 [ 2JPG, 2JPEG, 3PNG ] 경우.
$thum = $ori.".Thum" ;
if ( file_exists($thum) ) { // Thumbnail [O] 경우
$thum_info = getimagesize ($thum);
$thum_W = $thum_info[0] ;
$thum_H = $thum_info[1] ;
} else { // Thumbnail [X] 경우
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
maker( $thum_W, $thum_H );
}
}
} else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) { //원파일이 [ 1GIF,6BMP,7TIF ] 경우.
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
$thum = $ori ;
}
} else { //원파일이 [ 1,2,3,6,7 ] 아닐 경우.
$thum = "$latest_skin_path/img/noimg.gif";
}
?>
----------------------------------------------------------------------------
댓글 전체
smaller() 라는 함수가 없는것이네요
function smaller() 라고 시작하는 부분이 추가되면동작하겠네요
function smaller() 라고 시작하는 부분이 추가되면동작하겠네요