gif 추출이 안돼요 > 그누4 질문답변

그누4 질문답변

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

gif 추출이 안돼요 정보

gif 추출이 안돼요

본문

첨부파일 썸네일로 뽑는데...jpg는 나오는데, gif로 올리면 이미지가 안보여요..
어떻게 해야 할까요..


아래는 view.skin.php 입니다.
--------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$pic_width = 170;
?>

<!-- 게시글 보기 시작 -->
<table width="<?=$width?>"  align=center cellpadding="0" cellspacing="0"><tr><td>

<!-- 링크 버튼 -->
<?
ob_start();
?>
<table width='100%' cellpadding=0 cellspacing=0>
<tr height=32>
    <td>
        <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
        <? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>

        <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_modify.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_del.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('$scrap_href');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
    </td>
    <td align=right>
        <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a>&nbsp;"; } ?>
        <? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a>&nbsp;"; } ?>
    </td>
</tr>
</table>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>

<!-- 제목, 글쓴이, 날짜, 조회, 추천, 비추천 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td height=30>&nbsp;<font style="font:normal 11px 돋움; color:#BABABA;">글쓴이 :</font> <?=$view[name]?><? if ($is_ip_view) { echo "&nbsp;($ip)"; } ?>&nbsp;&nbsp;&nbsp;&nbsp;
    <font style="font:normal 11px 돋움; color:#BABABA;">날짜 :</font> <?=substr($view[wr_datetime],2,14)?>&nbsp;&nbsp;&nbsp;&nbsp;</font>
    <font style="font:normal 11px 돋움; color:#BABABA;">조회 :</font> <?=$view[wr_hit]?></font>
<? if ($is_category) { ?>&nbsp;&nbsp;&nbsp;&nbsp;<font style="font:normal 11px 돋움; color:#BABABA;">카테고리 :</font> <?=$view[ca_name]?><? } ?>
    </td>
</tr>
<tr><td height="2" bgcolor="#1A75CB"></td></tr>
<tr><td height=10></td></tr>

<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
    if ($view[file][$i][source] && !$view[file][$i][view]) {
        $cnt++;
        //echo "<tr><td height=22>&nbsp;&nbsp;<img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'><strong>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>";
        echo "<tr><td height=30>&nbsp;&nbsp;<img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'><font style='normal 11px 돋움;'>{$view[file][$i][source]} ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</font></a></td></tr><tr><td height='1'  bgcolor='#E7E7E7'></td></tr>";
    }
}

// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
    if ($view[link][$i]) {
        $cnt++;
        $link = cut_str($view[link][$i], 70);
        echo "<tr><td height=30>&nbsp;&nbsp;<img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank><font  style='normal 11px 돋움;'>{$link} ({$view[link_hit][$i]})</font></a></td></tr><tr><td height='1' bgcolor='#E7E7E7'></td></tr>";
    }
}
?>

<tr><td>

<TABLE width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign=top align=left width=<?=$pic_width?>>

<?
$file_num_sql2 = " select * from g4_board_file where bf_no = '0' and bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type = '2' ";
$file_num_result2 = mysql_query($file_num_sql2);

for ($i=0; $row2 = mysql_fetch_array($file_num_result2); $i++) {
?>

<script>
function Image_open(imgSrc) {
var win=window.open("","pic","scrollbars=yes,resizale=no,menubar=no,resizable=no,width=<?=$row2[bf_width]+20?>,height=<?=$row2[bf_height]+20?>");
win.document.write("<body topmargin='0' leftmargin='0'>");
win.document.write("<img alt='클릭하면 닫힘' style='cursor:pointer;' onclick='window.close()' style='margin-top:0;' src="+imgSrc+" width=<?=$row2[bf_width]?> height='<?=$row2[bf_height]?>'>")
}
</script>

<a style='cursor:pointer;' onclick="Image_open('<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$row2[bf_file]?>');"><img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$row2[bf_file]?>' width='220' style='border:4px solid #1A75CB;'></a>

<? } ?>

</td>

<td width=13></td>

<td valign=top>

<style>
.cross_color {
color:#2381B6;
text-align:center;
vertical-align:middle;
font-size:7pt;
}
</style>

<!-- <img src="<?=$board_skin_path?>/img/sub.gif"> -->

<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2" height="8"></td></tr>
    <tr>
