From f368d7cb9d681adc8b83872c391c743087dc4417 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 12 Mar 2014 15:04:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?get=5Fpaging=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=A3=BC=EC=84=9D=EB=AC=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index a7011c249..ec8f6a05f 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -33,7 +33,7 @@ function get_microtime() } -// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL +// 한페이지에 보여줄 행, 현재페이지, 총페이지수, URL function get_paging($write_pages, $cur_page, $total_page, $url, $add="") { $url = preg_replace('#&page=[0-9]*(&page=)$#', '$1', $url); From 343de88d627696820977022d416293e0c4c14281 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 12 Mar 2014 16:55:01 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EB=82=A0=EC=A7=9C=ED=98=95=EC=8B=9D=20?= =?UTF-8?q?=EB=B3=80=ED=99=98=20=ED=95=A8=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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/common.lib.php b/lib/common.lib.php index ec8f6a05f..4b8e0d4cc 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2604,4 +2604,15 @@ function htmlspecialchars2($str) $str = strtr($str, $trans); return $str; } + +// date 형식 변환 +function conv_date_format($format, $date, $add='') +{ + if($add) + $timestamp = strtotime($add, strtotime($date)); + else + $timestamp = strtotime($date); + + return date($format, $timestamp); +} ?> \ No newline at end of file