그림장수님의 <웹버스 멀티게시판 기본형 A1.0 [EUC-KR] >스킨- 설치오류 > 그누4 질문답변

그누4 질문답변

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

그림장수님의 <웹버스 멀티게시판 기본형 A1.0 [EUC-KR] >스킨- 설치오류 정보

그림장수님의 <웹버스 멀티게시판 기본형 A1.0 [EUC-KR] >스킨- 설치오류

본문

http://www.paradisefarm.co.kr/bbs/board.php?bo_table=boad3

그림장수님의  <웹버스 멀티게시판 기본형 A1.0 [EUC-KR] >스킨을 다운받아 utf_8로
바꾸어서 게시판에 적용하니까  Fatal error: Cannot redeclare thumbnail() in /home/hosting_users/nakwon0325/www/skin/board/basic2011multitap/lib/skin.lib.php on line 60  이 나옵니다.  어떻게 해야 하나요?
꼭 도움 주세요.  여기저기 족지 보내도 답이 없어 그러서 고수님들의 도움을 요청합니다..

댓글 전체

60라인에는 아래와같은 코드중에 무엇을 손봐야하는지 모르겠습니다. 도움 부탁드립니다.


function thumbnail($exist, $creat, $width, $height, $fail = null)
{
if(is_file($exist) == true && in_array(strtolower(end(explode('.', $exist))), array('gif', 'jpg', 'jpeg', 'png')) == true)
{
if(file_exists($creat) == false)
{
list($img['width'], $img['height'], $img['type']) = getimagesize($exist);
if($img['width'] > $width || $img['height'] > $height)
{
if($img['width'] > $img['height'])
{
$dst['width'] = $width;
$dst['height'] = ceil(($width / $img['width']) * $img['height']);
}
else if($img['height'] > $img['width'])
{
$dst['width'] = ceil(($height / $img['height']) * $img['width']);
$dst['height'] = $height;
}
else
{
$dst['width'] = $width;
$dst['height'] = $height;
}
}
else
{
$dst['width'] = $img['width'];
$dst['height'] = $img['height'];
}
$dst['width'] = $width;
$dst['height'] = $height;
if($width > $dst['width'])
{
$dst['x'] = ceil(($width - $dst['width']) / 2);
}
else
{
$dst['x'] = 0;
}
if($height > $dst['height'])
{
$dst['y'] = ceil(($height - $dst['height']) / 2);
}
else
{
$dst['y'] = 0;
}
switch($img['type'])
{
case '1' :
$src['image'] = imagecreatefromgif($exist);
$dst['image'] = imagecreate($width, $height);
break;
case '2' :
$src['image'] = imagecreatefromjpeg($exist);
$dst['image'] = imagecreatetruecolor($width, $height);
break;
case '3' :
$src['image'] = imagecreatefrompng($exist);
$dst['image'] = imagecreatetruecolor($width, $height);
break;
}
$src['width'] = imagesx($src['image']);
$src['height'] = imagesy($src['image']);
$dst['color'] = imagecolorallocate($dst['image'], 255, 255, 255);
imagefilledrectangle($dst['image'], 0, 0, $width, $height, $dst['color']);
imagecopyresampled($dst['image'], $src['image'], $dst['x'], $dst['y'], 0, 0, $dst['width'], $dst['height'], $src['width'], $src['height']);
switch($img['type'])
{
case '1' :
imagegif($dst['image'], $creat);
break;
case '2' :
imagejpeg($dst['image'], $creat, 100);
break;
case '3' :
imagepng($dst['image'], $creat, 100);
break;
}
imagedestroy($src['image']);
imagedestroy($dst['image']);
}
$return = "<img src=\"{$creat}\" alt=\"\" />";
}
else
{
$return = $fail;
}
return $return;
}
게시판관리자 환경설정방법
1. 여분필드 1 : 기본목록(처음 보여지는 목록형태), list / news / photo 중 선택, 미입력시 list

이거 하셧나요?
감사합니다.  해결은 못헸지만 고마워서 답변 채택합니다.

저는  별도의 head파일을 만들어서 해결해야겠네요.  저는 완전 초보여서  소스만 보고 해결을 못해서요.
질답 44816도 한번 봐 주십시요.
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT