아래 엑박문제요.. > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

서버정보나 계정정보는 보안유지를 위해 관리자쪽지나 메일로 발송해 주시거나 제작의뢰 게시판을 이용해 주시면 감사하겠습니다..

아래 엑박문제요..

페이지 정보

본문

정말 어떻게 해야 될지..

그림처럼 경로의 폴더는 만들어 진것 같아요..

1,2 뒤에 무슨 확장자가 붙어야 되는건가요?

운영자님 저는 초보인데 답을 좀 주시면 안될까요?? 부탁드립니다.
추천0

댓글목록

profile_image

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

몇군데만 수정해 봤습니다..
<?
if (!defined("_GNUBOARD_")) exit;
include_once $board_skin_path."/level.lib.php";

$data_path = $g4[path]."/data";

// delete_smallimg
if ($delete_smallimg == 1 && !empty($is_admin)){

  include_once $g4['admin_path'] . '/admin.lib.php';
  rm_rf("$data_path/thumb/$board[bo_table]/board");
  alert("$data_path/thumb/$board[bo_table]/board을 삭제하였습니다.", $_SERVER['PHP_SELF'] . '?' . str_replace('delete_smallimg=1&', '', $_SERVER['QUERY_STRING']));
}


// 여분필드추가
$fdno = $board[bo_9];
if ($fadmin =='fok') {
 if ($is_admin =='super') {
// 시작번호
$af = 11;
// 마지막번호+1
$bf = ($fdno+1);
for ($di=$af; $di<$bf; $di++) {
$g4memoup ="alter table $g4[write_prefix]$bo_table add wr_{$di} varchar(255) not null";
$resultup = @mysql_query($g4memoup) or mysql_error();
if ($resultup) {
echo "$bo_table 게시판에 wr_{$di} 필드생성 성공<br><br>";
} else {
echo "$bo_table 게시판에 wr_{$di} 필드가 이미 존재 하거나 생성실패<br><br>";
}
}
} else {
alert_close("최고관리자만 접근이 가능합니다.");
}
//exit;
}

// 여분필드삭제
if ($fadmin =='fdel') {
 if ($is_admin =='super') {
// 필드삭제를 시작할번호
$adf = 11;
// 필드삭제할 마지막번호 +1
$bdf = ($fdno+1);
for ($di=$adf; $di<$bdf; $di++) {
$g4memoups ="alter table $g4[write_prefix]$bo_table drop wr_{$di}";
$resultups = @mysql_query($g4memoups) or mysql_error();
if ($resultups) {
echo "$bo_table 게시판에 wr_{$di} 필드삭제를 성공<br><br>";
} else {
echo "$bo_table 게시판에 wr_{$di} 필드가 존재 하지않거나 삭제실패<br><br>";
}
}
} else {
alert_close("최고관리자만 접근이 가능합니다.");
}
// exit;
}

if (!$board[bo_1]) {
sql_query("update $g4[board_table] set bo_1_subj='이미지가로', bo_2_subj='이미지세로', bo_9_subj='여분필드11이상 생성삭제할 마지막번호', bo_1='80', bo_2='60' where bo_table='$bo_table'", false);
    $board = sql_fetch("select $g4[board_table] where bo_table='$bo_table'", false);
}

//if (!$board[bo_1]) alert("게시판 설정 : 여분 필드 1 에 목록에서 보여질 이미지의 폭(가로)을 설정하십시오. (픽셀 단위)");
//if (!$board[bo_2]) alert("게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 폭(세로)을 설정하십시오. (픽셀 단위)");
if (!$config[cf_3]) alert("기본설정 : 여분 필드 3 에 목록에서 보여질 이미지의 퀄리티를 설정하십시오. (픽셀 단위)");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");

// thumb_path
//$data_path = $g4[path]."/data";
$thumb_path = $data_path."/thumb/$board[bo_table]/board/{$board[bo_1]}x{$board[bo_2]}";

if (!is_dir($thumb_path))
{
@mkdir("$data_path/thumb", 0707);
@chmod("$data_path/thumb", 0707);
@mkdir("$data_path/thumb/$board[bo_table]", 0707);
@chmod("$data_path/thumb/$board[bo_table]", 0707);
@mkdir("$data_path/thumb/$board[bo_table]/board", 0707);
@chmod("$data_path/thumb/$board[bo_table]/board", 0707);
@mkdir("$data_path/thumb/$board[bo_table]/board/{$board[bo_1]}x{$board[bo_2]}", 0707);
@chmod("$data_path/thumb/$board[bo_table]/board/{$board[bo_1]}x{$board[bo_2]}", 0707);

    // file hidden
    $file = $thumb_path . "/index.php";
    $f = @fopen($file, "w");
    @fwrite($f, "");
    @fclose($f);
    @chmod($file, 0606);
}

