From 92e4b0aa9edcb008d0925f5a634bd3a5ef74dc8c Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 18 Mar 2013 11:53:52 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=BD=EB=A1=9C=EB=AC=B8=EC=A0=9C=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index 720dda438..d380accc4 100644 --- a/common.php +++ b/common.php @@ -71,7 +71,8 @@ function g4_path() { $path = dirname(__FILE__); // 예) /home/sir/www/g4s $linux_dir = str_replace("\\", "/", $path); // 예) /home/sir/www/g4s - $document_root = str_replace("\\", "/", $_SERVER['DOCUMENT_ROOT']); // 예) /home/sir/www + //$document_root = str_replace("\\", "/", $_SERVER['DOCUMENT_ROOT']); // 예) /home/sir/www + $document_root = str_replace("\\", "/", realpath($_SERVER['DOCUMENT_ROOT'])); $base_dir = preg_replace('#^'.$document_root.'#i', '', $linux_dir); // 예) /g4s $port = $_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : ''; $http = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ? 's' : '') . '://';