From ff071db4472c44f3cdf8c6d5f7746d18b567c4b4 Mon Sep 17 00:00:00 2001 From: "altob.rd" Date: Sun, 26 Nov 2017 16:43:31 +0800 Subject: [PATCH] upd --- core/CC_Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/CC_Controller.php b/core/CC_Controller.php index b709ac4..4859cc5 100644 --- a/core/CC_Controller.php +++ b/core/CC_Controller.php @@ -30,7 +30,7 @@ class CC_Controller extends CI_Controller // ----- 常數 ----- define('APP_VERSION', '100'); // 版本號 define('MAX_AGE', 604800); // cache秒數, 此定義1個月 - define('SERVER_URL', 'http://'.(isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost').'/'); // URL + define('SERVER_URL', 'http://'.(isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost') . ($_SERVER['SERVER_PORT'] != 60123 ? ':' . $_SERVER['SERVER_PORT'] : '') .'/'); // URL for 同外網IP, 不同PORT define('WEB_LIB', SERVER_URL.'/libs/'); // 網頁lib define('BOOTSTRAPS', WEB_LIB.'bootstrap_sb/'); // bootstrap lib define('WEB_URL', SERVER_URL.APP_NAME.'/'); // 網頁路徑