// sort
if ($fadmin =='sort') {
$write_table = $g4[write_prefix].$bo_table;

$data = array();

$sql = "select wr_id, wr_num from {$write_table} where wr_is_comment=0 and wr_reply='' order by wr_datetime";
$qry = sql_query($sql);
while ($row = sql_fetch_array($qry)) $data[] = $row;

sql_query("update {$write_table} set wr_num = wr_num * -1");

$wr_num = 0;

foreach ($data as $row)
{
$wr_num--;
$row[wr_num] *= -1;

$sql = "update {$write_table} set wr_num = '{$wr_num}' where wr_num = '{$row[wr_num]}'";
//echo "$sql<br>";
sql_query($sql);
}

echo "Has been completed";
}
?>

<link rel="stylesheet" href="<?=$board_skin_path?>/style.css" type="text/css">

<?
for ($i=0; $i<count($list); $i++) {
if ($board[thumb] == "1") {
$img = "";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
// thumb
if (!file_exists($thumb)) {
if ($list[$i][file][0][file]){
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
}elseif ($list[$i][file][1][file]){
$file = $list[$i][file][1][path] .'/'. $list[$i][file][1][file];
}elseif ($list[$i][file][2][file]){
$file = $list[$i][file][2][path] .'/'. $list[$i][file][2][file];
}else{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
}
// getimage
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)) {
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;

$rate = $board[bo_1] / $size[0];
$height = (int)($size[1] * $rate);

if ($height < $board[bo_2])

$dst = imagecreatetruecolor($board[bo_1], $height);
else

$dst = imagecreatetruecolor($board[bo_1], $board[bo_2]);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);
imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $config[cf_3]);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
} else if ($board[thumb] == "2") {
$img = "";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
// thumb
if (!file_exists($thumb)) {
if ($list[$i][file][0][file]){
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
}elseif ($list[$i][file][1][file]){
$file = $list[$i][file][1][path] .'/'. $list[$i][file][1][file];
}elseif ($list[$i][file][2][file]){
$file = $list[$i][file][2][path] .'/'. $list[$i][file][2][file];
}else{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
}
// getimage
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)) {
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;

/* rate */
/*
$rate = $board[bo_1] / $size[0];
$height = (int)($size[1] * $rate);

$dst = imagecreatetruecolor($board[bo_1], $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);
imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_2]);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
*/

$rate = $board[bo_2] / $size[1];
$width = (int)($size[0] * $rate);

//echo "rate : $rate ,width : $width, $height : $board[bo_2] <br>";
if($width <= $board[bo_1]) { //width rate
$dst = imagecreatetruecolor($width, $board[bo_2]);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $width, $board[bo_2], $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_2]);
} else {
$rate = $board[bo_1] / $size[0];
$height = (int)($size[1] * $rate);
$dst = imagecreatetruecolor($board[bo_1], $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_2]);
}
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
}
}
?>

<center><div style="width:<?=$width?>">
<?
switch($board[zenaplus_skin]){
case "gallery":
include $board_skin_path."/gallery_list.skin.php"; break;
case "webzineleft":
include $board_skin_path."/webzineleft_list.skin.php"; break;
case "webzineright":
include $board_skin_path."/webzineright_list.skin.php"; break;
case "html":
include $board_skin_path."/html_list.skin.php"; break;
default:
include $board_skin_path."/board_list.skin.php"; break;
}
?>

<? if ($board[zenaplus_skin] == "html") { ?>


<? if ($is_checkbox) { ?>
<script type="text/javascript">
function all_checked(sw) {
    var f = document.fboardlist;

    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]")
            f.elements[i].checked = sw;
    }
}

function check_confirm(str) {
    var f = document.fboardlist;
    var chk_count = 0;

    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
            chk_count++;
    }

    if (!chk_count) {
        alert(str + "할 게시물을 하나 이상 선택하세요.");
        return false;
    }
    return true;
}

// 선택한 게시물 삭제
function select_delete() {
    var f = document.fboardlist;

    str = "삭제";
    if (!check_confirm(str))
        return;

    if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
        return;

    f.action = "./delete_all.php";
    f.submit();
}

// 선택한 게시물 복사 및 이동
function select_copy(sw) {
    var f = document.fboardlist;

    if (sw == "copy")
        str = "복사";
    else
        str = "이동";

    if (!check_confirm(str))
        return;

    var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");

    f.sw.value = sw;
    f.target = "move";
    f.action = "./move.php";
    f.submit();
}
</script>
<? } ?>