<td colspan="2"><span style="font-size:14px;font:bold; color:#1A75CB"><?=$view[wr_subject]?>
</span> </td>
</tr>

<tr><td colspan="2" height="8"></td></tr>
<tr><td colspan="2" height="1" bgcolor="#EEEEEE"></td></tr>
<tr><td colspan="2" height="8"></td></tr>

<tr>
<td width="10%" height="14" valign=top><img src="<?=$board_skin_path?>/img/t1.gif" /></td>
<td width="90%"><span style='font:normal 11px;'><?=$view[wr_4]?></span></td>
</tr>

    <tr>
<td valign=top><img src="<?=$board_skin_path?>/img/t2.gif" /></td>
<td><span style='font:normal 11px;'><?=$view[wr_3]?></span> </td>
    </tr>

<tr>
<td valign=top><img src="<?=$board_skin_path?>/img/t3.gif" /></td>
<td><span style='font:normal 11px;'><?=$view[wr_1]?></span></td>
</tr>

<tr>
<td valign=top><img src="<?=$board_skin_path?>/img/t4.gif" /></td>
<td><span style='font:normal 11px'><?=$view[wr_2]?></span></td>
</tr>

<tr>
<td valign=top><img src="<?=$board_skin_path?>/img/t5.gif" /></td>
<td><span style='font:normal 11px tahoma;'><a href="<?=$view[wr_5]?>" target=blank><?=$view[wr_5]?></a></span></td>
</tr>
<tr><td colspan="2" height="8"></td></tr>
<tr><td colspan="2" height="1" bgcolor="#EEEEEE"></td></tr>
<tr><td colspan="2" height="8"></td></tr>

<tr>
<?
  $sql = " SELECT wr_10 FROM `g4_write_{$bo_table}` where wr_is_comment = '1' and wr_parent = '$wr_id' order by wr_10 "; 
  $result = sql_query($sql);

  $sql2 = " SELECT wr_10 FROM `g4_write_{$bo_table}` where wr_is_comment = '1' and wr_parent = '$wr_id' order by wr_10 ";
  $result2 = sql_query($sql2);
  $row2 = mysql_num_rows($result2); 

if ($row2 > 0) {

  for ($i=0; $row = mysql_fetch_array($result); $i++) {  
  $p += $row[wr_10];
  }
  $total_sum = round($p/$row2, 2);
  $sum = round($p/$row2, 1);

}
?>

<td valign=top><img src="<?=$board_skin_path?>/img/t6.gif" /></td>
<td>












  <table  border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2" height="4"></td></tr>
      <tr>
        <td valign="top"><span style='font:11px; color:#858585;'>참여인원 <strong><?=$row2?></strong>명</span></td>
        <td rowspan="2">&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:28pt; font-family: Arial Black; color:#858585;"><?=$total_sum?></span></td>
      </tr>
  <tr>
        <td>


<span>
          <?
if ($sum <= 1.0) {
echo "<img src='$board_skin_path/img/vstar1.gif'>";
}elseif ($sum <= 2.0) {
    echo "<img src='$board_skin_path/img/vstar2.gif'>";
}elseif ($sum <= 3.0) {
    echo "<img src='$board_skin_path/img/vstar3.gif'>";
}elseif ($sum <= 4.0) {
    echo "<img src='$board_skin_path/img/vstar4.gif'>";
}elseif ($sum <= 5.0) {
    echo "<img src='$board_skin_path/img/vstar5.gif'>";
}elseif ($sum <= 6.0) {
    echo "<img src='$board_skin_path/img/vstar6.gif'>";
}elseif ($sum <= 7.0) {
    echo "<img src='$board_skin_path/img/vstar7.gif'>";
}elseif ($sum <= 8.0) {
    echo "<img src='$board_skin_path/img/vstar8.gif'>";
}elseif ($sum <= 9.0) {
    echo "<img src='$board_skin_path/img/vstar9.gif'>";
}elseif ($sum <= 10.0) {
    echo "<img src='$board_skin_path/img/vstar10.gif'>";
}
?>
          </span></td>
        </tr>
    </table> </td>
</tr>


</table>



</td>
</tr>
</table>

             
</td>



</tr>
   
</table>

<table width="30" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="9"></td>
  </tr>
</table>
<table width=100% style='border:1px solid #DDDDDD;' bgcolor='#FAFAFA' cellpadding='3' cellspacing='10' border='0'>
<tr>

