g4를 g5로 변경

This commit is contained in:
chicpro
2013-09-13 14:32:06 +09:00
parent 9a18a049d5
commit 0f78b67eb7
563 changed files with 4097 additions and 4097 deletions

View File

@ -43,17 +43,17 @@ $returnMsg = 'x'; // 리턴메시지 (고정
// 실행모듈
if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
if(PHP_INT_MAX == 2147483647) // 32-bit
$exe = G4_OKNAME_PATH.'/bin/okname';
$exe = G5_OKNAME_PATH.'/bin/okname';
else
$exe = G4_OKNAME_PATH.'/bin/okname_x64';
$exe = G5_OKNAME_PATH.'/bin/okname_x64';
} else {
if(PHP_INT_MAX == 2147483647) // 32-bit
$exe = G4_OKNAME_PATH.'/bin/okname.exe';
$exe = G5_OKNAME_PATH.'/bin/okname.exe';
else
$exe = G4_OKNAME_PATH.'/bin/oknamex64.exe';
$exe = G5_OKNAME_PATH.'/bin/oknamex64.exe';
}
$logPath = G4_OKNAME_PATH.'/log'; // 로그파일을 남기는 경우 로그파일이 생성될 경로 option에 'L'이 포함된 경우에만 생성
$logPath = G5_OKNAME_PATH.'/log'; // 로그파일을 남기는 경우 로그파일이 생성될 경로 option에 'L'이 포함된 경우에만 생성
$targetId = ''; // 타겟ID (팝업오픈 스크립트의 window.name 과 동일하게 설정
if($config['cf_cert_use'] == 2) {
@ -71,5 +71,5 @@ if($config['cf_cert_use'] == 2) {
// ########################################################################
// # 리턴 URL 설정
// ########################################################################
$returnUrl = G4_OKNAME_URL.'/hpcert2.php'; // 본인인증 완료후 리턴될 URL (도메인 포함 full path)
$returnUrl = G5_OKNAME_URL.'/hpcert2.php'; // 본인인증 완료후 리턴될 URL (도메인 포함 full path)
?>

View File

@ -35,8 +35,8 @@ else {
$retcode=sprintf("S%03d", $ret);
}
$g4['title'] = 'KCB 휴대폰 본인확인';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = 'KCB 휴대폰 본인확인';
include_once(G5_PATH.'/head.sub.php');
?>
<script>
@ -68,5 +68,5 @@ if ($retcode == "B000") {
echo ("<script>alert(\"$retcode\"); self.close();</script>");
}
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -35,7 +35,7 @@ $WEBSIGNATURE = trim($_POST['WEBSIGNATURE']);
// ########################################################################
// # 암호화키 파일 설정 (절대경로) - 파일은 주어진 파일명으로 자동 생성 됨
// ########################################################################
$keypath = G4_OKNAME_PATH.'/key/safecert_'.$idcfMbrComCd.'.key';
$keypath = G5_OKNAME_PATH.'/key/safecert_'.$idcfMbrComCd.'.key';
$cpubkey = $WEBPUBKEY; //server publickey
$csig = $WEBSIGNATURE; //server signature
@ -94,7 +94,7 @@ $mb_birth = $field[8];
// 휴대폰번호 중복체크
$phone_no = hyphen_hp_number($req_num);
$sql = " select mb_id from {$g4['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
$row = sql_fetch($sql);
if ($row['mb_id']) {
alert_close("이미 가입되어 있는 휴대폰번호 입니다.\\n회원아이디 : ".$row['mb_id']);
@ -106,7 +106,7 @@ $md5_cert_no = md5($req_num);
$hash_data = md5($mb_name.$cert_type.$mb_birth.$md5_cert_no);
// 성인인증결과
$adult_day = date("Ymd", strtotime("-19 years", G4_SERVER_TIME));
$adult_day = date("Ymd", strtotime("-19 years", G5_SERVER_TIME));
$adult = ((int)$mb_birth <= (int)$adult_day) ? 1 : 0;
set_session('ss_cert_type', $cert_type);
@ -116,8 +116,8 @@ set_session('ss_cert_adult', $adult);
set_session('ss_cert_birth', $mb_birth);
set_session('ss_cert_sex', ($field[9] == 1 ? 'M' : 'F'));
$g4['title'] = 'KCB 휴대폰 본인확인';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = 'KCB 휴대폰 본인확인';
include_once(G5_PATH.'/head.sub.php');
?>
<script>
@ -133,5 +133,5 @@ $(function() {
</script>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -10,14 +10,14 @@ include_once('./key_dir_check.php');
// 실행모듈
if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
if(PHP_INT_MAX == 2147483647) // 32-bit
$exe = G4_OKNAME_PATH.'/bin/okname';
$exe = G5_OKNAME_PATH.'/bin/okname';
else
$exe = G4_OKNAME_PATH.'/bin/okname_x64';
$exe = G5_OKNAME_PATH.'/bin/okname_x64';
} else {
if(PHP_INT_MAX == 2147483647) // 32-bit
$exe = G4_OKNAME_PATH.'/bin/okname.exe';
$exe = G5_OKNAME_PATH.'/bin/okname.exe';
else
$exe = G4_OKNAME_PATH.'/bin/oknamex64.exe';
$exe = G5_OKNAME_PATH.'/bin/oknamex64.exe';
}
if($config['cf_cert_use'] == 2) {
@ -35,10 +35,10 @@ if($config['cf_cert_use'] == 2) {
}
$idpCode = 'V';
$returnUrl = G4_OKNAME_URL.'/ipin2.php'; // 아이핀 인증을 마치고 돌아올 페이지 주소
$keypath = G4_OKNAME_PATH.'/key/okname.key'; // 키파일이 생성될 위치. 웹서버에 해당파일을 생성할 권한 필요.
$returnUrl = G5_OKNAME_URL.'/ipin2.php'; // 아이핀 인증을 마치고 돌아올 페이지 주소
$keypath = G5_OKNAME_PATH.'/key/okname.key'; // 키파일이 생성될 위치. 웹서버에 해당파일을 생성할 권한 필요.
$memid = $cpCode; // 회원사코드
$reserved1 = '0'; //reserved1
$reserved2 = '0'; //reserved2
$logpath = G4_OKNAME_PATH.'/log'; // 로그파일을 남기는 경우 로그파일이 생성될 경로 option에 'L'이 포함된 경우에만 생성
$logpath = G5_OKNAME_PATH.'/log'; // 로그파일을 남기는 경우 로그파일이 생성될 경로 option에 'L'이 포함된 경우에만 생성
?>

View File

@ -15,7 +15,7 @@ $cmd = "$exe $keypath $memid \"{$reserved1}\" \"{$reserved2}\" $EndPointURL $log
exec($cmd, $out, $ret);
if($ret == 127) {
alert_close('모듈실행 파일이 존재하지 않습니다.\\n\\n'.basename($exe).' 파일이 '.G4_PLUGIN_DIR.'/'.G4_OKNAME_DIR.'/bin 안에 있어야 합니다.');
alert_close('모듈실행 파일이 존재하지 않습니다.\\n\\n'.basename($exe).' 파일이 '.G5_PLUGIN_DIR.'/'.G5_OKNAME_DIR.'/bin 안에 있어야 합니다.');
}
if($ret == 126) {
@ -34,8 +34,8 @@ $pubkey=$out[0];
$sig=$out[1];
$curtime=$out[2];
$g4['title'] = 'KCB 아이핀 본인확인';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = 'KCB 아이핀 본인확인';
include_once(G5_PATH.'/head.sub.php');
?>
<form name="kcbInForm" method="post" action="<?php echo $kcbForm_action; ?>">
@ -53,5 +53,5 @@ document.kcbInForm.submit();
</script>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -79,8 +79,8 @@ set_session('ss_cert_adult', $adult);
set_session('ss_cert_birth', $mb_birth);
set_session('ss_cert_sex', ($field[9] == 1 ? 'M' : 'F'));
$g4['title'] = 'KCB 아이핀 본인확인';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = 'KCB 아이핀 본인확인';
include_once(G5_PATH.'/head.sub.php');
?>
<script>
@ -94,5 +94,5 @@ $(function() {
</script>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -1,9 +1,9 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$key_dir = G4_OKNAME_PATH.'/key';
$key_dir = G5_OKNAME_PATH.'/key';
if(!is_dir($key_dir)) {
alert_close(G4_PLUGIN_DIR.'/'.G4_OKNAME_DIR.' 에 key 디렉토리를 생성해 주십시오.\\n\\n디렉토리 생성 후 쓰기권한을 부여해 주십시오. 예: chmod 707 key');
alert_close(G5_PLUGIN_DIR.'/'.G5_OKNAME_DIR.' 에 key 디렉토리를 생성해 주십시오.\\n\\n디렉토리 생성 후 쓰기권한을 부여해 주십시오. 예: chmod 707 key');
}
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
@ -11,13 +11,13 @@ if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
if (substr($sapi_type, 0, 3) == 'cgi') {
if (!(is_readable($key_dir) && is_executable($key_dir)))
{
$msg = G4_PLUGIN_DIR.'/'.G4_OKNAME_DIR.'/key 디렉토리의 퍼미션을 705로 변경하여 주십시오.\\nchmod 705 key 또는 chmod uo+rx key';
$msg = G5_PLUGIN_DIR.'/'.G5_OKNAME_DIR.'/key 디렉토리의 퍼미션을 705로 변경하여 주십시오.\\nchmod 705 key 또는 chmod uo+rx key';
alert_close($msg);
}
} else {
if (!(is_readable($key_dir) && is_writeable($key_dir) && is_executable($key_dir)))
{
$msg = G4_PLUGIN_DIR.'/'.G4_OKNAME_DIR.'/key 디렉토리의 퍼미션을 707로 변경하여 주십시오.\\n\\nchmod 707 key 또는 chmod uo+rwx key';
$msg = G5_PLUGIN_DIR.'/'.G5_OKNAME_DIR.'/key 디렉토리의 퍼미션을 707로 변경하여 주십시오.\\n\\nchmod 707 key 또는 chmod uo+rwx key';
alert_close($msg);
}
}