From a241652a00320f19ce046a5a05339bb8c1da622c Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 28 Jan 2013 11:56:31 +0900 Subject: [PATCH] =?UTF-8?q?alert,=20alert=5Fclose,=20confirm=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EA=B2=BD=EB=A1=9C=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 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 980b97933..defe2e2f6 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -45,14 +45,14 @@ function get_paging($write_pages, $cur_page, $total_page, $url, $add="") $str .= '맨끝'.PHP_EOL; } - if ($str) + if ($str) return "
{$str}
"; - else + else return ""; } // 페이징 코드의
태그 다음에 코드를 삽입 -function page_insertbefore($paging_html, $insert_html) +function page_insertbefore($paging_html, $insert_html) { if ($paging_html) { return preg_replace("/^(]+>]+>)/", '$1'.$insert_html, $paging_html); @@ -60,7 +60,7 @@ function page_insertbefore($paging_html, $insert_html) } // 페이징 코드의
태그 이전에 코드를 삽입 -function page_insertafter($paging_html, $insert_html) +function page_insertafter($paging_html, $insert_html) { if ($paging_html) { return preg_replace("/(<\/span><\/div>)$/", $insert_html.'$1', $paging_html); @@ -152,7 +152,7 @@ function alert($msg='', $url='', $error=true) if (isset($g4['title'])) { $header = $g4['title']; } - include_once("{$g4['bbs_path']}/alert.php"); + include_once(G4_BBS_PATH.'/alert.php'); exit; } @@ -171,7 +171,7 @@ function alert_close($msg, $error=true) if (isset($g4['title'])) { $header = $g4['title']; } - include_once("{$g4['bbs_path']}/alert_close.php"); + include_once(G4_BBS_PATH.'/alert_close.php'); exit; } @@ -198,7 +198,7 @@ function confirm($msg, $url1='', $url2='', $url3='') if (isset($g4['title'])) { $header = $g4['title']; } - include_once("{$g4['bbs_path']}/confirm.php"); + include_once(G4_BBS_PATH.'/confirm.php'); exit; }