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,218  
아래는 블로그 최신글에 사용된 소스
그 아래는 최신블로그에 사용된 소스
원본은 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>";
                }
                ?>
주님과 함께 모닝커피를

 
 

Total 167
번호 제   목 글쓴이 날짜 조회
47 [그누소스] 도대체 안지워지는 유령 폴더,파일을 지워보… Morning 02-05 5299
46 [그누스킨] 재정관리스킨 Morning 02-03 3815
45 [그누스킨] morningThumb2Yf Morning 07-25 3296
44 [그누스킨] morningwebzin Morning 07-25 3088
43 [그누스킨] YmorningThumba,YmorningThumbab Morning 07-12 3097
42 [그누스킨] YmorningThumb2,YmorningThumb2b Morning 07-12 3420
41 [그누소스] 네비게이션 (1) Morning 02-17 4579
40 [그누소스] 홈관리메뉴 (1) Morning 02-16 3266
39 [그누스킨] morning_webzin3 Morning 02-13 3375
38 [그누소스] 블로그 최신글 Morning 02-12 4219
37 [홈준비] 웹진과제 Morning 02-06 4692
36 [소스문법] dq_thumb_engine2를 쓴 최신글스킨에서 썸네일 안… (1) Morning 02-04 4172
35 [그누소스] 생성한 썸네일을 스킨에서 몽땅 삭제하기 Morning 02-04 3485
34 [그누소스] 썸네일 생성- 않으면서 빠르게 출력 (2) Morning 02-04 3327
33 [소스문법] include() (5) Morning 02-03 5430
 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