From 35aa368d7b7700adbee58a4cfefbd9dd9623712a Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 28 Jan 2013 11:44:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?g4=5Fpath=EB=A5=BC=20g4=5Furl=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/wrest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/wrest.js b/js/wrest.js index 4a594abaf..16cc82dc8 100644 --- a/js/wrest.js +++ b/js/wrest.js @@ -358,7 +358,7 @@ function wrestInitialized() //if (regexp.test(document.forms[i].elements[j].className)) { //document.forms[i].elements[j].style.backgroundColor = wrestFldDefaultColor; //document.forms[i].elements[j].className = "wrest_required"; - document.forms[i].elements[j].style.backgroundImage = "url('"+g4_path+"/js/wrest.gif')"; + document.forms[i].elements[j].style.backgroundImage = "url('"+g4_url+"/js/wrest.gif')"; document.forms[i].elements[j].style.backgroundPosition = "top right"; document.forms[i].elements[j].style.backgroundRepeat = "no-repeat"; } From a241652a00320f19ce046a5a05339bb8c1da622c Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 28 Jan 2013 11:56:31 +0900 Subject: [PATCH 2/2] =?UTF-8?q?alert,=20alert=5Fclose,=20confirm=20?= =?UTF-8?q?=ED=95=A8=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; }