웹버스님의 멀티스킨을 g에디터 g업로드 용으로 개조만 해봤습니다.
파일올리는데 한번에 여러개가 업로드 안되서 무진장 불편하더군요.ㅠ
발실력으로 막 개조해서 폴더가 개판입니다..
압축풀어서 루트에 덮어주심 됩니다.;
UTF-8버전입니다
아 그리고 그냥 팁게 자료보고 막 해서 그런지 멀티업로드 한파일을 에디터 삽입 버튼이 먹통이네요.ㅠㅠ// 수정하셨습니다.
파일올리는데 한번에 여러개가 업로드 안되서 무진장 불편하더군요.ㅠ
발실력으로 막 개조해서 폴더가 개판입니다..
압축풀어서 루트에 덮어주심 됩니다.;
UTF-8버전입니다
아 그리고 그냥 팁게 자료보고 막 해서 그런지 멀티업로드 한파일을 에디터 삽입 버튼이 먹통이네요.ㅠㅠ// 수정하셨습니다.
댓글 20개
Fatal error: Cannot redeclare thumbnail() (previously declared in ..../lib/thumb.lib.php:87) in ...../skin/board/webbus/lib/skin.lib.php on line 60
thumb.lib.php
-----------------------------
function thumbnail($file_name, $width=0, $height=0, $is_create=false, $is_crop=2, $quality=70, $small_thumb=true, $watermark="", $filter="", $noimg="", $thumb_type="")
{
//if (!$file_name)
// return;
// memory limit 설정 변경
@ini_set("memory_limit", -1);
// 썸네일 디렉토리
$real_dir = dirname($_SERVER['DOCUMENT_ROOT'] . "/nothing");
$dir = dirname(file_path($file_name));
$file = basename($file_name);
$thumb_dir = $dir . "/thumb";
// 썸네일을 저장할 디렉토리
$thumb_path = $thumb_dir .
--------------------------------이하생략------------
webbus/lib/skin.lib.php on line 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']);
}
충돌이 있나요?
에러가 나네요
살펴주세요
thumb.lib.php
-----------------------------
function thumbnail($file_name, $width=0, $height=0, $is_create=false, $is_crop=2, $quality=70, $small_thumb=true, $watermark="", $filter="", $noimg="", $thumb_type="")
{
//if (!$file_name)
// return;
// memory limit 설정 변경
@ini_set("memory_limit", -1);
// 썸네일 디렉토리
$real_dir = dirname($_SERVER['DOCUMENT_ROOT'] . "/nothing");
$dir = dirname(file_path($file_name));
$file = basename($file_name);
$thumb_dir = $dir . "/thumb";
// 썸네일을 저장할 디렉토리
$thumb_path = $thumb_dir .
--------------------------------이하생략------------
webbus/lib/skin.lib.php on line 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']);
}
충돌이 있나요?
에러가 나네요
살펴주세요
게시글 목록
| 번호 | 제목 |
|---|---|
| 153856 |
게시판
온라인 신청폼 게시판
8
|
| 153855 |
최신글
직원소개 최신글
1
|
| 153833 |
게시판
무통장 쇼핑몰 스킨^^
2
|
| 153798 | |
| 153797 | |
| 153792 | |
| 153789 | |
| 153788 | |
| 153765 |
접속자
방문자 집계 v.1.0.0
2
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기