diff --git a/adm/shop_admin/admin.shop.lib.php b/adm/shop_admin/admin.shop.lib.php
index 7b9da993e..9944443d6 100644
--- a/adm/shop_admin/admin.shop.lib.php
+++ b/adm/shop_admin/admin.shop.lib.php
@@ -176,6 +176,10 @@ function check_order_inicis_tmps(){
}
}
+ if( $default['de_pg_service'] == 'lg' && function_exists('check_log_folder') ){
+ check_log_folder(G5_LGXPAY_PATH.'/lgdacom/log');
+ }
+
set_cookie('admin_visit_time', G5_SERVER_TIME, 3600); //1시간 간격으로 체크
}
} //end function check_order_inicis_tmps
diff --git a/adm/shop_admin/configform.php b/adm/shop_admin/configform.php
index d0a43282d..c604c035b 100644
--- a/adm/shop_admin/configform.php
+++ b/adm/shop_admin/configform.php
@@ -1745,16 +1745,29 @@ if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use']
$log_path = G5_LGXPAY_PATH.'/lgdacom/log';
if(!is_dir($log_path)) {
- echo ''.PHP_EOL;
- } else {
- if(!is_writable($log_path)) {
+
+ if( is_writable(G5_LGXPAY_PATH.'/lgdacom/') ){
+ // 디렉토리가 없다면 생성합니다. (퍼미션도 변경하구요.)
+ @mkdir($log_path, G5_DIR_PERMISSION);
+ @chmod($log_path, G5_DIR_PERMISSION);
+ }
+
+ if(!is_dir($log_path)){
echo ''.PHP_EOL;
}
}
+
+ if(is_writable($log_path)) {
+ if( function_exists('check_log_folder') ){
+ check_log_folder($log_path);
+ }
+ } else {
+ echo ''.PHP_EOL;
+ }
}
// 이니시스의 경우 log 디렉토리 체크