diff --git a/bbs/kcp/kcpcert_request.php b/bbs/kcp/kcpcert_request.php
index 00fe64744..b9057c28f 100644
--- a/bbs/kcp/kcpcert_request.php
+++ b/bbs/kcp/kcpcert_request.php
@@ -1,8 +1,16 @@
include_once('./kcpcert_config.php');
-// UTF-8 환경에서 해시 데이터 오류를 막기 위한 코드
-setlocale(LC_CTYPE, 'ko_KR.euc-kr');
+// 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 = "";
@@ -18,16 +26,13 @@ $local_code = "";
$up_hash = "";
/*------------------------------------------------------------------------*/
-/* :: 전체 파라미터 남기기 */
+/* :: �쟾泥� �뙆�씪誘명꽣 �궓湲곌린 */
/*------------------------------------------------------------------------*/
$ct_cert = new C_CT_CLI;
$ct_cert->mf_clear();
-// utf-8로 넘어돈 post 값을 euc-kr 로 변경
-$_POST = array_map("iconv_euckr", $_POST);
-
-// request 로 넘어온 값 처리
+// request 濡� �꽆�뼱�삩 媛� 泥섎━
$key = array_keys($_POST);
$sbParam ="";
@@ -81,16 +86,16 @@ for($i=0; $i";
}
if ( $req_tx == "cert" )
{
- // !!up_hash 데이터 생성시 주의 사항
- // year , month , day 가 비어 있는 경우 "00" , "00" , "00" 으로 설정이 됩니다
- // 그외의 값은 없을 경우 ""(null) 로 세팅하시면 됩니다.
- // up_hash 데이터 생성시 site_cd 와 ordr_idxx 는 필수 값입니다.
+ // !!up_hash �뜲�씠�꽣 �깮�꽦�떆 二쇱쓽 �궗�빆
+ // year , month , day 媛� 鍮꾩뼱 �엳�뒗 寃쎌슦 "00" , "00" , "00" �쑝濡� �꽕�젙�씠 �맗�땲�떎
+ // 洹몄쇅�쓽 媛믪�� �뾾�쓣 寃쎌슦 ""(null) 濡� �꽭�똿�븯�떆硫� �맗�땲�떎.
+ // up_hash �뜲�씠�꽣 �깮�꽦�떆 site_cd ��� ordr_idxx �뒗 �븘�닔 媛믪엯�땲�떎.
$hash_data = $site_cd .
$ordr_idxx .
$user_name .
@@ -102,7 +107,7 @@ if ( $req_tx == "cert" )
$up_hash = $ct_cert->make_hash_data( $home_dir, $hash_data );
- // 인증창으로 넘기는 form 데이터 생성 필드 ( up_hash )
+ // �씤利앹갹�쑝濡� �꽆湲곕뒗 form �뜲�씠�꽣 �깮�꽦 �븘�뱶 ( up_hash )
$sbParam .= "";
}
@@ -119,10 +124,10 @@ $ct_cert->mf_clear();
{
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 데이터 검증을 위한 필드
+ opener.document.form_auth.veri_up_hash.value = frm.up_hash.value; // up_hash �뜲�씠�꽣 寃�利앹쓣 �쐞�븳 �븘�뱶
frm.action="=$cert_url?>";
frm.submit();
@@ -135,4 +140,9 @@ $ct_cert->mf_clear();
= $sbParam ?>