53 lines
1.7 KiB
PHP
53 lines
1.7 KiB
PHP
<?php
|
|
include_once('./_common.php');
|
|
include_once('./ipin.config.php');
|
|
|
|
$option = "C";// Option
|
|
|
|
// 명령어
|
|
$cmd = "$exe $keypath $memid \"{$reserved1}\" \"{$reserved2}\" $EndPointURL $logpath $option";
|
|
|
|
// 실행
|
|
exec($cmd, $out, $ret);
|
|
|
|
if($ret == 127) {
|
|
alert_close('모듈실행 파일이 존재하지 않습니다.\\n\\n'.basename($exe).' 파일이 '.G4_PLUGIN_DIR.'/'.G4_OKNAME_DIR.'/bin 안에 있어야 합니다.');
|
|
}
|
|
|
|
if($ret == 126) {
|
|
alert_close('모듈실행 파일의 실행권한이 없습니다.\\n\\nchmod 755 '.basename($exe).' 과 같이 실행권한을 부여해 주십시오.');
|
|
}
|
|
|
|
if($ret == -1) {
|
|
alert_close('모듈실행 파일의 실행권한이 없습니다.\\n\\ncmd.exe의 IUSER 실행권한이 있는지 확인하여 주십시오.');
|
|
}
|
|
|
|
$pubkey = "";
|
|
$sig = "";
|
|
$curtime = "";
|
|
|
|
$pubkey=$out[0];
|
|
$sig=$out[1];
|
|
$curtime=$out[2];
|
|
|
|
$g4['title'] = 'KCB 아이핀 본인확인';
|
|
include_once(G4_PATH.'/head.sub.php');
|
|
?>
|
|
|
|
<form name="kcbInForm" method="post" action="<?php echo $kcbForm_action; ?>">
|
|
<input type="hidden" name="IDPCODE" value="<?php echo $idpCode; ?>" />
|
|
<input type="hidden" name="IDPURL" value="<?php echo $idpUrl; ?>" />
|
|
<input type="hidden" name="CPCODE" value="<?php echo $cpCode; ?>" />
|
|
<input type="hidden" name="CPREQUESTNUM" value="<?php echo $curtime; ?>" />
|
|
<input type="hidden" name="RETURNURL" value="<?php echo $returnUrl; ?>" />
|
|
<input type="hidden" name="WEBPUBKEY" value="<?php echo $pubkey; ?>" />
|
|
<input type="hidden" name="WEBSIGNATURE" value="<?php echo $sig; ?>" />
|
|
</form>
|
|
|
|
<script>
|
|
document.kcbInForm.submit();
|
|
</script>
|
|
|
|
<?php
|
|
include_once(G4_PATH.'/tail.sub.php');
|
|
?>
|