<? } else { ?>
<!-- board_page -->
<div class="board_page">
<? if ($prev_part_href) { echo "<a class='buttons01' href='$prev_part_href'><span>이전검색</span></a>"; } ?>
<?
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' style='vertical-align:middle;' alt='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' style='vertical-align:middle;' alt='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' style='vertical-align:middle;' alt='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' style='vertical-align:middle;' alt='맨끝'>", $write_pages);
//$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "$1", $write_pages);
$write_pages = preg_replace("/<strong>([0-9]*)<\/strong>/", "<strong><span style=\"color:#4d6185; font-size:12px; text-decoration:underline;\">$1</span></strong>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a class='buttons01' href='$next_part_href'><span>다음검색</span></a>"; } ?>
</div>
<!-- // board_page -->
<!-- bottom,search -->
<!-- bottom -->
<div class="board_button">
<? if ($list_href) { ?>
<a class="button01" href="<?=$list_href?>"><span>목록</span></a>
<? } ?>
<? if ($is_checkbox) { ?>
<a class="button01" href="#" onclick="javascript:select_delete();"><span>선택삭제</span>& lt;/a>
<a class="button01" href="#" onclick="javascript:select_copy('copy');"><span>선택복사</span& gt;</a>
<a class="button01" href="#" onclick="javascript:select_copy('move');"><span>선택이동</span& gt;</a>
<? } ?>
<? if ($write_href) { ?><a class="button02" href="<?=$write_href?>"><span>글쓰기</span></a>& lt;? } ?>
</div>
<!-- // bottom -->
<!-- search -->
<div class="board_search">
<form name="fsearch" method="get">
<div style="float:left; padding:6px 5px 0 0;">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sca" value="<?=$sca?>">
<select name="sfl">
<option value="wr_subject">제목</option>
<option value="wr_content">내용</option>
<option value="wr_subject||wr_content">제목+내용</option>
<option value="mb_id,1">회원아이디</option>
<option value="mb_id,0">회원아이디(코)</option>
<option value="wr_name,1">글쓴이</option>
<option value="wr_name,0">글쓴이(코)</option>
</select>
</div>
<div style="float:left; padding:5px 5px 0 0;">
<input name="stx" class="ed" maxlength="15" itemname="검색어" required value='<?=$stx?>'>
</div>
<div style="float:left; padding:5px 5px 0 0;">
<select name="sop">
<option value=and>and</option>
<option value=or>or</option>
</select>
</div>
<div style="float:left; padding:5px 5px 0 0;">
<a class="button03" id="fsearch" name="fsearch" href="#" onclick="javascript:fsearch.submit()"><span>검색</span>< /a>
</div>
</form>
</div>
<!-- // search -->
<!-- // bottom,search -->
</div></center>
<script type="text/javascript">
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';

if ('<?=$sop?>' == 'and')
document.fsearch.sop[0].checked = true;

if ('<?=$sop?>' == 'or')
document.fsearch.sop[1].checked = true;
} else {
document.fsearch.sop[0].checked = true;
}
</script>

<? if ($is_checkbox) { ?>
<script type="text/javascript">
function all_checked(sw) {
var f = document.fboardlist;

for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}

function check_confirm(str) {
var f = document.fboardlist;
var chk_count = 0;

for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}

if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}

// 선택한 게시물 삭제
function select_delete() {
var f = document.fboardlist;

str = "삭제";
if (!check_confirm(str))
return;

if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;

f.action = "./delete_all.php";
f.submit();
}

// 선택한 게시물 복사 및 이동
function select_copy(sw) {
var f = document.fboardlist;

if (sw == "copy")
str = "복사";
else
str = "이동";

if (!check_confirm(str))
return;

var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");

f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- // list -->
<? } ?>

profile_image

이제다시님의 댓글

이제다시쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

감사하다는 말씀밖에 드릴 말이 없네요.. 잘 됩니다. 정말 감사합니다.

Total 1,640건 45 페이지
  • RSS
질문답변 목록
번호 제목 글쓴이 조회 추천 날짜
540 이제다시쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7683 0 12-09
539 WEBPD쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7678 0 06-28
538 해뱅이쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7668 0 01-24
537 okpcas쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7663 0 01-26
536 당근쥬뜨쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7662 0 02-09
535 사랑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7654 0 10-23
534 하이얌쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7648 0 12-13
533 용용쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7646 0 11-07
532 가온누리쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7643 1 01-11
531 아시아용쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7640 0 03-11
530 duckim쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7638 0 11-09
529 백작쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7634 0 11-10
528 진진쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7627 0 12-18
527 davi쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7624 0 12-13
526 이제다시쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7617 0 08-29
525 디란도쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7609 0 09-05
524 재다이얼쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7609 0 12-02
523 원팀쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7598 0 01-12
522 space쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7593 0 05-12
521 shinss쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7592 0 10-31
520 강용쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7591 0 06-03
519 김성수쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7590 1 02-07
518 권정현쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7589 0 01-25
517 Gmasta쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7587 0 01-25
516 귀여운현호쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7581 0 02-26

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
2,656
어제
7,570
최대
8,371
전체
1,651,076
Copyright (c) 株式会社YHPLUS. All rights reserved.