Merge branch 'kakaopay' of github.com:gnuboard/yc5 into kakaopay
This commit is contained in:
@ -691,7 +691,7 @@ if(!isset($default['de_kakaopay_mid'])) {
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">
|
<th scope="row">
|
||||||
<label for="de_kakaopay_mid">카카오페이 상점 MID</label>
|
<label for="de_kakaopay_mid">카카오페이 상점MID</label>
|
||||||
<a href="http://sir.co.kr/main/service/kakaopay.php" target="_blank" id="scf_lgreg" class="scf_pgreg">카카오페이 서비스신청하기</a>
|
<a href="http://sir.co.kr/main/service/kakaopay.php" target="_blank" id="scf_lgreg" class="scf_pgreg">카카오페이 서비스신청하기</a>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
@ -700,7 +700,7 @@ if(!isset($default['de_kakaopay_mid'])) {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="de_kakaopay_key">카카오페이 상점 서명키</label></th>
|
<th scope="row"><label for="de_kakaopay_key">카카오페이 상점키</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help("카카오페이로 부터 발급 받으신 상점 서명키를 입력합니다."); ?>
|
<?php echo help("카카오페이로 부터 발급 받으신 상점 서명키를 입력합니다."); ?>
|
||||||
<input type="text" name="de_kakaopay_key" value="<?php echo $default['de_kakaopay_key']; ?>" id="de_kakaopay_key" class="frm_input" size="90">
|
<input type="text" name="de_kakaopay_key" value="<?php echo $default['de_kakaopay_key']; ?>" id="de_kakaopay_key" class="frm_input" size="90">
|
||||||
@ -1593,6 +1593,23 @@ if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use']
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 카카오페이의 경우 log 디렉토리 체크
|
||||||
|
if($default['de_kakaopay_mid'] && $default['de_kakaopay_key'] && $default['de_kakaopay_enckey'] && $default['de_kakaopay_hashkey'] && $default['de_kakaopay_cancelpwd']) {
|
||||||
|
$log_path = G5_SHOP_PATH.'/kakaopay/log';
|
||||||
|
|
||||||
|
if(!is_dir($log_path)) {
|
||||||
|
echo '<script>'.PHP_EOL;
|
||||||
|
echo 'alert("'.str_replace(G5_PATH.'/', '', G5_SHOP_PATH).'/kakaopay 폴더 안에 log 폴더를 생성하신 후 쓰기권한을 부여해 주십시오.\n> mkdir log\n> chmod 707 log");'.PHP_EOL;
|
||||||
|
echo '</script>'.PHP_EOL;
|
||||||
|
} else {
|
||||||
|
if(!is_writable($log_path)) {
|
||||||
|
echo '<script>'.PHP_EOL;
|
||||||
|
echo 'alert("'.str_replace(G5_PATH.'/', '',$log_path).' 폴더에 쓰기권한을 부여해 주십시오.\n> chmod 707 log");'.PHP_EOL;
|
||||||
|
echo '</script>'.PHP_EOL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||||
|
|||||||
@ -395,9 +395,13 @@
|
|||||||
}
|
}
|
||||||
public function writeLog($strLogText) {
|
public function writeLog($strLogText) {
|
||||||
$log_string = "";
|
$log_string = "";
|
||||||
|
$exclude = array('MID', 'merchantEncKey', 'merchantHashKey', 'CancelPwd');
|
||||||
if (is_array($strLogText)) {
|
if (is_array($strLogText)) {
|
||||||
$log_string = "[".date("Y/m/d H:i:s")."] \r\n";
|
$log_string = "[".date("Y/m/d H:i:s")."] \r\n";
|
||||||
foreach (array_keys($strLogText) as $key) {
|
foreach (array_keys($strLogText) as $key) {
|
||||||
|
if(in_array($key, $exclude))
|
||||||
|
continue;
|
||||||
|
|
||||||
$log_string = $log_string." [".$key."] => ".$strLogText[$key]."\r\n";
|
$log_string = $log_string." [".$key."] => ".$strLogText[$key]."\r\n";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -141,6 +141,9 @@
|
|||||||
if (is_array($strLogText)) {
|
if (is_array($strLogText)) {
|
||||||
$log_string = "[".date("Y/m/d H:i:s")."] \r\n";
|
$log_string = "[".date("Y/m/d H:i:s")."] \r\n";
|
||||||
foreach (array_keys($strLogText) as $key) {
|
foreach (array_keys($strLogText) as $key) {
|
||||||
|
if($key == 'MERCHANT_ID')
|
||||||
|
continue;
|
||||||
|
|
||||||
$log_string = $log_string." [".$key."] => ".$strLogText[$key]."\r\n";
|
$log_string = $log_string." [".$key."] => ".$strLogText[$key]."\r\n";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -3,4 +3,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- TODO : LayerPopup의 Target DIV 생성 -->
|
<!-- TODO : LayerPopup의 Target DIV 생성 -->
|
||||||
<div id="kakaopay_layer" style="display: none"></div>
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$("body").append('<div id="kakaopay_layer" style="display: none"></div>');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user