특정게시판에 글을 남겨야 다운로드가 되는 gbview.skin.php > 그누3 팁자료실

그누3 팁자료실

특정게시판에 글을 남겨야 다운로드가 되는 gbview.skin.php 정보

일반 특정게시판에 글을 남겨야 다운로드가 되는 gbview.skin.php

첨부파일

gbview.skin.php (7.5K) 33회 다운로드 2004-03-12 08:53:31

본문

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

if (!$skin_no) $skin_no = "01";
?>

<link rel='stylesheet' href='<?=$board_skin?>/style<?=$skin_no?>.css' type='text/css'>

<table width='<?=$width?>' align=center border=0 cellpadding=0 cellspacing=0><tr><td>

<table width='100%' border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2 class=line></td></tr>
<tr class=ct>
    <td>&nbsp;&nbsp;<font color=#000000><b><? if ($is_category) echo "[$category_name] "; ?><?=$subject?></b></font></td><td align=right><?=$datetime?>&nbsp;&nbsp;</td>
</tr>
<tr><td height=25>&nbsp;&nbsp;<?=$name?> &nbsp;(<?=$ip?>)</td><td align=right><span class=wview>조회</span> : <?=$hit?>&nbsp;&nbsp;<? if ($is_good) echo "<span class=wview>추천</span> : " . $good; ?>&nbsp;&nbsp;<? if ($is_nogood) echo "<span class=wview>비추천</span> : " . $nogood; ?>&nbsp;&nbsp;</td></tr>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<?
// 링크 설정한 값만큼 출력
for ($i=1; $i<=$cfg[link_count]; $i++) {
    if ($link[$i][link]) { echo "<tr><td colspan=2 height=20>&nbsp;&nbsp;<span class=wview>Link</span> : <a href='{$link[$i][href]}' target='$default[de_link_target]'>{$link[$i][link]}</a>, Hit:{$link[$i][hit]}</td></tr>"; }
}
?>

<?
// 토크박스에 글을 남겨야 다운로드가 가능함
$sql = " select count(*) from {$cfg[write_table_prefix]}talkbox
          where wr_comment = 0
            and wr_datetime >= SUBDATE(NOW(), INTERVAL 7 DAY) ";
if ($member[mb_id]) {
    $sql .= " and mb_id = '$member[mb_id]' ";
} else {
    $sql .= " and wr_ip = '$REMOTE_ADDR' ";
}
$row = sql_fetch($sql);
if ($row[0] || $member[mb_level] >= $cfg[level_max]) {
    for ($i=1; $i<=$cfg[file_count]; $i++) {
        if ($file[$i][source]) {
            echo "<tr><td colspan=2 height=40>&nbsp;&nbsp;<span class=wview>Download</span> : <a href='{$file[$i][href]}'>{$file[$i][source]} ({$file[$i][size]})</a>, Down:{$file[$i][download]}</td></tr>";
        }
    }
}
?>
<tr>
    <td colspan=2>
        <table width=100% cellpadding=5>
        <tr>
            <td style='word-break:break-all;' class='lh' height=100>

                <?
                for ($i=1; $i<=$cfg[file_count]; $i++) {
                    if ($file[$i][view]) { echo $file[$i][view]; }
                }
                ?>

                <!-- 내용 출력 -->
                <span class=content><?=$content?></span>

                <!-- 테러 태그 방지용 -->
                </xml></xmp><a href=""></a><a href=''></a>
            </td>
        </tr>
        <? if ($is_signature) { echo "<tr><td>$signature</td></tr>"; } // 서명 출력 ?>
        </table>
    </td>
</tr>
</table><br>