<?
$file_num_sql = " select * from g4_board_file where bf_no > 0 and bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type = '2'  order by bf_no";
$file_num_result = mysql_query($file_num_sql);

for ($i=0; $row = mysql_fetch_array($file_num_result); $i++) {
?>
<Td>
<?

$row2 = sql_fetch(" select * from g4_board_file where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type = '2' ");
?>

<script>
function Image_open1(imgSrc) {
win=window.open("","pic","scrollbars=yes,resizale=no,menubar=no,resizable=no,width=<?=$row[bf_width]+20?>,height=<?=$row[bf_height]+20?>");
win.document.write("<body topmargin='0' leftmargin='0'>");
win.document.write("<img alt='클릭하면 닫힘' style='cursor:pointer;' onclick='window.close()' style='margin-top:0;' src="+imgSrc+" width='<?=$row[bf_width]?>' height='<?=$row[bf_height]?>'>")
}
</script>

<a style='cursor:pointer;' onclick="Image_open1('<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$row[bf_file]?>');"><img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$row[bf_file]?>' height='80' style='border:px solid #555555;'></a>

<!-- <a href="#" onclick="window.open('<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$row[bf_file]?>','pic','scrollbars=no,menubar=no,status=no,toolbar=no,resizale=no,resizable=yes,width=<?=$row[bf_width]?>,height=<?=$row[bf_height]?>')"><img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$row[bf_file]?>' width='100'></a> -->

</td>

<? } ?>

</tr>
</table>


<script language="javascript">
<!--
function DisplayMenu(index) {
        for (i=1; i<=2; i++)
        if (index == i) {
        thisMenu = eval("menu" + index + ".style");
        thisMenu.display = "";
        }
        else {
        otherMenu = eval("menu" + i + ".style");
        otherMenu.display = "none";
        }
        }
-->
</script>

<style>

.oon {
border:1px solid #999999;
background:#dddddd;
padding:10 10 10 10;
height:1;
font:bold;
color:#555555;
}

.oof {
border:1px solid #999999;
background:#dddddd;
padding:5 5 5 5;
height:1;
color:#555555;
}

</style>


<div id="menu1" style="display:;">
<table border="0" cellpadding="0" cellspacing="0">
<tr><td>


</td></tr>
<tr><td>

<TABLE width="100%" cellpadding="3" cellspacing="3" border="0">
<tr><td>
 <!-- 내용 출력 -->
        <span style='padding:5 5 5 5;'><?=$view[wr_content];?></span>
       
        <?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
        <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>

  <? if ($is_signature) { echo "<tr><td align='center' style='border-bottom:1px solid #E7E7E7; padding:5px 0;'>$signature</td></tr>"; } // 서명 출력 ?>
</td></tr>
</table>

</td></tr>
</table>
</div>


<div id="menu2" style="display:none;">
<table width=100% border="0" cellpadding="0" cellspacing="0">
<tr><td>

<table width='100%' style='border-bottom:2px solid #999999;' cellpadding='0' cellspacing='0' border='0'>
<tr><td>

<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td width=5></td>
<td valign=bottom>
 
<A class=oof HREF="javascript:DisplayMenu(1)">시놉시스</a>

</td>
<td width=5></td>
<td>

<A class=oon HREF="javascript:DisplayMenu(2)">제작노트</a>

</td></tr>
</table>

</td></tr>
</table>

</td></tr>
<tr><td>

<TABLE width="100%" cellpadding="3" cellspacing="3" border="0">
<tr><td>
 <!-- 내용 출력 -->
        <span style='padding:5 5 5 5;'><?=$view[wr_9];?></span>
       
        <?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
        <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>

  <? if ($is_signature) { echo "<tr><td align='center' style='border-bottom:1px solid #E7E7E7; padding:5px 0;'>$signature</td></tr>"; } // 서명 출력 ?>
</td></tr>
</table>

</td></tr>
</table>
</div>

<?
// 코멘트 입출력
include_once("./view_comment.php");
?>

<?=$link_buttons?>

</td></tr>
</table><br>

<script language="JavaScript">
function file_download(link, file) {
    <? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
    document.location.href=link;
}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
    resizeBoardImage(<?=(int)$board[bo_image_width]?>);
    drawFont();
}
</script>
<!-- 게시글 보기 끝 -->
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로