Compare commits

...
30 Commits
Author SHA1 Message Date
kagla ad48b6ba00 버전 5.4.22 수정 2022-01-17 14:53:39 +09:00
seeoya 0898268692 새창 기본 스타일 - 버튼 가운데정렬 추가 2022-01-11 16:07:52 +09:00
seeoya 7fe8d391d9 관리자 admin.css 파일의 오타 제거 (FreeMax님, 220106) 2022-01-10 14:30:46 +09:00
seeoya 21f4cf82a7 #133 쇼핑몰 상품문의, 사용후기 이동 시 해당 탭 활성화 (작은별님, 211229) 2022-01-10 14:29:58 +09:00
seeoya 7783027b58 #139 관리자 input에 좌우 여백 추가 2022-01-10 14:23:43 +09:00
seeoya 6e72dc7af4 사용후기 전체보기에서 관리자 답변이 보이지 않는 오류 수정 (작은별님, 220108) 2022-01-10 14:21:49 +09:00
kagla 80a1c9ac48 버전 5.4.21 수정 2022-01-10 12:28:12 +09:00
kagla 6667adbef9 Merge branch 'thumbnail_file_delete' 2022-01-10 12:26:57 +09:00
kagla c0b790e7f9 Merge branch 'board_headtail' 2022-01-10 11:56:09 +09:00
projectSylas f56b577c25 게시판관리에서 상단, 하단 파일 경로를 입력하지 않았다면 기본 상단, 하단
파일을 include 하지 않도록 수정 (작은별님,220105)
2022-01-05 16:29:56 +09:00
projectSylas 69b322144a 공지글 이동시 bo_notice 에서 글번호가 사라지지 않는 오류 수정 (ifelse님,211231) 2021-12-31 11:40:06 +09:00
projectSylas 52f7eef288 공지글이 없을때 나오는 오류 Trying to access array offset on value of type null 수정 2021-12-29 11:37:29 +09:00
kaglaandprojectSylas 7d22399eac 버전 5.4.20 수정 2021-12-29 11:37:03 +09:00
projectSylas 9af6991edd 그누보드만 사용하는 경우 썸네일 일괄삭제시 나오는 오류 수정 (МишаЧжан님,121227) 2021-12-27 09:50:55 +09:00
kagla a73967dd9a 버전 5.4.20 수정 2021-12-22 11:05:18 +09:00
kagla d941742b67 Merge branch 'total_cnt' of github.com:gnuboard/gnuboard5 into total_cnt 2021-12-22 10:59:30 +09:00
kagla 73a0f6ea80 Merge branch 'xss-pocas' 2021-12-22 10:57:49 +09:00
kagla 66d440f75e Merge branch 'xss-pocas' of github.com:gnuboard/gnuboard5 into xss-pocas 2021-12-22 10:57:19 +09:00
kagla 20c94e5b0a [보안패치] $kind 변수를 이용한 XSS 취약점 수정 (Pocas님,211214) 2021-12-22 10:56:51 +09:00
kagla f8480a41c8 중복된 </i> 태그 한개 삭제 (김철용님,211222) 2021-12-22 10:52:33 +09:00
kagla 26f6b802b7 SMS5 솔루션 설치시 불필요한 변수 삭제 (작은별님,211222) 2021-12-22 10:37:15 +09:00
projectSylas dfa677aadb 쇼핑몰 검색시 PC의 '전체분류'가 0으로 표시되는 오류 수정 (콜라시러님,211215)
전체분류가 앞에 나오도록 수정
2021-12-16 16:01:22 +09:00
kagla 2e81619ea8 $kind 변수를 이용한 XSS 취약점 수정 (Pocas님,211214) 2021-12-14 16:10:41 +09:00
kagla 796b6d9ab1 버전 5.4.19 수정 2021-12-09 10:48:40 +09:00
kagla d28c165fdf url에 타도메인을 지정할 수 있는 오류 수정 (Pocas님,211208) 2021-12-09 10:45:48 +09:00
kagla 80a71fef56 설치시 data/file/ 디렉토리에 기본게시판 디렉토리(free, gallery, notice, qa)가 만들어지지 않는 오류 수정 (작은별님,211206) 2021-12-08 12:28:56 +09:00
kagla 2144538f7e Merge branch 'visit_delete' 2021-12-08 11:03:57 +09:00
kagla d87802eb94 (KVE-2021-1846) url 값에 Line feed인 "%0A" 값을 삽입하여 전송하는 경우 check_url_host 함수 우회 취약점 수정 (Pocas님) 2021-12-08 10:38:18 +09:00
kagla 8c8bb94d68 접속자로그가 없을때 년도가 0부터 시작하는 것을 현재년도가 나오도록 수정 (다온테마님,211115) 2021-11-24 15:26:47 +09:00
projectSylas 7a054e1dbb .gitignore 에 pma 추가 2021-11-11 04:09:01 +00:00
27 changed files with 113 additions and 90 deletions
+1
View File
@@ -17,3 +17,4 @@ naver*.html
initests01/
SIRsoft000/
config.php
pma/
+16 -17
View File
@@ -144,7 +144,7 @@ box-shadow: 2px 0 2px rgba(150,150,150,0.1);}
.btn_submit{background:#ff4081;color:#fff}
a.btn_submit{background:#ff4081;color:#fff}
.btn_confirm .btn_submit {padding:0 15px;border:0;height:30px;color:#fff}
.btn_frmline {display:inline-block;padding:0 7px;height:24px;border:0;background:#444;color:#fff !important;letter-spacing:-0.1em;text-decoration:none;vertical-align:middle;line-height:2em} /* 우편번호검색버튼 등 */
.btn_frmline:focus, .btn_frmline:hover, .btn_frmline:active {text-decoration:none}
@@ -178,14 +178,14 @@ a.btn_submit{background:#ff4081;color:#fff}
.btn_add01 {text-align:right}
.btn_add01 a, .btn_add01 button {padding:10px;border:1px solid #ccc;background:#f0f0f0;text-decoration:none;cursor:pointer}
.btn_add01 a {display:inline-block;vertical-align:middle}btn_confirm
.btn_add01 a {display:inline-block;vertical-align:middle}
.btn_add01 button {margin:0}
.td_mng a.btn,.td_mng a{display:inline-block;height:26px;line-height:26px;border:0;border-radius:3px;padding:0 8px;margin:1px;font-weight:normal}
.td_mng button,.td_mng button.btn{height:26px;border:0;border-radius:3px;padding:0 8px;margin:1px;font-weight:normal}
.btn{height:30px;border:0;border-radius:5px;padding:0 10px;font-weight:bold;font-size:1.09em;vertical-align:middle}
a.btn{display:inline-block;height:30px;line-height:30px;border:0;border-radius:5px;padding:0 10px;font-weight:bold;font-size:1.09em;vertical-align:middle}
.btn_submit{background:#ff4081;color:#fff}
@@ -208,7 +208,7 @@ a.btn_ov02:hover,a.ov_listall:hover{background:#3f51b5}
/*form*/
.sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;width:1px !important;height:1px !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}
.frm_input{height:35px;line-height:32px;border:1px solid #d5d5d5;}
.frm_input{padding:0 5px;height:35px;line-height:32px;border:1px solid #d5d5d5;}
.frm_input_full{width:100%}
.required{background:url('../img/wrest.gif') top right no-repeat #fff !important}
select{height:35px;line-height:32px;border:1px solid #d5d5d5;}
@@ -249,7 +249,7 @@ legend {position:absolute;width:0;height:0;font-size:0;line-height:0;text-indent
#sort_mb {width:800px}
#sort_sodr {width:600px}
@@ -310,7 +310,7 @@ border-bottom: 5px solid black;}
.local_ov01 .ov_a{display:inline-block;line-height:30px;height:30px;font-size:0.92em;background:#ff4081;color:#fff;vertical-align:top;border-radius:5px;padding:0 7px}
.local_ov01 .ov_a:hover{background:#ff1464}
/* 테이블 */
table {clear:both;width:100%;border-collapse:collapse;border-spacing:0;}
table caption {height:0;font-size:0;line-height:0;overflow:hidden}
@@ -750,7 +750,7 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
/* 분류관리 목록 */
#sct .sct_name {width:130px}
#sct th{padding:5px}
#sct .sct_name div {position:relative}
#sct .sct_name1 {padding-left:25px}
#sct .sct_name2 {padding-left:50px}
@@ -905,10 +905,8 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
.new_win_ul {margin:-20px 0 20px 0;padding:0 0 0 20px;border-bottom:1px solid #515151;background:#484848;list-style:none;zoom:1}
.new_win_ul:after {display:block;visibility:hidden;clear:both;content:""}
.new_win_ul li {float:left;margin-left:-1px}
.new_win_ul a {display:block;padding:10px 10px 8px;border-right:1px solid #595959;border-left:1px solid #595959;color:#fff;font-family:dotum;font-weight:bold;text-decoration:none}
.new_win_desc {margin:0 }
.new_win .anchor {margin:0 0 5px}
@@ -918,12 +916,13 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
.new_win .win_btn a {display:inline-block;padding:0 10px;height:30px;background:#4b545e;color:#fff;vertical-align:middle;line-height:2.4em}
.new_win .win_btn a:focus, .new_win .win_btn a:hover {text-decoration:none}
.new_win .local_sch, .new_win .local_cmd, .new_win .local_desc01, .new_win .local_desc02, .new_win .local_ov {margin:10px}
.new_win_con{margin: 10px; background:#fff;padding:20px}
.new_win_con .table_form table th{width:120px}
.new_win .btn_confirm {text-align:center;}
/* 자바스크립트 alert 대안 */
#validation_check {margin:100px auto;width:500px}
#validation_check h1 {margin-bottom:20px;font-size:1.3em}
@@ -1053,7 +1052,7 @@ box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);}
#theme_list{padding:0;margin:0;list-style:none; width: 1000px;position:relative}
#theme_list:after{display:block;visibility:hidden;clear:both;content:""}
#theme_list li{margin:10px 10px 10px 0;float:left}
#theme_list li:after{display:block;visibility:hidden;clear:both;content:""}
#theme_list li .tmli_if{border: 1px solid #d1dee2;width:302px;}
#theme_list li .tmli_if>img{width:300px;height:225px;}
@@ -1111,9 +1110,9 @@ box-shadow: 1px 2px 5px rgba(150,150,150,0.5);z-index:1000}
#processing{margin: 0 auto;padding: 70px 0;border: 1px solid #eee;background: #f9f9f9;text-align:center;}
#processing p{font-size:1.2em}
.check_processing {width:300px;height:300px;margin:0 auto;background:url(../img/check.png) no-repeat 50% 50% }
#processing button{background:#ff3061;border:none;color:#fff;padding: 15px;width:200px;margin-top:15px;border-radius:5px;font-weight:bold;font-size:1.167em}
#processing button{background:#ff3061;border:none;color:#fff;padding: 15px;width:200px;margin-top:15px;border-radius:5px;font-weight:bold;font-size:1.167em}
/*미완료 주문*/
@@ -1134,7 +1133,7 @@ box-shadow: 1px 2px 5px rgba(150,150,150,0.5);z-index:1000}
#itemuselist .use_href{font-weight:bold;text-decoration:none;display:block;}
#itemuselist .use_href .tit_op{background:url(./../img/op_btn1.gif) no-repeat 50% 50%;display:inline-block;text-indent:-999px;overflow:hidden;width:7px;height:4px;margin-left:5px}
#itemuselist .use_div{background:#d8dfe9;padding:10px;margin:5px 0 0;display:none;}
#itemuselist .td_select{width:100px}
#itemuselist .td_select{width:100px}
@media only screen and (max-device-width : 768px) and (orientation : landscape){
@@ -1145,4 +1144,4 @@ input[type="text"]{max-width:200px}
@media only screen and (max-device-width : 480px) and (orientation : portrait){
/* Styles */
input[type="text"]{max-width:200px}
}
}
-5
View File
@@ -61,11 +61,6 @@ for ($i=0; $i<count($f); $i++) {
echo "<script>document.getElementById('sms5_job_01').innerHTML='전체 테이블 생성 완료';</script>";
flush(); usleep(50000);
$read_point = -1;
$write_point = 5;
$comment_point = 1;
$download_point = -20;
//-------------------------------------------------------------------------------------------------
// config 테이블 설정
$sql = " insert into {$g5['sms5_book_group_table']} set bg_name='미분류'";
+1 -1
View File
@@ -19,7 +19,7 @@ include_once('./admin.head.php');
$directory = array();
$dl = array('file', 'editor');
if( defined('G5_YOUNGCART_VER') ){
if (defined('G5_USE_SHOP') && G5_USE_SHOP) {
$dl[] = 'item';
}
+3
View File
@@ -13,6 +13,9 @@ $row = sql_fetch($sql);
$min_year = (int)substr($row['min_date'], 0, 4);
$now_year = (int)substr(G5_TIME_YMD, 0, 4);
if (!$min_year) {
$min_year = $now_year;
}
?>
<div class="local_ov01 local_ov">
+7 -4
View File
@@ -7,10 +7,13 @@ if (G5_IS_MOBILE) {
include_once(G5_BBS_PATH.'/_head.php');
echo html_purifier(stripslashes($board['bo_mobile_content_head']));
} else {
if($board['bo_include_head'] && is_include_path_check($board['bo_include_head'])) { //파일경로 체크
@include ($board['bo_include_head']);
} else { //파일경로가 올바르지 않으면 기본파일을 가져옴
include_once(G5_BBS_PATH.'/_head.php');
// 상단 파일 경로를 입력하지 않았다면 기본 상단 파일도 include 하지 않음
if (trim($board['bo_include_head'])) {
if (is_include_path_check($board['bo_include_head'])) { //파일경로 체크
@include ($board['bo_include_head']);
} else { //파일경로가 올바르지 않으면 기본파일을 가져옴
include_once(G5_BBS_PATH.'/_head.php');
}
}
echo html_purifier(stripslashes($board['bo_content_head']));
}
+7 -4
View File
@@ -8,9 +8,12 @@ if (G5_IS_MOBILE) {
include_once(G5_BBS_PATH.'/_tail.php');
} else {
echo html_purifier(stripslashes($board['bo_content_tail']));
if($board['bo_include_tail'] && is_include_path_check($board['bo_include_tail'])) { //파일경로 체크
@include ($board['bo_include_tail']);
} else { //파일경로가 올바르지 않으면 기본파일을 가져옴
include_once(G5_BBS_PATH.'/_tail.php');
// 하단 파일 경로를 입력하지 않았다면 기본 하단 파일도 include 하지 않음
if (trim($board['bo_include_tail'])) {
if (is_include_path_check($board['bo_include_tail'])) { //파일경로 체크
@include ($board['bo_include_tail']);
} else { //파일경로가 올바르지 않으면 기본파일을 가져옴
include_once(G5_BBS_PATH.'/_tail.php');
}
}
}
+1 -1
View File
@@ -96,7 +96,7 @@ if (!$is_search_bbs) {
$row = sql_fetch(" select * from {$write_table} where wr_id = '{$arr_notice[$k]}' ");
if (!$row['wr_id']) continue;
if (!isset($row['wr_id']) || !$row['wr_id']) continue;
$notice_array[] = $row['wr_id'];
+3 -1
View File
@@ -15,8 +15,10 @@ if ($kind == 'recv')
$unkind = 'send';
else if ($kind == 'send')
$unkind = 'recv';
else
else {
$kind = clean_xss_tags(trim($kind));
alert(''.$kind .'값을 넘겨주세요.');
}
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
+18 -1
View File
@@ -247,7 +247,24 @@ if ($sw == 'move')
sql_query(" delete from {$g5['board_new_table']} where bo_table = '$bo_table' and wr_id = '{$save[$i]['wr_id']}' ");
sql_query(" delete from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$save[$i]['wr_id']}' ");
}
sql_query(" update {$g5['board_table']} set bo_count_write = bo_count_write - '$save_count_write', bo_count_comment = bo_count_comment - '$save_count_comment' where bo_table = '$bo_table' ");
// 공지사항이 이동되는 경우의 처리 begin
$arr = array();
$sql = " select bo_notice from {$g5['board_table']} where bo_table = '{$bo_table}' ";
$row = sql_fetch($sql);
$arr_notice = explode(',', $row['bo_notice']);
for ($i=0; $i<count($arr_notice); $i++) {
$move_id = (int)$arr_notice[$i];
// 게시판에 wr_id 가 있다면 이동한게 아니므로 bo_notice 에 다시 넣음
$row2 = sql_fetch(" select count(*) as cnt from $write_table where wr_id = '{$move_id}' ");
if ($row2['cnt']) {
$arr[] = $move_id;
}
$bo_notice = implode(',', $arr);
}
// 공지사항이 이동되는 경우의 처리 end
sql_query(" update {$g5['board_table']} set bo_notice = '{$bo_notice}', bo_count_write = bo_count_write - '$save_count_write', bo_count_comment = bo_count_comment - '$save_count_comment' where bo_table = '$bo_table' ");
}
$msg = '해당 게시물을 선택한 게시판으로 '.$act.' 하였습니다.';
+7
View File
@@ -529,6 +529,13 @@ for ($i=0; $i<count($dir_arr); $i++) {
@chmod($dir_arr[$i], G5_DIR_PERMISSION);
}
// 게시판 디렉토리 생성 (작은별님,211206)
for ($i=0; $i<count($tmp_bo_table); $i++) {
$board_dir = $data_path.'/file/'.$tmp_bo_table[$i];
@mkdir($board_dir, G5_DIR_PERMISSION);
@chmod($board_dir, G5_DIR_PERMISSION);
}
if($g5_shop_install) {
$dir_arr = array (
$data_path.'/banner',
+2 -1
View File
@@ -3299,7 +3299,8 @@ function check_url_host($url, $msg='', $return_url=G5_URL, $is_redirect=false)
if(!$msg)
$msg = 'url에 타 도메인을 지정할 수 없습니다.';
$p = @parse_url($url);
$url = urldecode($url);
$p = @parse_url(trim($url));
$host = preg_replace('/:[0-9]+$/', '', $_SERVER['HTTP_HOST']);
$is_host_check = false;
+9 -4
View File
@@ -346,10 +346,10 @@ $(function (){
<div id="sit_tab">
<ul class="tab_tit">
<li><button type="button" rel="#sit_inf" class="selected">상품정보</button></li>
<li><button type="button" rel="#sit_use">사용후기</button></li>
<li><button type="button" rel="#sit_qa">상품문의</button></li>
<li><button type="button" rel="#sit_dvex">배송/교환</button></li>
<li><button type="button" id="btn_sit_inf" rel="#sit_inf" class="selected">상품정보</button></li>
<li><button type="button" id="btn_sit_use" rel="#sit_use">사용후기</button></li>
<li><button type="button" id="btn_sit_qa" rel="#sit_qa">상품문의</button></li>
<li><button type="button" id="btn_sit_dvex" rel="#sit_dvex">배송/교환</button></li>
</ul>
<ul class="tab_con">
@@ -516,6 +516,11 @@ $(function(){
return false;
});
if (window.location.href.split("#").length > 1) {
let id = window.location.href.split("#")[1];
$("#btn_" + id).trigger("click");
};
});
// 상품보관
+1 -8
View File
@@ -93,19 +93,12 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">',
$is_reply_content = get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width);
?>
<div class="sps_reply">
<div class="sps_img">
<a href="<?php echo $it_href; ?>">
<?php echo get_itemuselist_thumbnail($row['it_id'], $row['is_reply_content'], 50, 50); ?>
<span><?php echo $row2['it_name']; ?></span>
</a>
</div>
<section>
<h2 class="is_use_reply"><?php echo get_text($row['is_reply_subject']); ?></h2>
<div class="sps_dl">
<?php echo $row['is_reply_name']; ?>
</div>
<div id="sps_con_<?php echo $i; ?>_reply" style="display:none;">
<div id="sps_con_<?php echo $i; ?>_reply">
<?php echo $is_reply_content; // 사용후기 답변 내용 ?>
</div>
</section>
+1 -1
View File
@@ -44,12 +44,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="ssch_cate">
<ul>
<?php
echo '<li><a href="#" onclick="set_ca_id(\'\'); return false;">전체분류 <span>'.$total_count.'</span></a></li>'.PHP_EOL;
$total_cnt = 0;
foreach( $categorys as $row ){
echo "<li><a href=\"#\" onclick=\"set_ca_id('{$row['ca_id']}'); return false;\">{$row['ca_name']} <span>".$row['cnt']."</span></a></li>\n";
$total_cnt += $row['cnt'];
}
echo '<li><a href="#" onclick="set_ca_id(\'\'); return false;">전체분류 <span>'.$total_cnt.'</span></a></li>'.PHP_EOL;
?>
</ul>
</div>
+1 -1
View File
@@ -123,7 +123,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
<?php if ($prev_href || $next_href) { ?>
<ul class="bo_v_nb">
<?php if ($prev_href) { ?><li><a href="<?php echo $prev_href ?>" class="btn_b01 btn"><i class="fa fa-chevron-left" aria-hidden="true"></i> 이전글</a></li><?php } ?>
<?php if ($next_href) { ?><li><a href="<?php echo $next_href ?>" class="btn_b01 btn">다음글 <i class="fa fa-chevron-right" aria-hidden="true"></i></i></a></li><?php } ?>
<?php if ($next_href) { ?><li><a href="<?php echo $next_href ?>" class="btn_b01 btn">다음글 <i class="fa fa-chevron-right" aria-hidden="true"></i></a></li><?php } ?>
</ul>
<?php } ?>
+9 -4
View File
@@ -28,10 +28,10 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0
<section id="sit_info">
<div id="sit_tab">
<ul class="tab_tit">
<li><button type="button" rel="#sit_inf" class="selected">상품정보</button></li>
<li><button type="button" rel="#sit_use">사용후기 <span class="item_use_count"><?php echo $item_use_count; ?></span></button></li>
<li><button type="button" rel="#sit_qa">상품문의 <span class="item_qa_count"><?php echo $item_qa_count; ?></span></button></li>
<li><button type="button" rel="#sit_dex">배송/교환</button></li>
<li><button type="button" id="btn_sit_inf" rel="#sit_inf" class="selected">상품정보</button></li>
<li><button type="button" id="btn_sit_use" rel="#sit_use">사용후기 <span class="item_use_count"><?php echo $item_use_count; ?></span></button></li>
<li><button type="button" id="btn_sit_qa" rel="#sit_qa">상품문의 <span class="item_qa_count"><?php echo $item_qa_count; ?></span></button></li>
<li><button type="button" id="btn_sit_dvex" rel="#sit_dex">배송/교환</button></li>
</ul>
<ul class="tab_con">
@@ -328,5 +328,10 @@ jQuery(function($){
$("#sit_ov_btn .sit_btn_buy").trigger("click");
}
});
if (window.location.href.split("#").length > 1) {
let id = window.location.href.split("#")[1];
$("#btn_" + id).trigger("click");
};
});
</script>
+1 -8
View File
@@ -102,19 +102,12 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_SKIN_URL.'/style.css">',
$is_reply_content = get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width);
?>
<div class="sps_reply">
<div class="sps_img">
<a href="<?php echo $it_href; ?>">
<?php echo get_itemuselist_thumbnail($row['it_id'], $row['is_reply_content'], 50, 50); ?>
<span><?php echo $row2['it_name']; ?></span>
</a>
</div>
<section>
<h2 class="is_use_reply"><?php echo get_text($row['is_reply_subject']); ?></h2>
<div class="sps_dl">
<i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $row['is_reply_name']; ?>
</div>
<div id="sps_con_<?php echo $i; ?>_reply" style="display:none;">
<div id="sps_con_<?php echo $i; ?>_reply">
<?php echo $is_reply_content; // 사용후기 답변 내용 ?>
</div>
</section>
+1 -1
View File
@@ -42,8 +42,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="ssch_cate">
<ul>
<?php
echo '<li><a href="#" onclick="set_ca_id(\'\'); return false;">전체분류 <span>('.$total_count.')</span></a></li>'.PHP_EOL;
$total_cnt = 0;
echo '<li><a href="#" onclick="set_ca_id(\'\'); return false;">전체분류 <span>('.$total_cnt.')</span></a></li>'.PHP_EOL;
foreach((array) $categorys as $row){
if( empty($row) ) continue;
echo "<li><a href=\"#\" onclick=\"set_ca_id('{$row['ca_id']}'); return false;\">{$row['ca_name']} (".$row['cnt'].")</a></li>\n";
@@ -346,10 +346,10 @@ $(function (){
<div id="sit_tab">
<ul class="tab_tit">
<li><button type="button" rel="#sit_inf" class="selected">상품정보</button></li>
<li><button type="button" rel="#sit_use">사용후기</button></li>
<li><button type="button" rel="#sit_qa">상품문의</button></li>
<li><button type="button" rel="#sit_dvex">배송/교환</button></li>
<li><button type="button" id="btn_sit_inf" rel="#sit_inf" class="selected">상품정보</button></li>
<li><button type="button" id="btn_sit_use" rel="#sit_use">사용후기</button></li>
<li><button type="button" id="btn_sit_qa" rel="#sit_qa">상품문의</button></li>
<li><button type="button" id="btn_sit_dvex" rel="#sit_dvex">배송/교환</button></li>
</ul>
<ul class="tab_con">
@@ -516,6 +516,11 @@ $(function(){
return false;
});
if (window.location.href.split("#").length > 1) {
let id = window.location.href.split("#")[1];
$("#btn_" + id).trigger("click");
};
});
// 상품보관
@@ -93,19 +93,12 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">',
$is_reply_content = get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width);
?>
<div class="sps_reply">
<div class="sps_img">
<a href="<?php echo $it_href; ?>">
<?php echo get_itemuselist_thumbnail($row['it_id'], $row['is_reply_content'], 50, 50); ?>
<span><?php echo $row2['it_name']; ?></span>
</a>
</div>
<section>
<h2 class="is_use_reply"><?php echo get_text($row['is_reply_subject']); ?></h2>
<div class="sps_dl">
<?php echo $row['is_reply_name']; ?>
</div>
<div id="sps_con_<?php echo $i; ?>_reply" style="display:none;">
<div id="sps_con_<?php echo $i; ?>_reply">
<?php echo $is_reply_content; // 사용후기 답변 내용 ?>
</div>
</section>
@@ -44,12 +44,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="ssch_cate">
<ul>
<?php
echo '<li><a href="#" onclick="set_ca_id(\'\'); return false;">전체분류 <span>'.$total_count.'</span></a></li>'.PHP_EOL;
$total_cnt = 0;
foreach( $categorys as $row ){
echo "<li><a href=\"#\" onclick=\"set_ca_id('{$row['ca_id']}'); return false;\">{$row['ca_name']} <span>".$row['cnt']."</span></a></li>\n";
$total_cnt += $row['cnt'];
}
echo '<li><a href="#" onclick="set_ca_id(\'\'); return false;">전체분류 <span>'.$total_cnt.'</span></a></li>'.PHP_EOL;
?>
</ul>
</div>
+1 -1
View File
@@ -123,7 +123,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
<?php if ($prev_href || $next_href) { ?>
<ul class="bo_v_nb">
<?php if ($prev_href) { ?><li><a href="<?php echo $prev_href ?>" class="btn_b01 btn"><i class="fa fa-chevron-left" aria-hidden="true"></i> 이전글</a></li><?php } ?>
<?php if ($next_href) { ?><li><a href="<?php echo $next_href ?>" class="btn_b01 btn">다음글 <i class="fa fa-chevron-right" aria-hidden="true"></i></i></a></li><?php } ?>
<?php if ($next_href) { ?><li><a href="<?php echo $next_href ?>" class="btn_b01 btn">다음글 <i class="fa fa-chevron-right" aria-hidden="true"></i></a></li><?php } ?>
</ul>
<?php } ?>
@@ -28,10 +28,10 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0
<section id="sit_info">
<div id="sit_tab">
<ul class="tab_tit">
<li><button type="button" rel="#sit_inf" class="selected">상품정보</button></li>
<li><button type="button" rel="#sit_use">사용후기 <span class="item_use_count"><?php echo $item_use_count; ?></span></button></li>
<li><button type="button" rel="#sit_qa">상품문의 <span class="item_qa_count"><?php echo $item_qa_count; ?></span></button></li>
<li><button type="button" rel="#sit_dex">배송/교환</button></li>
<li><button type="button" id="btn_sit_inf" rel="#sit_inf" class="selected">상품정보</button></li>
<li><button type="button" id="btn_sit_use" rel="#sit_use">사용후기 <span class="item_use_count"><?php echo $item_use_count; ?></span></button></li>
<li><button type="button" id="btn_sit_qa" rel="#sit_qa">상품문의 <span class="item_qa_count"><?php echo $item_qa_count; ?></span></button></li>
<li><button type="button" id="btn_sit_dvex" rel="#sit_dex">배송/교환</button></li>
</ul>
<ul class="tab_con">
@@ -328,5 +328,10 @@ jQuery(function($){
$("#sit_ov_btn .sit_btn_buy").trigger("click");
}
});
if (window.location.href.split("#").length > 1) {
let id = window.location.href.split("#")[1];
$("#btn_" + id).trigger("click");
};
});
</script>
@@ -102,19 +102,12 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_SKIN_URL.'/style.css">',
$is_reply_content = get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width);
?>
<div class="sps_reply">
<div class="sps_img">
<a href="<?php echo $it_href; ?>">
<?php echo get_itemuselist_thumbnail($row['it_id'], $row['is_reply_content'], 50, 50); ?>
<span><?php echo $row2['it_name']; ?></span>
</a>
</div>
<section>
<h2 class="is_use_reply"><?php echo get_text($row['is_reply_subject']); ?></h2>
<div class="sps_dl">
<i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $row['is_reply_name']; ?>
</div>
<div id="sps_con_<?php echo $i; ?>_reply" style="display:none;">
<div id="sps_con_<?php echo $i; ?>_reply">
<?php echo $is_reply_content; // 사용후기 답변 내용 ?>
</div>
</section>
+1 -1
View File
@@ -42,8 +42,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="ssch_cate">
<ul>
<?php
echo '<li><a href="#" onclick="set_ca_id(\'\'); return false;">전체분류 <span>('.$total_count.')</span></a></li>'.PHP_EOL;
$total_cnt = 0;
echo '<li><a href="#" onclick="set_ca_id(\'\'); return false;">전체분류 <span>('.$total_cnt.')</span></a></li>'.PHP_EOL;
foreach((array) $categorys as $row){
if( empty($row) ) continue;
echo "<li><a href=\"#\" onclick=\"set_ca_id('{$row['ca_id']}'); return false;\">{$row['ca_name']} (".$row['cnt'].")</a></li>\n";
+1 -1
View File
@@ -2,7 +2,7 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
define('G5_VERSION', '그누보드5');
define('G5_GNUBOARD_VER', '5.4.18');
define('G5_GNUBOARD_VER', '5.4.22');
// 그누보드5.4.5.5 버전과 영카트5.4.5.5.1 버전을 합쳐서 그누보드5.4.6 버전에서 시작함 (kagla-210617)
// G5_YOUNGCART_VER 이 상수를 사용하는 곳이 있으므로 주석 처리 해제함
// 그누보드5.4.6 이상 버전 부터는 영카트를 그누보드에 포함하여 배포하므로 영카트5의 버전은 의미가 없습니다.