diff --git a/config.php b/config.php index eb8e86cc3..ebd759b78 100644 --- a/config.php +++ b/config.php @@ -1,4 +1,4 @@ -= '5.3.0') { /* 보안서버 도메인 -회원가입, 글쓰기에 사용되는 https 로 시작되는 주소를 말합니다. +회원가입, 글쓰기에 사용되는 https 로 시작되는 주소를 말합니다. 포트가 있다면 도메인 뒤에 :443 과 같이 입력하세요. 보안서버주소가 없다면 공란으로 두시면 되며 보안서버주소 뒤에 / 는 붙이지 않습니다. 입력예) https://www.domain.com:443/gnuboard4s @@ -53,13 +53,20 @@ define('G4_SNS_DIR', 'sns'); define('G4_SYNDI_DIR', 'syndi'); // URL 은 브라우저상에서의 경로 (도메인으로 부터의) - if (G4_DOMAIN) { define('G4_URL', G4_DOMAIN); } else { - define('G4_URL', $g4_path['url']); + if (isset($g4_path['url'])) + define('G4_URL', $g4_path['url']); + else + define('G4_URL', ''); +} + +if (isset($g4_path['path'])) { + define('G4_PATH', $g4_path['path']); +} else { + define('G4_PATH', ''); } -define('G4_PATH', $g4_path['path']); define('G4_ADMIN_URL', G4_URL.'/'.G4_ADMIN_DIR); define('G4_BBS_URL', G4_URL.'/'.G4_BBS_DIR);