<? if ($is_comment) { ?>
    <!-- 코멘트 내용 -->
    <? for ($i=0; $i<count($list); $i++) { ?>
    <a name='c<?=$list[$i][wr_id]?>'></a>

    <table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
    <tr>
        <td height=25>&nbsp;&nbsp;<?=$list[$i][name]?>&nbsp;(<?=$list[$i][ip]?>)&nbsp;<? if ($list[$i][is_del]) { echo "{$list[$i][del_href]}<img src='$board_skin/com_del.gif' border=0 align=absmiddle></a>&nbsp;"; } ?></td><td align=right><?=$list[$i][datetime]?>&nbsp;&nbsp;</td>
    </tr>
    <tr>
        <td valign=top colspan=2>
            <table width=100% cellpadding=7 cellspacing=0>
            <tr>
                <td class='comment'><?=$list[$i][content]?>&nbsp;</td>
            </tr>
            </table>
        </td>
    </tr>
    <tr><td colspan=2 height=1 bgcolor=#DADADA></td></tr>
    </table><br>
    <? } // for ?>

    <? if ($is_comment_write) { ?>
    <!-- 코멘트 쓰기 -->
    <table width=<?=$width?> align=center cellpadding=10 cellspacing=0 border=0 bgcolor=#F5F5F5>
    <form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
    <input type=hidden name=w        value='c'>
    <input type=hidden name=bo_table value='<?=$bo_table?>'>
    <input type=hidden name=sselect  value='<?=$sselect?>' >
    <input type=hidden name=stext    value='<?=$stext?>'>
    <input type=hidden name=wr_id    value='<?=$wr_id?>'>
    <input type=hidden name=page    value='<?=$page?>'>
    <input type=hidden name=section  value='<?=$section?>'>
    <tr>
        <td align=center>
            <table width=100% cellpadding=0 cellspacing=0 bgcolor=#FFFFFF border=0>
                <tr>
                    <td height=35>&nbsp;&nbsp;이름 : <?=preg_replace("/class=input/", "class=ib", $c_name)?>&nbsp;&nbsp;
                    <? if ($is_guest) { ?>
                    비밀번호 : <input type=password name=wr_passwd size=10 class=ib required itemname='비밀번호'></td>
                    <? } ?>
                    <td align=right><a href='javascript:textarea_size(document.fgbview.wr_content, 5)'><img src='<?=$board_skin?>/icon_down.gif' border=0 align=absmiddle></a> <a href='javascript:textarea_size(document.fgbview.wr_content, -5)'><img src='<?=$board_skin?>/icon_up.gif' border=0 align=absmiddle></a>&nbsp;&nbsp;&nbsp;</td>
                </tr>
                <tr>
                    <td colspan=2 align=center>
                        <table width=98% cellpadding=0 cellspacing=0>
                            <tr><td><textarea name=wr_content style='width:100%; line-height:150%;' rows=5 required itemname='내용' class=textarea></textarea></td><td width=64><input type=image src='<?="$board_skin/btncomment.gif"?>' border=0 align=absmiddle></td></tr>
                            <tr><td colspan=2 height=5></td></tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    </form>
    </table><br>
    <? } // if ?>

<? } // if ?>


<!-- 링크 -->
<table width='100%' border=0 cellpadding=0 cellspacing=0>
<tr>
    <td width=70% height=35>
        <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록' align=absmiddle></a>"; } ?>
        <? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록' align=absmiddle></a>"; ?>

        <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기' align=absmiddle></a>"; } ?>
        <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변' align=absmiddle></a>"; } ?>

        <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정' align=absmiddle></a>"; } ?>
        <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제' align=absmiddle></a>"; } ?>

        <? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천' align=absmiddle></a>"; } ?>
        <? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천' align=absmiddle></a>"; } ?>

        <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사' align=absmiddle></a>"; } ?>
        <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동' align=absmiddle></a>"; } ?>
    </td>
    <td width=30% align=right>
        <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin/prev.gif' border=0 alt='이전글' align=absmiddle></a>"; } ?>
        <? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin/next.gif' border=0 alt='다음글' align=absmiddle></a>"; } ?>
    </td>
</tr>
</table>

</td></tr></table>
추천
0

댓글 전체

$sql = " select count(*) from {$cfg[write_table_prefix]}talkbox
talkbox 라는 게시판이 있어야 하므로
이 부분은 자신의 홈페이지에 맞게 수정하셔야 합니다.
정말로 이런 소스를 만드신다는것 저로서는 대단하게 느껴질 뿐입니다...^^;;;
 
하지만 더 욕심이 하나 있다면 재대로 된 음악게시판이 하나 있었으면 하는 바램입니다...^^;;
 
벅스뮤직에 있는것과 비슷한 플래이어가 있었으면 좋을것 같습니다...
 
다중 선택하고 가사와 목록을 볼수있고 기타등등...^^;;
 
제가 해보려고 했지만... 어떻게 해야할지...;;;;;
 
그누보드를 사용하면서 가끔 생각이 나더군요...^^;;;
 
암튼... 관리자님 대단합니다... ^^;;
전체 1,026
그누3 팁자료실 내용 검색

회원로그인

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