고수님들 문제해결 부탁드립니다.. > 그누4 질문답변

그누4 질문답변

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

고수님들 문제해결 부탁드립니다.. 정보

고수님들 문제해결 부탁드립니다..

본문

갤러리 이미지가  엑스박으로  뜨네요.
분제 해결 부탁 드립니다..
상세한 설명과 정확한 답을 설명 해줫으면  아주 감사하겟습니다.

퀼리티 9와  100 혹은  100이하로  설정 해봤는데  안돼요. ㅠㅠ
data/file/03_1/thumb105안에    우에 그림에거처럼 . 되는데 메인에서 이미지가 안나와요.

문제해결으 꼭 부탁 드립니다.

댓글 전체

아래게 소스입니다.
=============================================================================
<?
if (!defined("_GNUBOARD_")) exit; // 俺喊 其捞瘤 立辟 阂啊
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

// 朝楼 困摹
$today0 = "250";

// 朝楼客 夸老 唱鸥郴扁
$today1 = date("Y-m-d H:i:s A");
$day = date("w");
if($day == 0) $today2= "(老)";
else if($day == 1) $today2 = "(岿)";
else if($day == 2) $today2 = "(拳)";
else if($day == 3) $today2 = "(荐)";
else if($day == 4) $today2 = "(格)";
else if($day == 5) $today2 = "(陛)";
else if($day == 6) $today2 = "(配)";
$today3 = $today1." ".$today2;

// 酒贰 何盒 抛捞喉疙
$my_table1 = '03_1';
$my_table2 = '03_2';
$my_table3 = '03_3';
$my_table4 = '03_4';
$my_table5 = '03_5';

// 霸矫魄 捞抚 备窍扁
// 坷穿府 呼歹 1.3 器窃
$sql1 = "select bo_subject from $g4[board_table] where bo_table='$my_table1'";
$sql2 = "select bo_subject from $g4[board_table] where bo_table='$my_table2'";
$sql3 = "select bo_subject from $g4[board_table] where bo_table='$my_table3'";
$sql4 = "select bo_subject from $g4[board_table] where bo_table='$my_table4'";
$sql5 = "select bo_subject from $g4[board_table] where bo_table='$my_table5'";
$bo_name_sql1 = sql_query($sql1);
$bo_name1 = sql_fetch_array($bo_name_sql1);
$bo_name_sql2 = sql_query($sql2);
$bo_name2 = sql_fetch_array($bo_name_sql2);
$bo_name_sql3 = sql_query($sql3);
$bo_name3 = sql_fetch_array($bo_name_sql3);
$bo_name_sql4 = sql_query($sql4);
$bo_name4 = sql_fetch_array($bo_name_sql4);
$bo_name_sql5 = sql_query($sql5);
$bo_name5 = sql_fetch_array($bo_name_sql5);
?>

<SCRIPT type="text/javascript">
<!--
old_debate='1';

