kcp 결제모듈 바이너리 파일 정리 및 64비트에 대응하도록 수정
This commit is contained in:
@ -1191,17 +1191,16 @@ if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use']
|
|||||||
$is_linux = false;
|
$is_linux = false;
|
||||||
|
|
||||||
$exe = '/kcp/bin/';
|
$exe = '/kcp/bin/';
|
||||||
if($is_linux)
|
if($is_linux) {
|
||||||
$exe .= 'pp_cli';
|
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||||
else
|
$exe .= 'pp_cli';
|
||||||
|
else
|
||||||
|
$exe .= 'pp_cli_x64';
|
||||||
|
} else {
|
||||||
$exe .= 'pp_cli_exe.exe';
|
$exe .= 'pp_cli_exe.exe';
|
||||||
|
}
|
||||||
|
|
||||||
echo module_exec_check(G5_SHOP_PATH.$exe, 'pp_cli');
|
echo module_exec_check(G5_SHOP_PATH.$exe, 'pp_cli');
|
||||||
|
|
||||||
// 모바일 결제 모듈 체크
|
|
||||||
if(defined('G5_USE_MOBILE') && G5_USE_MOBILE == true) {
|
|
||||||
echo module_exec_check(G5_MSHOP_PATH.$exe, 'pp_cli');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +0,0 @@
|
|||||||
-----BEGIN RSA PUBLIC KEY-----
|
|
||||||
MIGJAoGBAMEn9niy+ZB7GGn9JOA9csyJo2vTpd3/ieHW8nCfiDf77YJvEtUmudCU
|
|
||||||
JXMNQ1uBuHq7+IzajoJhhvGXyOHVr9w+Oq/d8XZPPe7X2agh1WAMDV4mjQNaAncr
|
|
||||||
DU1qxlTFuAdKRkK7qkqyWSHHtq0HaW/zmBmcIoGn4RwY9y7oKFBpAgMBAAE=
|
|
||||||
-----END RSA PUBLIC KEY-----
|
|
||||||
@ -165,7 +165,16 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$res_data = $this->mf_exec( $home_dir . "/bin/pp_cli",
|
if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||||
|
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||||
|
$bin_exe = $home_dir.'/bin/pp_cli';
|
||||||
|
else
|
||||||
|
$bin_exe = $home_dir.'/bin/pp_cli_x64';
|
||||||
|
} else {
|
||||||
|
$bin_exe = $home_dir.'/bin/pp_cli_exe.exe';
|
||||||
|
}
|
||||||
|
|
||||||
|
$res_data = $this->mf_exec( $bin_exe,
|
||||||
"-h",
|
"-h",
|
||||||
"home=" . $home_dir . "," .
|
"home=" . $home_dir . "," .
|
||||||
"site_cd=" . $site_cd . "," .
|
"site_cd=" . $site_cd . "," .
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
$g_conf_home_dir = G5_MSHOP_PATH.'/kcp'; // BIN 절대경로 입력 (bin전까지)
|
$g_conf_home_dir = G5_SHOP_PATH.'/kcp'; // BIN 절대경로 입력 (bin전까지)
|
||||||
$g_conf_site_name = $default['de_admin_company_name'];
|
$g_conf_site_name = $default['de_admin_company_name'];
|
||||||
$g_conf_log_level = '3'; // 변경불가
|
$g_conf_log_level = '3'; // 변경불가
|
||||||
$g_conf_gw_port = '8090'; // 포트번호(변경불가)
|
$g_conf_gw_port = '8090'; // 포트번호(변경불가)
|
||||||
|
|||||||
BIN
shop/kcp/bin/pp_cli_x64
Executable file
BIN
shop/kcp/bin/pp_cli_x64
Executable file
Binary file not shown.
Binary file not shown.
@ -165,7 +165,16 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$res_data = $this->mf_exec( $home_dir . "/bin/pp_cli",
|
if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||||
|
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||||
|
$bin_exe = $home_dir.'/bin/pp_cli';
|
||||||
|
else
|
||||||
|
$bin_exe = $home_dir.'/bin/pp_cli_x64';
|
||||||
|
} else {
|
||||||
|
$bin_exe = $home_dir.'/bin/pp_cli_exe.exe';
|
||||||
|
}
|
||||||
|
|
||||||
|
$res_data = $this->mf_exec( $bin_exe,
|
||||||
"-h",
|
"-h",
|
||||||
"home=" . $home_dir . "," .
|
"home=" . $home_dir . "," .
|
||||||
"site_cd=" . $site_cd . "," .
|
"site_cd=" . $site_cd . "," .
|
||||||
|
|||||||
Reference in New Issue
Block a user