사용자: gnb 위치 수정
This commit is contained in:
@ -48,7 +48,7 @@ a:active {color:#000;text-decoration:underline}
|
||||
.cke_sc_def dd {width:30%}
|
||||
|
||||
/* 상단 레이아웃 */
|
||||
#hd {height:73px;border-top:3px solid #151515;background:#fff}
|
||||
#hd {height:107px;border-top:3px solid #151515;background:#fff}
|
||||
#hd h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#hd_wrapper {position:relative;margin:0 auto;width:980px}
|
||||
|
||||
@ -69,7 +69,8 @@ a:active {color:#000;text-decoration:underline}
|
||||
#mb_nb img {margin-right:3px}
|
||||
|
||||
/* gnb js off */
|
||||
#gnb {z-index:10;margin:-1px 0 0;border-top:1px solid #e7f1ed;border-bottom:1px solid #c3c7c5;background:#f0f4f8}
|
||||
#gnb {z-index:10;margin:-1px 0 0;border-top:1px solid #e7f1ed;border-bottom:1px solid #c3c7c5;background:#f0f4f8;zoom:1}
|
||||
#gnb:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#gnb h2 {position:absolute;margin:0;padding:0;font-size:0;line-height:0;overflow:hidden}
|
||||
#gnb_1dul {margin:0 auto;padding:0;width:980px;zoom:1}
|
||||
#gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
@ -1,148 +0,0 @@
|
||||
<?php
|
||||
include_once('./kcpcert_config.php');
|
||||
|
||||
// utf-8로 넘어돈 post 값을 euc-kr 로 변경
|
||||
$_POST = array_map('iconv_euckr', $_POST);
|
||||
|
||||
// UTF-8 환경에서 해시 데이터 오류를 막기 위한 코드
|
||||
$def_locale = setlocale(LC_CTYPE, 0);
|
||||
$locale_change = false;
|
||||
if(preg_match('/utf[\-]?8/i', $def_locale)) {
|
||||
setlocale(LC_CTYPE, 'ko_KR.euc-kr');
|
||||
$locale_change = true;
|
||||
}
|
||||
|
||||
$req_tx = "";
|
||||
|
||||
$site_cd = "";
|
||||
$ordr_idxx = "";
|
||||
|
||||
$year = "";
|
||||
$month = "";
|
||||
$day = "";
|
||||
$user_name = "";
|
||||
$sex_code = "";
|
||||
$local_code = "";
|
||||
|
||||
$up_hash = "";
|
||||
/*------------------------------------------------------------------------*/
|
||||
/* :: 전체 파라미터 남기기 */
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
$ct_cert = new C_CT_CLI;
|
||||
$ct_cert->mf_clear();
|
||||
|
||||
// request 로 넘어온 값 처리
|
||||
$key = array_keys($_POST);
|
||||
$sbParam ="";
|
||||
|
||||
for($i=0; $i<count($key); $i++)
|
||||
{
|
||||
$nmParam = $key[$i];
|
||||
$valParam = $_POST[$nmParam];
|
||||
|
||||
if ( $nmParam == "site_cd" )
|
||||
{
|
||||
$site_cd = f_get_parm_str ( $valParam );
|
||||
}
|
||||
|
||||
if ( $nmParam == "req_tx" )
|
||||
{
|
||||
$req_tx = f_get_parm_str ( $valParam );
|
||||
}
|
||||
|
||||
if ( $nmParam == "ordr_idxx" )
|
||||
{
|
||||
$ordr_idxx = f_get_parm_str ( $valParam );
|
||||
}
|
||||
|
||||
if ( $nmParam == "user_name" )
|
||||
{
|
||||
$user_name = f_get_parm_str ( $valParam );
|
||||
}
|
||||
|
||||
if ( $nmParam == "year" )
|
||||
{
|
||||
$year = f_get_parm_int ( $valParam );
|
||||
}
|
||||
|
||||
if ( $nmParam == "month" )
|
||||
{
|
||||
$month = f_get_parm_int ( $valParam );
|
||||
}
|
||||
|
||||
if ( $nmParam == "day" )
|
||||
{
|
||||
$day = f_get_parm_int ( $valParam );
|
||||
}
|
||||
|
||||
if ( $nmParam == "sex_code" )
|
||||
{
|
||||
$sex_code = f_get_parm_str ( $valParam );
|
||||
}
|
||||
|
||||
if ( $nmParam == "local_code" )
|
||||
{
|
||||
$local_code = f_get_parm_str ( $valParam );
|
||||
}
|
||||
|
||||
// 인증창으로 넘기는 form 데이터 생성 필드
|
||||
$sbParam .= "<input type='hidden' name='" . $nmParam . "' value='" . f_get_parm_str( $valParam ) . "'/>";
|
||||
}
|
||||
|
||||
if ( $req_tx == "cert" )
|
||||
{
|
||||
// !!up_hash 데이터 생성시 주의 사항
|
||||
// year , month , day 가 비어 있는 경우 "00" , "00" , "00" 으로 설정이 됩니다
|
||||
// 그외의 값은 없을 경우 ""(null) 로 세팅하시면 됩니다.
|
||||
// up_hash 데이터 생성시 site_cd 와 ordr_idxx 는 필수 값입니다.
|
||||
$hash_data = $site_cd .
|
||||
$ordr_idxx .
|
||||
$user_name .
|
||||
f_get_parm_int ( $year ) .
|
||||
f_get_parm_int ( $month ) .
|
||||
f_get_parm_int ( $day ) .
|
||||
$sex_code .
|
||||
$local_code;
|
||||
|
||||
$up_hash = $ct_cert->make_hash_data( $home_dir, $hash_data );
|
||||
|
||||
// 인증창으로 넘기는 form 데이터 생성 필드 ( up_hash )
|
||||
$sbParam .= "<input type='hidden' name='up_hash' value='" . $up_hash . "'/>";
|
||||
}
|
||||
|
||||
$ct_cert->mf_clear();
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
|
||||
<title>*** KCP Online Payment System [PHP Version] ***</title>
|
||||
<script type="text/javascript">
|
||||
window.onload=function()
|
||||
{
|
||||
var frm = document.form_auth;
|
||||
|
||||
// 인증 요청 시 호출 함수
|
||||
if ( frm.req_tx.value == "cert" )
|
||||
{
|
||||
opener.document.form_auth.veri_up_hash.value = frm.up_hash.value; // up_hash 데이터 검증을 위한 필드
|
||||
|
||||
frm.action="<?php echo $cert_url ?>";
|
||||
frm.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body oncontextmenu="return false;" ondragstart="return false;" onselectstart="return false;">
|
||||
<form name="form_auth" method="post">
|
||||
<?php echo $sbParam ?>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php
|
||||
if($locale_change)
|
||||
setlocale(LC_CTYPE, $def_locale);
|
||||
?>
|
||||
Reference in New Issue
Block a user