function showLayer_tap(objid){
document.getElementById("debate"+old_debate).style.display="none";
document.getElementById("debate"+old_debate+"#1").style.display="";
document.getElementById("debate"+objid+"#1").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
old_debate=objid;
}
//-->
</SCRIPT>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="22">
<td width="5" background="<?=$g4[path]?>/img/tap_img/top_1.gif"></td>
<td background="<?=$g4[path]?>/img/tap_img/top_2.gif">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="<?=$today0?>"><span class="small"><? echo $today3?></span></td>
<td>
<table cellSpacing=0 cellPadding=0 border=0>
<tr>
<td id=debate1><table cellSpacing=0 cellPadding=0 border=0 height="22" style="cursor:pointer;" onclick=location.href="<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table1?>"><tr><td width="5" background="<?=$g4[path]?>/img/tap_img/on_1.gif"></td><td align="center" class="small" background="<?=$g4[path]?>/img/tap_img/on_2.gif"><span style="color:#f0761c; font-weight:bold; vertical-align:-3px;"><?=$bo_name1[bo_subject]?></span></td><td width="5" background="<?=$g4[path]?>/img/tap_img/on_3.gif"></td></tr></table></td>
<td id=debate1#1 style="DISPLAY: none;"><table cellSpacing=0 cellPadding=0 border=0 height="22" style="cursor:pointer;" onclick=location.href="javascript:showLayer_tap('1')"><tr><td width="5" background="<?=$g4[path]?>/img/tap_img/off_1.gif"></td><td align="center" class="small" background="<?=$g4[path]?>/img/tap_img/off_2.gif"><span style="vertical-align:-3px;"><?=$bo_name1[bo_subject]?></span></td><td width="5" background="<?=$g4[path]?>/img/tap_img/off_3.gif"></td></tr></table></td>
</tr></table>
</td>
<td width="5"></td>
<td>
<table cellSpacing=0 cellPadding=0 border=0>
<tr>
<td id=debate2 style="DISPLAY: none;"><table cellSpacing=0 cellPadding=0 border=0 height="22" style="cursor:pointer;" onclick=location.href="<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table2?>"><tr><td width="5" background="<?=$g4[path]?>/img/tap_img/on_1.gif"></td><td align="center" class="small" background="<?=$g4[path]?>/img/tap_img/on_2.gif"><span style="color:#f0761c; font-weight:bold; vertical-align:-3px;"><?=$bo_name2[bo_subject]?></span></td><td width="5" background="<?=$g4[path]?>/img/tap_img/on_3.gif"></td></tr></table></td>
<td id=debate2#1><table cellSpacing=0 cellPadding=0 border=0 height="22" style="cursor:pointer;" onclick=location.href="javascript:showLayer_tap('2')"><tr><td width="5" background="<?=$g4[path]?>/img/tap_img/off_1.gif"></td><td align="center" class="small" background="<?=$g4[path]?>/img/tap_img/off_2.gif"><span style="vertical-align:-3px;"><?=$bo_name2[bo_subject]?></span></td><td width="5" background="<?=$g4[path]?>/img/tap_img/off_3.gif"></td></tr></table></td>
</tr></table>
</td>
<td width="5"></td>
<td>
<table cellSpacing=0 cellPadding=0 border=0>
<tr>
<td id=debate3 style="DISPLAY: none;"><table cellSpacing=0 cellPadding=0 border=0 height="22" style="cursor:pointer;" onclick=location.href="<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table3?>"><tr><td width="5" background="<?=$g4[path]?>/img/tap_img/on_1.gif"></td><td align="center" class="small" background="<?=$g4[path]?>/img/tap_img/on_2.gif"><span style="color:#f0761c; font-weight:bold; vertical-align:-3px;"><?=$bo_name3[bo_subject]?></span></td><td width="5" background="<?=$g4[path]?>/img/tap_img/on_3.gif"></td></tr></table></td>
<td id=debate3#1><table cellSpacing=0 cellPadding=0 border=0 height="22" style="cursor:pointer;" onclick=location.href="javascript:showLayer_tap('3')"><tr><td width="5" background="<?=$g4[path]?>/img/tap_img/off_1.gif"></td><td align="center" class="small" background="<?=$g4[path]?>/img/tap_img/off_2.gif"><span style="vertical-align:-3px;"><?=$bo_name3[bo_subject]?></span></td><td width="5" background="<?=$g4[path]?>/img/tap_img/off_3.gif"></td></tr></table></td>
</tr></table>
</td>
<td width="5"></td>
<td>
<table cellSpacing=0 cellPadding=0 border=0>
<tr>
<td id=debate4 style="DISPLAY: none;"><table cellSpacing=0 cellPadding=0 border=0 height="22" style="cursor:pointer;" onclick=location.href="<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table4?>"><tr><td width="5" background="<?=$g4[path]?>/img/tap_img/on_1.gif"></td><td align="center" class="small" background="<?=$g4[path]?>/img/tap_img/on_2.gif"><span style="color:#f0761c; font-weight:bold; vertical-align:-3px;"><?=$bo_name4[bo_subject]?></span></td><td width="5" background="<?=$g4[path]?>/img/tap_img/on_3.gif"></td></tr></table></td>
<td id=debate4#1><table cellSpacing=0 cellPadding=0 border=0 height="22" style="cursor:pointer;" onclick=location.href="javascript:showLayer_tap('4')"><tr><td width="5" background="<?=$g4[path]?>/img/tap_img/off_1.gif"></td><td align="center" class="small" background="<?=$g4[path]?>/img/tap_img/off_2.gif"><span style="vertical-align:-3px;"><?=$bo_name4[bo_subject]?></span></td><td width="5" background="<?=$g4[path]?>/img/tap_img/off_3.gif"></td></tr></table></td>
</tr></table>
</td>
<td width="5"></td>
<td>
<table cellSpacing=0 cellPadding=0 border=0>
<tr>
<td id=debate5 style="DISPLAY: none;"><table cellSpacing=0 cellPadding=0 border=0 height="22" style="cursor:pointer;" onclick=location.href="<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table5?>"><tr><td width="5" background="<?=$g4[path]?>/img/tap_img/on_1.gif"></td><td align="center" class="small" background="<?=$g4[path]?>/img/tap_img/on_2.gif"><span style="color:#f0761c; font-weight:bold; vertical-align:-3px;"><?=$bo_name5[bo_subject]?></span></td><td width="5" background="<?=$g4[path]?>/img/tap_img/on_3.gif"></td></tr></table></td>
<td id=debate5#1><table cellSpacing=0 cellPadding=0 border=0 height="22" style="cursor:pointer;" onclick=location.href="javascript:showLayer_tap('5')"><tr><td width="5" background="<?=$g4[path]?>/img/tap_img/off_1.gif"></td><td align="center" class="small" background="<?=$g4[path]?>/img/tap_img/off_2.gif"><span style="vertical-align:-3px;"><?=$bo_name5[bo_subject]?></span></td><td width="5" background="<?=$g4[path]?>/img/tap_img/off_3.gif"></td></tr></table></td>
</tr></table>
</td>
<td width="5"></td>
</tr>
</table>
</td>
<td width="5" background="<?=$g4[path]?>/img/tap_img/top_3.gif"></td>
</tr>
<tr height="3">
<td background="<?=$g4[path]?>/img/tap_img/mid_1.gif"></td>
<td></td>
<td background="<?=$g4[path]?>/img/tap_img/mid_2.gif"></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/img/tap_img/mid_3.gif"></td>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign='top'>
<DIV id=debate_content1><?=latest('tab',$my_table1, "5", "42"); ?></div>
<DIV id=debate_content2 style="DISPLAY: none;"><?=latest('tab',$my_table2, "5", "42"); ?></div>
<DIV id=debate_content3 style="DISPLAY: none;"><?=latest('tab',$my_table3, "5", "42"); ?></div>
<DIV id=debate_content4 style="DISPLAY: none;"><?=latest('tab',$my_table4, "5", "42"); ?></div>
<DIV id=debate_content5 style="DISPLAY: none;"><?=latest('tab',$my_table5, "5", "42"); ?></div>
</td>
</tr>
</table>
</td>
<td background="<?=$g4[path]?>/img/tap_img/mid_4.gif"></td>
</tr>
<tr height="5">
<td background="<?=$g4[path]?>/img/tap_img/bot_1.gif"></td>
<td background="<?=$g4[path]?>/img/tap_img/bot_2.gif"></td>
<td background="<?=$g4[path]?>/img/tap_img/bot_3.gif"></td>
</tr>
</table>
=============================================================================
                      skin/latest/gallery  에  latest.skin.php 소스.
