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

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

팁앤테크

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

페이지 정보

profile_image
작성자 제로
댓글 0건 조회 55,279회 작성일 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 제로 48107 07-29
84 제로 42844 07-17
83 제로 55415 07-16
82 제로 52465 07-08
81 월드컵 55411 07-06
80 월드컵 53696 07-06
79 제로 58942 07-04
78 제로 74033 06-30
77 제로 55389 06-29
76 제로 55266 06-19
75 제로 49315 06-16
74 제로 56768 06-04
73 제로 52424 06-03
72 제로 55775 05-31
71 제로 62642 05-29
70 제로 45387 05-29
69 제로 69903 05-27
68 제로 60438 05-26
열람중 제로 55280 05-24
66 제로 53932 05-23
65 제로 54337 05-23
64 제로 51785 05-21
63 제로 47338 05-21
62 제로 50443 05-21
61 제로 60526 05-19

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
1,673
어제
23,988
최대
431,155
전체
11,537,577
Copyright (c) 株式会社YHPLUS. All rights reserved.