diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index 4cef22acb..fefa62ecf 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -230,7 +230,14 @@ class Context define('_XE_SITELOCK_MESSAGE_', $message); header("HTTP/1.1 403 Forbidden"); - include _XE_PATH_ . 'common/tpl/sitelock.html'; + if(FileHandler::exists(_XE_PATH_ . 'common/tpl/sitelock.user.html')) + { + include _XE_PATH_ . 'common/tpl/sitelock.user.html'; + } + else + { + include _XE_PATH_ . 'common/tpl/sitelock.html'; + } exit; } } diff --git a/classes/file/FileHandler.class.php b/classes/file/FileHandler.class.php index 29d94eb7f..db1a82f62 100644 --- a/classes/file/FileHandler.class.php +++ b/classes/file/FileHandler.class.php @@ -515,7 +515,7 @@ class FileHandler * @param string $post_data Request arguments array for POST method * @return string If success, the content of the target file. Otherwise: none */ - function getRemoteResource($url, $body = null, $timeout = 3, $method = 'GET', $content_type = null, $headers = array(), $cookies = array(), $post_data = array()) + function getRemoteResource($url, $body = null, $timeout = 3, $method = 'GET', $content_type = null, $headers = array(), $cookies = array(), $post_data = array(), $request_config = array()) { try { @@ -533,6 +533,15 @@ class FileHandler else { $oRequest = new HTTP_Request($url); + + if(count($request_config) && method_exists($oRequest, 'setConfig')) + { + foreach($request_config as $key=>$val) + { + $oRequest->setConfig($key, $val); + } + } + if(count($headers) > 0) { foreach($headers as $key => $val) diff --git a/config/config.inc.php b/config/config.inc.php index 14058f34f..9982dd018 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -29,7 +29,7 @@ define('__ZBXE__', __XE__); /** * Display XE's full version. */ -define('__XE_VERSION__', '1.7.5.2'); +define('__XE_VERSION__', '1.7.5.3'); define('__XE_VERSION_ALPHA__', (stripos(__XE_VERSION__, 'alpha') !== false)); define('__XE_VERSION_BETA__', (stripos(__XE_VERSION__, 'beta') !== false)); define('__XE_VERSION_RC__', (stripos(__XE_VERSION__, 'rc') !== false)); diff --git a/modules/admin/admin.admin.controller.php b/modules/admin/admin.admin.controller.php index 6e1d09f3b..ef76a23c8 100644 --- a/modules/admin/admin.admin.controller.php +++ b/modules/admin/admin.admin.controller.php @@ -467,11 +467,19 @@ class adminAdminController extends admin */ function procAdminRemoveIcons() { + + $site_info = Context::get('site_module_info'); + $virtual_site = ''; + if($site_info->site_srl) + { + $virtual_site = $site_info->site_srl . '/'; + } + $iconname = Context::get('iconname'); - $file_exist = FileHandler::readFile(_XE_PATH_ . 'files/attach/xeicon/' . $iconname); + $file_exist = FileHandler::readFile(_XE_PATH_ . 'files/attach/xeicon/' . $virtual_site . $iconname); if($file_exist) { - @FileHandler::removeFile(_XE_PATH_ . 'files/attach/xeicon/' . $iconname); + @FileHandler::removeFile(_XE_PATH_ . 'files/attach/xeicon/' . $virtual_site . $iconname); } else { diff --git a/modules/admin/admin.admin.model.php b/modules/admin/admin.admin.model.php index 1c863da8a..db3c06962 100644 --- a/modules/admin/admin.admin.model.php +++ b/modules/admin/admin.admin.model.php @@ -947,14 +947,22 @@ class adminAdminModel extends admin function iconUrlCheck($iconname, $default_icon_name) { - $file_exsit = FileHandler::readFile(_XE_PATH_ . 'files/attach/xeicon/' . $iconname); + + $site_info = Context::get('site_module_info'); + $virtual_site = ''; + if($site_info->site_srl) + { + $virtual_site = $site_info->site_srl . '/'; + } + + $file_exsit = FileHandler::readFile(_XE_PATH_ . 'files/attach/xeicon/' . $virtual_site . $iconname); if(!$file_exsit) { $icon_url = './modules/admin/tpl/img/' . $default_icon_name; } else { - $icon_url = $db_info->default_url . 'files/attach/xeicon/' . $iconname; + $icon_url = $db_info->default_url . 'files/attach/xeicon/' . $virtual_site . $iconname; } return $icon_url; } diff --git a/modules/admin/lang/lang.xml b/modules/admin/lang/lang.xml index aad7294c4..c2cf4701a 100644 --- a/modules/admin/lang/lang.xml +++ b/modules/admin/lang/lang.xml @@ -1597,8 +1597,8 @@ - 만약 접근이 차단된 경우 './files/config/db.config.php' 파일에서 `'use_sitelock' => 'Y'`를 `'use_sitelock' => 'N'`으로 변경하여 차단을 해제할 수 있습니다.
사이트 잠금 디자인 파일의 위치는 './common/tpl/sitelock.html' 입니다.]]>
- If the access is blocked, you can unbrick this by changing `'use_sitelock' => 'Y'` to `'use_sitelock' => 'N'` in './files/config/db.config.php.'
The file of site lock design is at './common/tpl/sitelock.html.']]>
+ 만약 접근이 차단된 경우 './files/config/db.config.php' 파일에서 `'use_sitelock' => 'Y'`를 `'use_sitelock' => 'N'`으로 변경하여 차단을 해제할 수 있습니다.
사이트 잠금 디자인 파일의 위치는 './common/tpl/sitelock.html'이며
'./common/tpl/sitelock.user.html' 파일을 만들어서 디자인 파일을 편집하실 수 있습니다.]]>
+ If the access is blocked, you can unbrick this by changing `'use_sitelock' => 'Y'` to `'use_sitelock' => 'N'` in './files/config/db.config.php.'
The file of site lock design is at './common/tpl/sitelock.html'.
You can modify design file by creating './common/tpl/sitelock.user.html'.]]>
もし接近が遮断された場合、'./files/config/db.config.php' ファイルから `'use_sitelock' => 'Y'`を `'use_sitelock' => 'N'`へ変更すれば遮断が解除できます。
サイトロックの設計ファイルの場所は、'./commo/tpl/sitelock.html' です。]]>
diff --git a/modules/admin/tpl/_header.html b/modules/admin/tpl/_header.html index 947ee2759..71c100f49 100644 --- a/modules/admin/tpl/_header.html +++ b/modules/admin/tpl/_header.html @@ -24,7 +24,7 @@