kcp 결제모듈 바이너리 파일 정리 및 64비트에 대응하도록 수정

This commit is contained in:
chicpro
2014-01-17 16:01:23 +09:00
parent ee1a1c5627
commit 218a5ef30a
10 changed files with 28 additions and 16 deletions

View File

@ -1191,17 +1191,16 @@ if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use']
$is_linux = false;
$exe = '/kcp/bin/';
if($is_linux)
$exe .= 'pp_cli';
else
if($is_linux) {
if(PHP_INT_MAX == 2147483647) // 32-bit
$exe .= 'pp_cli';
else
$exe .= 'pp_cli_x64';
} else {
$exe .= 'pp_cli_exe.exe';
}
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');

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +0,0 @@
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAMEn9niy+ZB7GGn9JOA9csyJo2vTpd3/ieHW8nCfiDf77YJvEtUmudCU
JXMNQ1uBuHq7+IzajoJhhvGXyOHVr9w+Oq/d8XZPPe7X2agh1WAMDV4mjQNaAncr
DU1qxlTFuAdKRkK7qkqyWSHHtq0HaW/zmBmcIoGn4RwY9y7oKFBpAgMBAAE=
-----END RSA PUBLIC KEY-----

View File

@ -165,7 +165,16 @@
}
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",
"home=" . $home_dir . "," .
"site_cd=" . $site_cd . "," .

View File

@ -1,7 +1,7 @@
<?php
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_log_level = '3'; // 변경불가
$g_conf_gw_port = '8090'; // 포트번호(변경불가)

BIN
shop/kcp/bin/pp_cli_x64 Executable file

Binary file not shown.

Binary file not shown.

View File

@ -165,7 +165,16 @@
}
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",
"home=" . $home_dir . "," .
"site_cd=" . $site_cd . "," .