kcp 로그 생성 경로 설정 수정
This commit is contained in:
@ -1542,6 +1542,13 @@ if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use']
|
||||
}
|
||||
|
||||
echo module_exec_check(G5_SHOP_PATH.$exe, 'pp_cli');
|
||||
|
||||
// shop/kcp/log 디렉토리 체크 후 있으면 경고
|
||||
if(is_dir(G5_SHOP_PATH.'/kcp/log') && is_writable(G5_SHOP_PATH.'/kcp/log')) {
|
||||
echo '<script>'.PHP_EOL;
|
||||
echo 'alert("웹접근 가능 경로에 log 디렉토리가 있습니다.\nlog 디렉토리를 웹에서 접근 불가능한 경로로 변경해 주십시오.\n\nlog 디렉토리 경로 변경은 SIR FAQ를 참고해 주세요.")'.PHP_EOL;
|
||||
echo '</script>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
// LG의 경우 log 디렉토리 체크
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -216,6 +216,7 @@
|
||||
"enc_info=" . $this->m_encx_info . "," .
|
||||
"trace_no=" . $trace_no . "," .
|
||||
"cust_ip=" . $cust_ip . "," .
|
||||
"log_path=" . $log_dir . "," .
|
||||
"log_level=" . $log_level . "," .
|
||||
"opt=" . $opt . "" );
|
||||
}
|
||||
|
||||
@ -23,9 +23,18 @@ else {
|
||||
|
||||
$g_conf_home_dir = G5_SHOP_PATH.'/kcp';
|
||||
$g_conf_key_dir = '';
|
||||
|
||||
/*=======================================================================
|
||||
KCP 결제처리 로그파일 생성을 위한 로그 디렉토리 절대 경로를 지정합니다.
|
||||
로그 파일의 경로는 웹에서 접근할 수 없는 경로를 지정해 주십시오.
|
||||
영카트5의 config.php 파일이 존재하는 경로가 /home/youngcart5/www 라면
|
||||
로그 디렉토리는 /home/youngcart5/log 등으로 지정하셔야 합니다.
|
||||
로그 디렉토리에 쓰기 권한이 있어야 로그 파일이 생성됩니다.
|
||||
=======================================================================*/
|
||||
$g_conf_log_dir = '/home100/kcp'; // 존재하지 않는 경로를 입력하여 로그 파일 생성되지 않도록 함.
|
||||
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
|
||||
{
|
||||
$g_conf_log_dir = G5_SHOP_PATH.'/kcp/log';
|
||||
$g_conf_key_dir = G5_SHOP_PATH.'/kcp/bin/pub.key';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user