php strict 적용

This commit is contained in:
chicpro
2013-05-02 14:32:37 +09:00
parent 7194964e59
commit 30b0a01ac6
7 changed files with 76 additions and 76 deletions

View File

@ -1,3 +1,3 @@
<?
include_once("../../common.php");
<?php
include_once('../../common.php');
?>

View File

@ -1,4 +1,4 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/* ============================================================================== */
@ -46,7 +46,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/* ============================================================================== */
?>
<?
<?php
/* ============================================================================== */
/* = 01. 지불 요청 정보 설정 = */
/* = -------------------------------------------------------------------------- = */

View File

@ -1,4 +1,4 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$def_locale = setlocale(LC_CTYPE, 0);

View File

@ -1,4 +1,4 @@
<?
<?php
/* ============================================================================== */
/* = PAGE : 라이브버리 PAGE = */
/* = -------------------------------------------------------------------------- = */

View File

@ -1,4 +1,4 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/* ============================================================================== */

View File

@ -1,4 +1,4 @@
<?
<?php
include './_common.php';
include G4_LIB_PATH.'/etc.lib.php';
@ -30,7 +30,7 @@ if ($row['cnt']) {
/* = Copyright (c) 2007 KCP Inc. All Rights Reserverd. = */
/* ============================================================================== */
?>
<?
<?php
/* ============================================================================== */
/* = 라이브러리 및 사이트 정보 include = */
/* = -------------------------------------------------------------------------- = */
@ -337,46 +337,46 @@ if ($row['cnt']) {
</head>
<body onload="goResult();">
<form name="pay_info" method="post" action="./pp_cli_result.php">
<input type="hidden" name="req_tx" value="<?=$req_tx?>"> <!-- 요청 구분 -->
<input type="hidden" name="bSucc" value="<?=$bSucc?>"> <!-- 쇼핑몰 DB 처리 성공 여부 -->
<input type="hidden" name="req_tx" value="<?php echo $req_tx; ?>"> <!-- 요청 구분 -->
<input type="hidden" name="bSucc" value="<?php echo $bSucc; ?>"> <!-- 쇼핑몰 DB 처리 성공 여부 -->
<input type="hidden" name="res_cd" value="<?=$res_cd?>"> <!-- 결과 코드 -->
<input type="hidden" name="res_msg" value="<?=iconv("cp949", "utf-8", $res_msg)?>"> <!-- 결과 메세지 -->
<input type="hidden" name="ordr_idxx" value="<?=$ordr_idxx?>"> <!-- 주문번호 -->
<input type="hidden" name="good_name" value="<?=$good_name?>"> <!-- 상품명 -->
<input type="hidden" name="buyr_name" value="<?=$buyr_name?>"> <!-- 주문자명 -->
<input type="hidden" name="buyr_tel1" value="<?=$buyr_tel1?>"> <!-- 주문자 전화번호 -->
<input type="hidden" name="buyr_mail" value="<?=$buyr_mail?>"> <!-- 주문자 E-mail -->
<input type="hidden" name="comment" value="<?=$comment?>"> <!-- 비고 -->
<input type="hidden" name="res_cd" value="<?php echo $res_cd; ?>"> <!-- 결과 코드 -->
<input type="hidden" name="res_msg" value="<?php echo iconv("cp949", "utf-8", $res_msg); ?>"> <!-- 결과 메세지 -->
<input type="hidden" name="ordr_idxx" value="<?php echo $ordr_idxx; ?>"> <!-- 주문번호 -->
<input type="hidden" name="good_name" value="<?php echo $good_name; ?>"> <!-- 상품명 -->
<input type="hidden" name="buyr_name" value="<?php echo $buyr_name; ?>"> <!-- 주문자명 -->
<input type="hidden" name="buyr_tel1" value="<?php echo $buyr_tel1; ?>"> <!-- 주문자 전화번호 -->
<input type="hidden" name="buyr_mail" value="<?php echo $buyr_mail; ?>"> <!-- 주문자 E-mail -->
<input type="hidden" name="comment" value="<?php echo $comment; ?>"> <!-- 비고 -->
<input type="hidden" name="corp_type" value="<?=$corp_type?>"> <!-- 사업장 구분 -->
<input type="hidden" name="corp_tax_type" value="<?=$corp_tax_type?>"> <!-- 과세/면세 구분 -->
<input type="hidden" name="corp_tax_no" value="<?=$corp_tax_no?>"> <!-- 발행 사업자 번호 -->
<input type="hidden" name="corp_nm" value="<?=$corp_nm?>"> <!-- 상호 -->
<input type="hidden" name="corp_owner_nm" value="<?=$corp_owner_nm?>"> <!-- 대표자명 -->
<input type="hidden" name="corp_addr" value="<?=$corp_addr?>"> <!-- 사업장주소 -->
<input type="hidden" name="corp_telno" value="<?=$corp_telno?>"> <!-- 사업장 대표 연락처 -->
<input type="hidden" name="corp_type" value="<?php echo $corp_type; ?>"> <!-- 사업장 구분 -->
<input type="hidden" name="corp_tax_type" value="<?php echo $corp_tax_type; ?>"> <!-- 과세/면세 구분 -->
<input type="hidden" name="corp_tax_no" value="<?php echo $corp_tax_no; ?>"> <!-- 발행 사업자 번호 -->
<input type="hidden" name="corp_nm" value="<?php echo $corp_nm; ?>"> <!-- 상호 -->
<input type="hidden" name="corp_owner_nm" value="<?php echo $corp_owner_nm; ?>"> <!-- 대표자명 -->
<input type="hidden" name="corp_addr" value="<?php echo $corp_addr; ?>"> <!-- 사업장주소 -->
<input type="hidden" name="corp_telno" value="<?php echo $corp_telno; ?>"> <!-- 사업장 대표 연락처 -->
<input type="hidden" name="tr_code" value="<?=$tr_code?>"> <!-- 발행용도 -->
<input type="hidden" name="id_info" value="<?=$id_info?>"> <!-- 신분확인 ID -->
<input type="hidden" name="amt_tot" value="<?=$amt_tot?>"> <!-- 거래금액 총 합 -->
<input type="hidden" name="amt_sub" value="<?=$amt_sup?>"> <!-- 공급가액 -->
<input type="hidden" name="amt_svc" value="<?=$amt_svc?>"> <!-- 봉사료 -->
<input type="hidden" name="amt_tax" value="<?=$amt_tax?>"> <!-- 부가가치세 -->
<input type="hidden" name="pay_type" value="<?=$pay_type?>"> <!-- 결제 서비스 구분 -->
<input type="hidden" name="pay_trade_no" value="<?=$pay_trade_no?>"> <!-- 결제 거래번호 -->
<input type="hidden" name="tr_code" value="<?php echo $tr_code; ?>"> <!-- 발행용도 -->
<input type="hidden" name="id_info" value="<?php echo $id_info; ?>"> <!-- 신분확인 ID -->
<input type="hidden" name="amt_tot" value="<?php echo $amt_tot; ?>"> <!-- 거래금액 총 합 -->
<input type="hidden" name="amt_sub" value="<?php echo $amt_sup; ?>"> <!-- 공급가액 -->
<input type="hidden" name="amt_svc" value="<?php echo $amt_svc; ?>"> <!-- 봉사료 -->
<input type="hidden" name="amt_tax" value="<?php echo $amt_tax; ?>"> <!-- 부가가치세 -->
<input type="hidden" name="pay_type" value="<?php echo $pay_type; ?>"> <!-- 결제 서비스 구분 -->
<input type="hidden" name="pay_trade_no" value="<?php echo $pay_trade_no; ?>"> <!-- 결제 거래번호 -->
<input type="hidden" name="mod_type" value="<?=$mod_type?>"> <!-- 변경 타입 -->
<input type="hidden" name="mod_value" value="<?=$mod_value?>"> <!-- 변경 요청 거래번호 -->
<input type="hidden" name="mod_gubn" value="<?=$mod_gubn?>"> <!-- 변경 요청 거래번호 구분 -->
<input type="hidden" name="mod_mny" value="<?=$mod_mny?>"> <!-- 변경 요청 금액 -->
<input type="hidden" name="rem_mny" value="<?=$rem_mny?>"> <!-- 변경처리 이전 금액 -->
<input type="hidden" name="mod_type" value="<?php echo $mod_type; ?>"> <!-- 변경 타입 -->
<input type="hidden" name="mod_value" value="<?php echo $mod_value; ?>"> <!-- 변경 요청 거래번호 -->
<input type="hidden" name="mod_gubn" value="<?php echo $mod_gubn; ?>"> <!-- 변경 요청 거래번호 구분 -->
<input type="hidden" name="mod_mny" value="<?php echo $mod_mny; ?>"> <!-- 변경 요청 금액 -->
<input type="hidden" name="rem_mny" value="<?php echo $rem_mny; ?>"> <!-- 변경처리 이전 금액 -->
<input type="hidden" name="cash_no" value="<?=$cash_no?>"> <!-- 현금영수증 거래번호 -->
<input type="hidden" name="receipt_no" value="<?=$receipt_no?>"> <!-- 현금영수증 승인번호 -->
<input type="hidden" name="app_time" value="<?=$app_time?>"> <!-- 승인시간(YYYYMMDDhhmmss) -->
<input type="hidden" name="reg_stat" value="<?=$reg_stat?>"> <!-- 등록 상태 코드 -->
<input type="hidden" name="reg_desc" value="<?=iconv("cp949", "utf-8", $reg_desc)?>"> <!-- 등록 상태 설명 -->
<input type="hidden" name="cash_no" value="<?php echo $cash_no; ?>"> <!-- 현금영수증 거래번호 -->
<input type="hidden" name="receipt_no" value="<?php echo $receipt_no; ?>"> <!-- 현금영수증 승인번호 -->
<input type="hidden" name="app_time" value="<?php echo $app_time; ?>"> <!-- 승인시간(YYYYMMDDhhmmss) -->
<input type="hidden" name="reg_stat" value="<?php echo $reg_stat; ?>"> <!-- 등록 상태 코드 -->
<input type="hidden" name="reg_desc" value="<?php echo iconv("cp949", "utf-8", $reg_desc); ?>"> <!-- 등록 상태 설명 -->
</form>
</body>

View File

@ -1,4 +1,4 @@
<?
<?php
include './_common.php';
/* ============================================================================== */
/* = PAGE : 결과 처리 PAGE = */
@ -6,7 +6,7 @@ include './_common.php';
/* = Copyright (c) 2007 KCP Inc. All Rights Reserverd. = */
/* ============================================================================== */
?>
<?
<?php
/* ============================================================================== */
/* = 01. KCP 지불 서버 정보 설정 = */
/* = -------------------------------------------------------------------------- = */
@ -119,13 +119,13 @@ include './_common.php';
<td bgcolor="CFCFCF" height="2"></td>
</tr>
<tr>
<td align="center">결과 페이지(현금영수증 <?=$req_tx_name?>)</td>
<td align="center">결과 페이지(현금영수증 <?php echo $req_tx_name; ?>)</td>
</tr>
<tr>
<td bgcolor="CFCFCF" height="2"></td>
</tr>
</table>
<?
<?php
if ($req_tx == "pay") // 거래 구분 : 등록
{
if (!$bSucc == "false") // 업체 DB 처리 정상
@ -136,49 +136,49 @@ include './_common.php';
<table width="85%" align="center" border="0" cellpadding="0" cellspacing="1">
<tr>
<td>결과코드</td>
<td><?=$res_cd?></td>
<td><?php echo $res_cd; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>결과 메세지</td>
<td><?=$res_msg?></td>
<td><?php echo $res_msg; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>현금영수증 거래번호</td>
<td><?=$cash_no?></td>
<td><?php echo $cash_no; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>현금영수증 승인번호</td>
<td><?=$receipt_no?></td>
<td><?php echo $receipt_no; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>등록 상태 코드</td>
<td><?=$reg_stat?></td>
<td><?php echo $reg_stat; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>등록 상태 설명</td>
<td><?=$reg_desc?></td>
<td><?php echo $reg_desc; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>승인시간</td>
<td><?=$app_time?></td>
<td><?php echo $app_time; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>현금영수증 URL</td>
<td><input type="button" name="receiptView" value="영수증 확인" class="box" onClick="javascript:receiptView('<?=$cash_no?>')"></td>
<td><input type="button" name="receiptView" value="영수증 확인" class="box" onClick="javascript:receiptView('<?php echo $cash_no; ?>')"></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td colspan="2">※ 영수증 확인은 실 등록의 경우에만 가능합니다.</td>
</tr>
</table>
<?
<?php
}
else // 승인 실패
{
@ -186,15 +186,15 @@ include './_common.php';
<table width="85%" align="center" border="0" cellpadding="0" cellspacing="1">
<tr>
<td>결과코드</td>
<td><?=$res_cd?></td>
<td><?php echo $res_cd; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>결과 메세지</td>
<td><?=$res_msg?></td>
<td><?php echo $res_msg; ?></td>
</tr>
</table>
<?
<?php
}
}
@ -204,18 +204,18 @@ include './_common.php';
<table width="85%" align="center" border="0" cellpadding="0" cellspacing="1">
<tr>
<td nowrap>취소 결과코드</td>
<td><?=$res_cd?></td>
<td><?php echo $res_cd; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td nowrap>취소 결과 메세지</td>
<td><?=$res_msg?></td>
<td><?php echo $res_msg; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td nowrap>상세메세지</td>
<td>
<?
<?php
if ($res_cd == "0000")
{
echo "결제는 정상적으로 이루어졌지만 쇼핑몰에서 결제 결과를 처리하는 중 오류가 발생하여 시스템에서 자동으로 취소 요청을 하였습니다. <br> 쇼핑몰로 전화하여 확인하시기 바랍니다.";
@ -228,7 +228,7 @@ include './_common.php';
</td>
</tr>
</table>
<?
<?php
}
}
@ -241,49 +241,49 @@ include './_common.php';
<table width="85%" align="center" border="0" cellpadding="0" cellspacing="1">
<tr>
<td>결과코드</td>
<td><?=$res_cd?></td>
<td><?php echo $res_cd; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>결과 메세지</td>
<td><?=$res_msg?></td>
<td><?php echo $res_msg; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>현금영수증 거래번호</td>
<td><?=$cash_no?></td>
<td><?php echo $cash_no; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>현금영수증 승인번호</td>
<td><?=$receipt_no?></td>
<td><?php echo $receipt_no; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>등록 상태 코드</td>
<td><?=$reg_stat?></td>
<td><?php echo $reg_stat; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>등록 상태 설명</td>
<td><?=$reg_desc?></td>
<td><?php echo $reg_desc; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>승인시간</td>
<td><?=$app_time?></td>
<td><?php echo $app_time; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>현금영수증 URL</td>
<td><input type="button" name="receiptView" value="영수증 확인" class="box" onClick="javascript:receiptView('<?=$cash_no?>')"></td>
<td><input type="button" name="receiptView" value="영수증 확인" class="box" onClick="javascript:receiptView('<?php echo $cash_no; ?>')"></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td colspan="2">※ 영수증 확인은 실 등록의 경우에만 가능합니다.</td>
</tr>
</table>
<?
<?php
}
else
{
@ -291,15 +291,15 @@ include './_common.php';
<table width="85%" align="center" border="0" cellpadding="0" cellspacing="1">
<tr>
<td>결과코드</td>
<td><?=$res_cd?></td>
<td><?php echo $res_cd; ?></td>
</tr>
<tr><td colspan="2"><IMG SRC="./img/dot_line.gif" width="100%"></td></tr>
<tr>
<td>결과 메세지</td>
<td><?=$res_msg?></td>
<td><?php echo $res_msg; ?></td>
</tr>
</table>
<?
<?php
}
}
?>