From 5daf35f2faf78b9a52477ceb12b0993902157e1b Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 13 Mar 2013 10:43:12 +0900 Subject: [PATCH 1/2] =?UTF-8?q?get=5Fskin=5Fstylesheet=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=EC=97=90=20realpath=20=ED=95=A8=EC=88=98=EB=A5=BC=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9=ED=95=B4=20OS=20=EB=94=94=EB=A0=89=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=20=EA=B5=AC=EB=B6=84=EC=9E=90=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 4c0d5ff07..f45ef28a4 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1795,13 +1795,16 @@ function get_skin_stylesheet($skin_path) if(!$skin_path) return ""; + $doc_root = realpath($_SERVER['DOCUMENT_ROOT']); + $skin_path = realpath($skin_path); + $str = ""; $p = parse_url(G4_URL); $skin_url = $p['scheme'].'://'.$p['host']; if(isset($p['port'])) $skin_url .= ':'.$p['port']; - $skin_url .= str_replace($_SERVER['DOCUMENT_ROOT'], "", $skin_path); + $skin_url .= str_replace("\\", "/", str_replace($doc_root, "", $skin_path)); if(is_dir($skin_path)) { if($dh = opendir($skin_path)) { From bfce185539d05815b63b5097359a6d13a9f5438d Mon Sep 17 00:00:00 2001 From: whitedot Date: Wed, 13 Mar 2013 11:11:03 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90:=20=EA=B8=B0?= =?UTF-8?q?=EB=B3=B8=ED=99=98=EA=B2=BD=EC=84=A4=EC=A0=95=20=ED=9A=8C?= =?UTF-8?q?=EC=9B=90=EC=8A=A4=ED=82=A8=20=EB=B3=80=EC=88=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/config_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adm/config_form.php b/adm/config_form.php index a1da0271b..ba043d805 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -385,7 +385,7 @@ $pg_anchor = " '.$arr[$i].''."\n"; + echo ''."\n"; } ?>