|
|
|
22년 전
|
조회 767
|
|
|
|
22년 전
|
조회 775
|
|
|
|
22년 전
|
조회 721
|
|
|
|
22년 전
|
조회 1,232
|
|
|
|
22년 전
|
조회 590
|
|
|
|
22년 전
|
조회 901
|
|
|
|
22년 전
|
조회 621
|
|
|
|
22년 전
|
조회 835
|
|
|
|
22년 전
|
조회 767
|
|
|
|
22년 전
|
조회 792
|
|
|
|
22년 전
|
조회 900
|
|
|
|
22년 전
|
조회 884
|
|
|
|
22년 전
|
조회 680
|
|
|
|
22년 전
|
조회 760
|
|
|
|
22년 전
|
조회 816
|
|
|
|
22년 전
|
조회 750
|
|
|
|
22년 전
|
조회 632
|
|
|
|
22년 전
|
조회 696
|
|
|
|
22년 전
|
조회 820
|
|
|
|
22년 전
|
조회 816
|
댓글 3개
자리를 및쪽에 넣어 안되었군요.....~~~~
########################################################
// 최신글을 추출한다.
function latest($skin_dir='', $bo_table, $rows=10, $len=40)
{
global $latest_skin, $cfg, $reldir, $bbsdir;
include_once "$reldir/$bbsdir/gblayer.php";
// 스킨디렉토리값이 넘어왔다면
if ($skin_dir) {
$latest_skin = "$reldir/$bbsdir/$cfg[dir_skin]/latest/$skin_dir";
}
$sql = " select * from $cfg[table_board] where bo_table = '$bo_table' ";
$bo = sql_fetch_array($sql);
$bo_subject = $bo[bo_subject];
include "$latest_skin/latest_head.skin.php";
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0
order by wr_num, wr_datetime desc limit 0, $rows ";
$result = sql_query_error($sql);
for ($i=0; $row = mysql_fetch_array($result); $i++) {
$wr_subject = conv_subject($row[wr_subject], $len,"…");
//$wr_name = cut_str($row[wr_name],10);
$wr_name = gblayer($row[mb_id], cut_str($row[wr_name],10), $row[wr_email], $row[wr_homepage], "$reldir/$bbsdir");
$wr_date = substr($row[wr_datetime],2,8);
$file1_image = "$reldir/$cfg[dir_file]/$bo_table/$row[wr_file1]"; // 추가 부분 입니다.
// new 이미지
$icon_new = "";
if ($row[wr_datetime] >= date("Y-m-d H:i:s", time() - $bo[bo_new] * 3600)) {
$icon_new = "<img src='$latest_skin/icon_new.gif' align=absmiddle>";
}
##########################################################################
ㅇ위부분 에서 보면
$file1_image = "$reldir/$cfg[dir_file]/$bo_table/$row[wr_file1]"; // 추가 부분 입니다.
이부분 추가 시켜주셔야 됩니다.