From 1fa73a0569d153512183b56a3cd04bc6a15e15fd Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 4 Mar 2013 16:31:26 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=EC=8A=A4=ED=8A=B8=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=ED=8C=8C=EC=9D=BC=EC=A0=95=EB=B3=B4=EB=A5=BC=20=EC=96=BB?= =?UTF-8?q?=EA=B8=B0=EC=9C=84=ED=95=9C=20get=5Flist=5Ffile=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/common.lib.php b/lib/common.lib.php index 80cb4d5d7..9eaea123f 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -295,6 +295,18 @@ function get_file($bo_table, $wr_id) } +// 게시글 리스트에 쓰일 1개의 파일 정보를 얻는다. +function get_list_file($bo_table, $wr_id) +{ + global $g4; + + $sql = " select * from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '$wr_id' order by bf_no "; + $row = sql_fetch($sql); + + return $row; +} + + // 폴더의 용량 ($dir는 / 없이 넘기세요) function get_dirsize($dir) {