=============================================================================
<?
if (!defined("_GNUBOARD_")) exit; // 俺喊 其捞瘤 立辟 阂啊

$img_width = '100'; //芥匙老 啊肺辨捞
$img_height = '80'; //芥匙老 技肺辨捞
$img_quality = '9'; //宁府萍 100捞窍肺 汲沥

if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 捞惑 滚傈捞 汲摹登绢 乐绢具 荤侩且 荐 乐绰 岸矾府 霸矫魄 涝聪促.");

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb105'; //芥匙老 捞固瘤 积己 叼泛配府

@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="3" background="<?=$latest_skin_path?>/img/latest_t_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/latest_t_bg.gif">
<!--鸥捞撇 矫累: 角急 祸惑阑 官操妨搁 215, 215, 215甫 绊摹技夸.-->
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="30">
<td width="10"></td>
<td><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#57697c" ><b><?=$board[bo_subject]?></b></font></a></td>
<td width="40"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/more.gif" border="0"></a>
<td width="5"></td>
</tr>
</table>
<!--鸥捞撇 场-->
</td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_t_2.gif"></td>
</tr>
<tr height="1"><td width="3" background="<?=$latest_skin_path?>/img/latest_m_1.gif"></td><td></td><td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></td>
<tr>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_1.gif"></td>
<td>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<td align="center">
<?
$img = "<table border='0' cellpadding='0' cellspacing='0'><tr><td width='20'><img src='$latest_skin_path/img/box_01.gif' width='20' height='16'></td><td  background='$latest_skin_path/img/box_03.gif'><img src='$latest_skin_path/img/box_02.gif' width='17' height='16'></td><td width='21'><img src='$latest_skin_path/img/box_06.gif' width='21' height='16'></td></tr><tr><td valign='top' background='$latest_skin_path/img/box_12.gif'><img src='$latest_skin_path/img/box_07.gif' width='20' height='20'></td><td><img src='$latest_skin_path/img/noimage.gif' width='$img_width' height='$img_height' title='捞固瘤 绝澜'></td><td valign='bottom' background='$latest_skin_path/img/box_10.gif'><img src='$latest_skin_path/img/box_14.gif' width='21' height='15'></td></tr><tr><td><img src='$latest_skin_path/img/box_15.gif' width='20' height='16'></td> <td background='$latest_skin_path/img/box_16.gif'><div align='right'><img src='$latest_skin_path/img/box_18.gif' width='20' height='16'></div></td><td><img src='$latest_skin_path/img/box_19.gif' width='21' height='16'></td></tr></table>";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
if (!file_exists($thumb)) {
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
// 诀肺靛等 颇老捞 捞固瘤扼搁
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 = $img_width / $size[0];
$height = (int)($size[1] * $rate);

// 拌魂等 芥匙老 捞固瘤狼 臭捞啊 汲沥等 捞固瘤狼 臭捞焊促 累促搁
if ($height < $img_height)
// 拌魂等 捞固瘤 臭捞肺 汗荤夯 捞固瘤 积己
$dst = imagecreatetruecolor($img_width, $height);
else
// 汲沥等 捞固瘤 臭捞肺 汗荤夯 捞固瘤 积己
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}

