Merge branch 'gnuboard:master' into feature/rewrite
This commit is contained in:
@ -33,7 +33,16 @@ if ($w == 'u' && is_numeric($bk_no)) {
|
||||
$g5['title'] .= '수정';
|
||||
}
|
||||
else {
|
||||
$write = array('bg_no' => (int) $bg_no);
|
||||
$write = array(
|
||||
'bg_no' => (int) $bg_no,
|
||||
'bk_no' => 0,
|
||||
'mb_id' => '',
|
||||
'bk_name' => '',
|
||||
'bk_hp' => '',
|
||||
'bk_memo' => '',
|
||||
'bk_receipt' => 1,
|
||||
'bk_datetime' => ''
|
||||
);
|
||||
$g5['title'] .= '추가';
|
||||
}
|
||||
|
||||
|
||||
@ -71,18 +71,16 @@ if( count($save_group) ){ //그룹테이블 업데이트
|
||||
|
||||
$msg = '해당 번호를 선택한 그룹으로 '.$act.' 하였습니다.';
|
||||
$opener_href = './num_book.php?page='.$page;
|
||||
|
||||
echo <<<HEREDOC
|
||||
?>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<script>
|
||||
alert("$msg");
|
||||
opener.document.location.href = "$opener_href";
|
||||
alert("<?php echo $msg; ?>");
|
||||
opener.document.location.href = "<?php echo $opener_href; ?>";
|
||||
window.close();
|
||||
</script>
|
||||
<noscript>
|
||||
<p>
|
||||
"$msg"
|
||||
<?php echo $msg; ?>
|
||||
</p>
|
||||
<a href="$opener_href">돌아가기</a>
|
||||
</noscript>
|
||||
HEREDOC;
|
||||
<a href="<?php echo $opener_href; ?>">돌아가기</a>
|
||||
</noscript>
|
||||
@ -502,6 +502,7 @@ if (isset($_REQUEST['url'])) {
|
||||
$urlencode = urlencode($_SERVER['REQUEST_URI']);
|
||||
if (G5_DOMAIN) {
|
||||
$p = @parse_url(G5_DOMAIN);
|
||||
$p['path'] = isset($p['path']) ? $p['path'] : '/';
|
||||
$urlencode = G5_DOMAIN.urldecode(preg_replace("/^".urlencode($p['path'])."/", "", $urlencode));
|
||||
}
|
||||
}
|
||||
|
||||
@ -865,8 +865,10 @@ function subject_sort_link($col, $query_string='', $flag='asc')
|
||||
$arr_query[] = 'page='.$page;
|
||||
$qstr = implode("&", $arr_query);
|
||||
|
||||
$url = G5_HTTP_BBS_URL . "/board.php?{$qstr}";
|
||||
return '<a href="'.short_url_clean($url).'">';
|
||||
parse_str(html_entity_decode($qstr), $qstr_array);
|
||||
$url = short_url_clean(get_params_merge_url($qstr_array));
|
||||
|
||||
return '<a href="'.$url.'">';
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1233,6 +1233,7 @@ var temp_point = 0;
|
||||
|
||||
function pay_approval()
|
||||
{
|
||||
// 무통장 아닌 가상계좌, 계좌이체, 휴대폰, 신용카드, 기타 등등 을 처리한다.
|
||||
// 재고체크
|
||||
var stock_msg = order_stock_check();
|
||||
if(stock_msg != "") {
|
||||
@ -1435,6 +1436,14 @@ function pay_approval()
|
||||
|
||||
function forderform_check()
|
||||
{
|
||||
// 무통장만 여기에처 처리한다.
|
||||
// 재고체크
|
||||
var stock_msg = order_stock_check();
|
||||
if(stock_msg != "") {
|
||||
alert(stock_msg);
|
||||
return false;
|
||||
}
|
||||
|
||||
var f = document.forderform;
|
||||
|
||||
// 필드체크
|
||||
|
||||
@ -42,15 +42,15 @@ if (function_exists('before_check_cart_price')) {
|
||||
}
|
||||
|
||||
// 재고체크
|
||||
$sql = " select *
|
||||
$sql = " select *, sum(ct_qty) as sum_ct_qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$tmp_cart_id'
|
||||
and ct_select = '1'
|
||||
and ct_status = '쇼핑' ";
|
||||
and ct_status = '쇼핑' GROUP BY od_id, it_id, it_name, ct_option, io_id, io_type ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$ct_qty = $row['ct_qty'];
|
||||
$ct_qty = $row['sum_ct_qty'];
|
||||
|
||||
// 해당 상품이 품절 또는 판매중지 상태인지 체크합니다.
|
||||
$sql = " select it_soldout, it_use, ca_id, ca_id2, ca_id3 from {$g5['g5_shop_item_table']} where it_id = '".$row['it_id']."' ";
|
||||
|
||||
@ -58,10 +58,14 @@ if($act == "buy")
|
||||
}
|
||||
|
||||
// 주문 상품의 재고체크
|
||||
$sql = " select ct_qty, it_name, ct_option, io_id, io_type
|
||||
// 동일 상품 옵션이 레코드에 있는 경우 재고를 제대로 체크하지 못하는 오류가 있음
|
||||
// $sql = " select ct_qty, it_name, ct_option, io_id, io_type from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and it_id = '$it_id' ";
|
||||
|
||||
$sql = " select sum(ct_qty) as ct_qty, it_name, ct_option, io_id, io_type
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$tmp_cart_id'
|
||||
and it_id = '$it_id' ";
|
||||
and it_id = '$it_id' GROUP BY od_id, it_id, it_name, ct_option, io_id, io_type ";
|
||||
|
||||
$result = sql_query($sql);
|
||||
|
||||
for($k=0; $row=sql_fetch_array($result); $k++) {
|
||||
@ -73,6 +77,7 @@ if($act == "buy")
|
||||
and ct_stock_use = 0
|
||||
and ct_status = '쇼핑'
|
||||
and ct_select = '1' ";
|
||||
|
||||
$sum = sql_fetch($sql);
|
||||
// $sum['cnt'] 가 null 일때 재고 반영이 제대로 안되는 오류 수정 (그누위즈님,210614)
|
||||
// $sum_qty = $sum['cnt'];
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
define('G5_VERSION', '그누보드5');
|
||||
define('G5_GNUBOARD_VER', '5.5.8.2.6');
|
||||
define('G5_GNUBOARD_VER', '5.5.8.2.7');
|
||||
// 그누보드5.4.5.5 버전과 영카트5.4.5.5.1 버전을 합쳐서 그누보드5.4.6 버전에서 시작함 (kagla-210617)
|
||||
// G5_YOUNGCART_VER 이 상수를 사용하는 곳이 있으므로 주석 처리 해제함
|
||||
// 그누보드5.4.6 이상 버전 부터는 영카트를 그누보드에 포함하여 배포하므로 영카트5의 버전은 의미가 없습니다.
|
||||
|
||||
Reference in New Issue
Block a user