2026 년 4 월

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

 
그누스킨 그누소스 소스변경 소스문법 홈준비 기타
 
작성일 : 07-02-12 14:14
[그누소스] 블로그 최신글
 글쓴이 : Morning (124.♡.110.121)
조회 : 4,264  
아래는 블로그 최신글에 사용된 소스
그 아래는 최신블로그에 사용된 소스
원본은 gblog.index.php 안에 담겨져있음

        <table width=95% cellpadding=0 cellspacing=0 align=center>
        <?
        $sql = " select * from {$gb4['post_table']} where secret=1 order by id desc limit 7 ";
        $result = sql_query($sql);
        for($i=0;$row=sql_fetch_array($result);$i++) {
            if ($i>0) {
                echo "<tr><td height=5></td></tr>";
                echo "<tr><td height=1 BACKGROUND='{$g4[path]}/img/dot_line.gif'></td></tr>";
                echo "<tr><td height=5></td></tr>";
            }
            $sql2 = " select mb_id, writer from {$gb4['blog_table']} where id = '$row[blog_id]' ";
            $row2 = sql_fetch($sql2);
            $sql3 = " select category_name from {$gb4['category_table']} where id = '$row[category_id]' ";
            $row3 = sql_fetch($sql3);
            if( empty($row3[category_name]) ) $row3[category_name] = '전체';

            $title = $row[title];
            $title = cut_str($title, 35);
 
            $content = $row[content];
            $content = strip_tags($content);
            $content1 = cut_str($content, 230);
            $content2 = cut_str($content, 270);
            //$yymmdd = date("y-m-d", strtotime($row[post_date]));
            $yymmdd2 = date("y-m-d", strtotime($row[real_date]));
            $sql4 = " select * from {$gb4['file_table']} where post_id = '$row[id]' ";
            $row4 = sql_fetch($sql4);

            //섬네일 관련 설정
            $image = $row4[save_name]; // 첫번째 파일이 이미지라면
            if (preg_match("/\.(gif|jpg|png)$/i", $image)) {

include_once "$g4[path]/thumbEngine/dq_thumb_engine2.php";

$dqEngine['using_usm'] = 1;
// 1또는 0 사용, 썸네일 이미지에 언샵마스크 필터를 적용한다. (샤픈필터의 한 종류)
// GD2.0 이상, PHP 4.3.2 이외의 버전일때 기본값 1, 그외 상황에서는 기본값 0 자동선택
// 1로 지정 하더라도 GD2.0이 아니거나 PHP 4.3.2 환경이면 자동으로 0으로 재설정 된다.
$dqEngine['usm_option1'] = 30; // USM 필터의 amount(강도) 수치, 기본값 : 60
$dqEngine['usm_option2'] = 0.2; // USM 필터의 radius(반경) 수치, 기본값 : 0.5
$dqEngine['usm_option3'] = 0; // USM 필터의 threshold(제외픽셀) 수치, 기본값 : 1
// USM 필터의 세부 설정은 포토샵의 그것과 사용법이 동일합니다.
$dqEngine['thumb_resize'] = 0;
// 0, 1, 2 사용
// 0: 원본 비율 대칭 리사이즈, 1: 비율유지 안함(찌그러짐), 2: 원본비율 리사이즈 + Center Crop

$thumb_width=90;//섬네일 최대폭  ~~ 1:1.6 황금비율
$thumb_height=60;//섬네일 최대높이

$thumbsource="$g4[path]/data/blog/file/$row2[mb_id]/" . $image;
$thumb_path ="$g4[path]/data/blog/file/$row2[mb_id]/" . 'dq_thumb';

if (!is_dir($thumb_path)) {
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
}

$thumbimg="$thumb_path/thumb_lablog_" . $image;
make_thumb($thumb_width,$thumb_height,$thumbsource,$thumbimg);
@chmod($thumbimg, 0707);

            }
            if ($image) {
            echo "<tr><td><table><tr><td style='border:0px solid #CCCCCC; padding:3px' valign='middle'><img src='{$thumbimg}'></td><td width=5></td>
<td valign=top>
<table  cellpadding=0 cellspacing=0>
<tr>
<td style='padding-bottom:3;'>
<img src='$gb4[blog_path]/img/ico_list.gif' border=0> <span class='cloudy small'>[ </span><a style='cloudy small' href='".get_blog_url($row2[mb_id])."'>$row2[writer]님 Blog </a><span class='cloudy small'> / </span><a class='cloudy small' href='".get_category_url($row3[category_name], $row[mb_id])."'>$row3[category_name]</a><span class='cloudy small'> ]</span>&nbsp;
<span style='font-weight:bold;letter-spacing:-1px;'><a href='".get_post_url($row[id],$row2[mb_id])."'>$title</a></span>&nbsp; <span class='small cloudy'>$yymmdd2</span>
</td>
</tr>
<tr>
<td>
<span style='small'>{$content1}</span>
</td>
</tr>
</table>
</td></tr></table></td></tr>";
            }
            else {
            echo "<tr><td>
<table  cellpadding=0 cellspacing=0>
<tr>
<td style='padding-bottom:3;'>
<img src='$gb4[blog_path]/img/ico_list.gif' border=0> <span class='cloudy small'>[ </span><a style='cloudy small' href='".get_blog_url($row2[mb_id])."'>$row2[writer]님 Blog </a><span class='cloudy small'> / </span><a class='cloudy small' href='".get_category_url($row3[category_name], $row[mb_id])."'>$row3[category_name]</a><span class='cloudy small'> ]</span>&nbsp;
<span style='font-weight:bold;letter-spacing:-1px;'><a href='".get_post_url($row[id],$row2[mb_id])."'>$title</a></span>&nbsp; <span class='small cloudy'>$yymmdd2</span>
</td>
</tr>
<tr>
<td>
<span style='small'>{$content2}</span>
</td>
</tr>
</table>
</td></tr>";
            }
        }
        if ($i==0) {
            echo "<tr><td height=100>새로 올라온 글이 아직 없습니다.</td></tr>";
        }
        ?>
      </table>