if (file_exists($thumb)){
$img = "<table border='0' cellpadding='0' cellspacing='0'><tr><td width='20'><img src='$latest_skin_path/img/box_01.gif' width='20' height='16'></td><td  background='$latest_skin_path/img/box_03.gif'><img src='$latest_skin_path/img/box_02.gif' width='17' height='16'></td><td width='21'><img src='$latest_skin_path/img/box_06.gif' width='21' height='16'></td></tr><tr><td valign='top' background='$latest_skin_path/img/box_12.gif'><img src='$latest_skin_path/img/box_07.gif' width='20' height='20'></td><td align='center'><a href='{$list[$i][href]}'><img src='$thumb' width='$img_width' height='$img_height' border='0'></a></td><td valign='bottom' background='$latest_skin_path/img/box_10.gif'><img src='$latest_skin_path/img/box_14.gif' width='21' height='15'></td></tr><tr><td><img src='$latest_skin_path/img/box_15.gif' width='20' height='16'></td> <td background='$latest_skin_path/img/box_16.gif'><div align='right'><img src='$latest_skin_path/img/box_18.gif' width='20' height='16'></div></td><td><img src='$latest_skin_path/img/box_19.gif' width='21' height='16'></td></tr></table>";
}

//朝楼钎矫
$date = explode("-", $date1);
$year = $date[0];
$month = $date[1];
$day = $date[2];
$latest_date = $year."-".$month."-".$day."";
echo $list[$i]['icon_reply'] . " ";
echo $img;
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<strong>{$list[$i]['subject']}</strong>";
else
echo "{$list[$i]['subject']}";
echo "</a>";

if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\" style='font-size:9px; color:#EE5A00; vertical-align:1px;'>{$list[$i]['comment_cnt']}</a>";
//echo " " . $list[$i]['icon_new'];
//echo " " . $list[$i]['icon_hot'];
//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_link'];
//echo " " . $list[$i]['icon_secret'];
//echo "</td><td width=36 align=right>";
//echo "<font color=#bababa class=small>{$list[$i][datetime2]}</font>";
?></td>
<?}if($i%$i==0) echo "</tr>";?>
</table>
</td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></td>
<tr height="5">
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_1.gif">
<td></td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></tr>
</tr>
<tr height="3">
<td width="3" background="<?=$latest_skin_path?>/img/latest_b_1.gif"></td>
<td background="<?=$latest_skin_path?>/img/latest_b_bg.gif"></td>
<td width="3" background="<?=$latest_skin_path?>/img/latest_b_2.gif"></td>
</tr>
<tr height="1"><td colspan="3"></td>
</table>
=========================================================================
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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