[제나플러스] 최신글 lib.php 파일 만들기 > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[제나플러스] 최신글 lib.php 파일 만들기

페이지 정보

profile_image
작성자 제로
댓글 0건 조회 55,283회 작성일 08-05-24 02:33

본문

<?
if (!defined('_GNUBOARD_')) exit;

//BANNER
function latest_banner($skin_dir="", $bo_table, $brch="", $rows=100,  $options="")
{
    global $g4;

    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/latest/basic";

    $list = array();

    $sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
    $board = sql_fetch($sql);

    $tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
    if ($brch == "H")
     $brch = "wr_hit";
 else if ($brch == "C")
     $brch ="wr_comment";
 else if ($brch == "R")
     $brch = "rand()";
 else if ($brch == "G")
     $brch = "wr_good";
 else if ($brch == "WR3")
     $brch = "wr_3";

    $sql = " select * from $tmp_write_table where wr_4='1' order by $brch asc limit 0, $rows ";
    //explain($sql);
    $result = sql_query($sql);
    for ($i=0; $row = sql_fetch_array($result); $i++)
        $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
  
    ob_start();
    include "$latest_skin_path/latest.skin.php";
    $content = ob_get_contents();
    ob_end_clean();

    return $content;
}

?>

댓글목록

등록된 댓글이 없습니다.

Total 285건 9 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 날짜
85 제로 48110 07-29
84 제로 42847 07-17
83 제로 55419 07-16
82 제로 52468 07-08
81 월드컵 55416 07-06
80 월드컵 53699 07-06
79 제로 58945 07-04
78 제로 74035 06-30
77 제로 55393 06-29
76 제로 55269 06-19
75 제로 49318 06-16
74 제로 56771 06-04
73 제로 52427 06-03
72 제로 55779 05-31
71 제로 62645 05-29
70 제로 45390 05-29
69 제로 69906 05-27
68 제로 60440 05-26
열람중 제로 55284 05-24
66 제로 53935 05-23
65 제로 54341 05-23
64 제로 51787 05-21
63 제로 47340 05-21
62 제로 50447 05-21
61 제로 60529 05-19

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5470-4714
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
2,375
어제
23,988
최대
431,155
전체
11,538,279
Copyright (c) 株式会社YHPLUS. All rights reserved.