-----------------------------------------------------

                <?
                $sql = " select * from {$gb4['blog_table']} order by id desc ";
                $result = sql_query($sql);
                for($i=0;$row=sql_fetch_array($result);$i++) {
                    echo "<tr><td height=20><span class='cloudy'>&middot;</span> ";
                    echo "<a href='".get_blog_url($row[mb_id])."'>";
                    echo $row[blog_name];
                    echo "</a> <span class='small cloudy'>(".(int)$row[post_count].")</span>";
                    echo "</td></tr>";
                }
                ?>
[이 게시물은 morning님에 의해 2009-11-22 17:49:48 홈관리자료실에서 이동 됨]
[이 게시물은 morning님에 의해 2009-11-22 17:56:43 알림판에서 이동 됨]
주님과 함께 모닝커피를

 
 

Total 167
번호 제   목 글쓴이 날짜 조회
107 [그누소스] 숫자변경 Morning 02-22 3355
106 [소스변경] 온라인문의 (1) Morning 02-22 6691
105 [소스문법] 일정한 부분을 다른 것으로 치환하는 방법 (9) Morning 02-22 6530
104 [소스문법] div, table (2) Morning 01-20 5520
103 [소스변경] 블로그단축주소를 위한 소스변경 Morning 02-19 4485
102 [그누소스] 네비게이션 (1) Morning 02-17 4548
101 [그누소스] 홈관리메뉴 (1) Morning 02-16 3348
100 [소스변경] 펼침카테고리 사용시 Morning 02-15 3893
99 [그누스킨] morning_webzin3 Morning 02-13 4000
98 [그누소스] 블로그 최신글 Morning 02-12 4265
97 [소스변경] 까페를 위한 소스변경사항 Morning 02-07 4183
96 [홈준비] 웹진과제 Morning 02-06 5148
95 [소스문법] dq_thumb_engine2를 쓴 최신글스킨에서 썸네일 안… (1) Morning 02-04 5551
94 [그누소스] 생성한 썸네일을 스킨에서 몽땅 삭제하기 Morning 02-04 3456
93 [그누소스] 썸네일 생성- 않으면서 빠르게 출력 (2) Morning 02-04 3717
 1  2  3  4  5  6  7  8  9  10    

Therefore, holy brothers, who share in the heavenly calling,
fix your thoughts on Jesus, the apostle and high priest whom we confess.
Let us fix our eyes on Jesus, the author and perfecter of our faith,
who for the joy set before him endured the cross, scorning its shame,
and sat down at the right hand of the throne of God