Skip to content

Commit

Permalink
Merge branch 'gnuboard:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
seeoya committed Mar 30, 2022
2 parents b4891ab + 05035d6 commit 7ab4622
Show file tree
Hide file tree
Showing 20 changed files with 32 additions and 22 deletions.
3 changes: 1 addition & 2 deletions bbs/memo.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
else if ($kind == 'send')
$unkind = 'recv';
else {
$kind = clean_xss_tags(trim($kind));
alert(''.$kind .'값을 넘겨주세요.');
alert("kind 변수 값이 올바르지 않습니다.");
}

if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
Expand Down
7 changes: 5 additions & 2 deletions bbs/write_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@

$wr_seo_title = exist_seo_title_recursive('bbs', generate_seo_title($wr_subject), $write_table, $wr_id);

$options = array($html,$secret,$mail);
$wr_option = implode(',', array_filter($options, function($v) { return trim($v); }));

if ($w == '' || $w == 'r') {

if ($member['mb_id']) {
Expand Down Expand Up @@ -258,7 +261,7 @@
wr_reply = '$wr_reply',
wr_comment = 0,
ca_name = '$ca_name',
wr_option = '$html,$secret,$mail',
wr_option = '$wr_option',
wr_subject = '$wr_subject',
wr_content = '$wr_content',
wr_seo_title = '$wr_seo_title',
Expand Down Expand Up @@ -380,7 +383,7 @@

$sql = " update {$write_table}
set ca_name = '{$ca_name}',
wr_option = '{$html},{$secret},{$mail}',
wr_option = '{$wr_option}',
wr_subject = '{$wr_subject}',
wr_content = '{$wr_content}',
wr_seo_title = '$wr_seo_title',
Expand Down
3 changes: 2 additions & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@
*/
define('G5_IP_DISPLAY', '\\1.♡.\\3.\\4');

if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') { //https 통신일때 daum 주소 js
if ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ||
(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO']==='https')) { //https 통신일때 daum 주소 js
define('G5_POSTCODE_JS', '<script src="https://spi.maps.daum.net/imap/map_js_init/postcode.v2.js"></script>');
} else { //http 통신일때 daum 주소 js
define('G5_POSTCODE_JS', '<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>');
Expand Down
2 changes: 1 addition & 1 deletion css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ a.btn_close {text-align:center;line-height:50px}
a.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
button.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
.btn_cancel:hover {background:#aaa}
a.btn_frmline, button.btn_frmline {display:inline-block;padding:0 25px;height:40px;border:0;background:#434a54;border-radius:3px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
a.btn_frmline, button.btn_frmline {display:inline-block;width:128px;padding:0 5px;height:40px;border:0;background:#434a54;border-radius:3px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
a.btn_frmline {}
button.btn_frmline {font-size:1em}

Expand Down
2 changes: 1 addition & 1 deletion css/default_shop.css
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ a.btn_close {text-align:center;line-height:50px}
a.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
button.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
.btn_cancel:hover {background:#aaa}
a.btn_frmline, button.btn_frmline {display:inline-block;padding:0 25px;height:40px;border:0;background:#434a54;border-radius:3px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
a.btn_frmline, button.btn_frmline {display:inline-block;width:128px;padding:0 5px;height:40px;border:0;background:#434a54;border-radius:3px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
a.btn_frmline {}
button.btn_frmline {font-size:1em}
a.btn_frmline {line-height:24px}
Expand Down
2 changes: 1 addition & 1 deletion js/shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ function price_calculate()
}
});

$("#sit_tot_price").empty().html("<span>총 금액 :</span> "+number_format(String(total))+"원");
$("#sit_tot_price").empty().html("<span>총 금액 :</span><strong>"+number_format(String(total))+"</strong> 원");

$("#sit_tot_price").trigger("price_calculate", [total]);
}
Expand Down
2 changes: 1 addition & 1 deletion mobile/shop/lg/mispwapurl.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 해당 페이지는 사용자가 ISP{국민/BC) 카드 결제를 성공하였을 때, 사용자에게 보여지는 페이지입니다.
include_once('./_common.php');

$LGD_OID = $_GET['LGD_OID'];
$LGD_OID = clean_xss_tags($_GET['LGD_OID']);

echo "LGD_OID = ".$LGD_OID;

Expand Down
2 changes: 1 addition & 1 deletion mobile/shop/mypage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include_once('./_common.php');

// 테마에 mypage.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
if(defined('G5_THEME_MSHOP_PATH')) {
$theme_mypage_file = G5_THEME_MSHOP_PATH.'/mypage.php';
if(is_file($theme_mypage_file)) {
include_once($theme_mypage_file);
Expand Down
2 changes: 1 addition & 1 deletion mobile/shop/orderinquiry.sub.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가

// 테마에 orderinquiry.sub.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
if(defined('G5_THEME_MSHOP_PATH')) {
$theme_inquiry_file = G5_THEME_MSHOP_PATH.'/orderinquiry.sub.php';
if(is_file($theme_inquiry_file)) {
include_once($theme_inquiry_file);
Expand Down
2 changes: 1 addition & 1 deletion mobile/shop/orderinquiryview.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include_once('./_common.php');

// 테마에 orderinquiryview.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
if(defined('G5_THEME_MSHOP_PATH')) {
$theme_inquiryview_file = G5_THEME_MSHOP_PATH.'/orderinquiryview.php';
if(is_file($theme_inquiryview_file)) {
include_once($theme_inquiryview_file);
Expand Down
2 changes: 1 addition & 1 deletion mobile/shop/wishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include_once('./_common.php');

// 테마에 wishlist.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
if(defined('G5_THEME_MSHOP_PATH')) {
$theme_wishlist_file = G5_THEME_MSHOP_PATH.'/wishlist.php';
if(is_file($theme_wishlist_file)) {
include_once($theme_wishlist_file);
Expand Down
6 changes: 6 additions & 0 deletions shop/inicis/libs/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ function processHTTP($url, $param) {
$data = substr($data, 1); // remove leading "&"
$url_data = parse_url($url);

// host 가 inicis.com 의 주소가 아니라면 false 반환
// [scheme] => https, [host] => fcstdpay.inicis.com, [path] => /api/payAuth
if (preg_match("#inicis\.com$#", $url_data["host"]) == false) {
// error_log(print_r($url_data, 1));
return false;
}

if ($url_data["scheme"] == "https") {
$this->ssl = "ssl://";
Expand Down
1 change: 1 addition & 0 deletions shop/price/google_feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@

$adult = "no";
foreach($cate_array as $key => $var) {
if(empty($var)) continue;
if(in_array(1, $category_adult_array[$var])) {
$adult = "yes";
}
Expand Down
2 changes: 1 addition & 1 deletion shop/settle_inicis_common.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

//**********************************************************************************

$PG_IP = $_SERVER['REMOTE_ADDR'];
$PG_IP = get_real_client_ip();

if( $PG_IP == "203.238.37.3" || $PG_IP == "203.238.37.15" || $PG_IP == "203.238.37.16" || $PG_IP == "203.238.37.25" || $PG_IP == "39.115.212.9" ) //PG에서 보냈는지 IP로 체크
{
Expand Down
4 changes: 2 additions & 2 deletions shop/settle_lg_common.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

$result = false;

if($row['pp_id']) {
if(isset($row['pp_id']) && $row['pp_id']) {
// 개인결제 UPDATE
$sql = " update {$g5['g5_shop_personalpay_table']}
set pp_receipt_price = '$LGD_AMOUNT',
Expand Down Expand Up @@ -113,7 +113,7 @@
}

if($result) {
if($row['od_id'])
if(isset($row['od_id']) && $row['od_id'])
$od_id = $row['od_id'];
else
$od_id = $LGD_OID;
Expand Down
2 changes: 1 addition & 1 deletion skin/latest/basic/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

.lat ul {padding:10px 0}
.lat li {position:relative;line-height:18px;border-bottom:1px solid #e5ecee;margin-bottom:10px}
.lat li a {line-height:24px;font-weight:bold;font-size:1.2em;line-height:20px;vertical-align:middle}
.lat li a {font-weight:bold;font-size:1.2em;line-height:20px;vertical-align:middle}
.lat li a:hover {color:#3a8afd}
.lat li .fa-heart {color:#ff0000}
.lat li .fa-lock {display:inline-block;line-height:14px;width:16px;font-size:0.833em;color:#4f818c;background:#cbe3e8;text-align:center;border-radius:2px;font-size:12px;border:1px solid #cbe3e8;vertical-align:middle}
Expand Down
4 changes: 2 additions & 2 deletions theme/basic/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ box-shadow:0 2px 5px rgba(0,0,0,0.2)}
#container_wr {margin:0 auto;zoom:1}
#aside {float:right;width:235px;padding:0;height:100%;margin:20px 0 20px 20px}

#container {position:relative;float:left;min-height:500px;height:auto !important;margin:20px 0;height:500px;font-size:1em;width:930px;zoom:1}
#container {position:relative;float:left;min-height:500px;height:auto !important;margin:20px 0;font-size:1em;width:930px;zoom:1}
#container:after {display:block;visibility:hidden;clear:both;content:""}
#container_title {font-size:1.333em;margin:0 auto;font-weight:bold}
#container_title span {margin:0 auto 10px;display:block;line-height:30px}
Expand Down Expand Up @@ -273,7 +273,7 @@ a.btn_close {text-align:center;line-height:50px}
a.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
button.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
.btn_cancel:hover {background:#aaa}
a.btn_frmline, button.btn_frmline {display:inline-block;padding:0 25px;height:40px;border:0;background:#434a54;border-radius:3px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
a.btn_frmline, button.btn_frmline {display:inline-block;width:128px;padding:0 5px;height:40px;border:0;background:#434a54;border-radius:3px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
a.btn_frmline {}
button.btn_frmline {font-size:1em}

Expand Down
2 changes: 1 addition & 1 deletion theme/basic/css/default_shop.css
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ a.btn_close {text-align:center;line-height:50px}
a.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
button.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
.btn_cancel:hover {background:#aaa}
a.btn_frmline, button.btn_frmline {display:inline-block;padding:0 25px;height:40px;border:0;background:#434a54;border-radius:3px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
a.btn_frmline, button.btn_frmline {display:inline-block;width:128px;padding:0 5px;height:40px;border:0;background:#434a54;border-radius:3px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
a.btn_frmline {}
button.btn_frmline {font-size:1em}
a.btn_frmline {line-height:24px}
Expand Down
2 changes: 1 addition & 1 deletion theme/basic/skin/latest/basic/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

.lat ul {padding:10px 0}
.lat li {position:relative;line-height:18px;border-bottom:1px solid #e5ecee;margin-bottom:10px}
.lat li a {line-height:24px;font-weight:bold;font-size:1.2em;line-height:20px;vertical-align:middle}
.lat li a {font-weight:bold;font-size:1.2em;line-height:20px;vertical-align:middle}
.lat li a:hover {color:#3a8afd}
.lat li .fa-heart {color:#ff0000}
.lat li .fa-lock {display:inline-block;line-height:14px;width:16px;font-size:0.833em;color:#4f818c;background:#cbe3e8;text-align:center;border-radius:2px;font-size:12px;border:1px solid #cbe3e8;vertical-align:middle}
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

define('G5_VERSION', '그누보드5');
define('G5_GNUBOARD_VER', '5.5.3.1');
define('G5_GNUBOARD_VER', '5.5.4');
// 그누보드5.4.5.5 버전과 영카트5.4.5.5.1 버전을 합쳐서 그누보드5.4.6 버전에서 시작함 (kagla-210617)
// G5_YOUNGCART_VER 이 상수를 사용하는 곳이 있으므로 주석 처리 해제함
// 그누보드5.4.6 이상 버전 부터는 영카트를 그누보드에 포함하여 배포하므로 영카트5의 버전은 의미가 없습니다.
Expand Down

0 comments on commit 7ab4622

Please sign in to comment.