From b34f577fbdb055934a7ddcad4f12312337e5e03f Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 27 Dec 2017 18:10:40 +0900 Subject: [PATCH 01/17] =?UTF-8?q?iframe=20=ED=97=88=EC=9A=A9=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=EC=9D=98=20=EC=9E=98=EB=AA=BB=EB=90=9C=20=EC=A0=95?= =?UTF-8?q?=EA=B7=9C=EC=8B=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/htmlpurifier/extend.video.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/htmlpurifier/extend.video.php b/plugin/htmlpurifier/extend.video.php index 8ba346a47..96cb5b846 100644 --- a/plugin/htmlpurifier/extend.video.php +++ b/plugin/htmlpurifier/extend.video.php @@ -22,8 +22,8 @@ if( !class_exists('HTMLPurifier_Filter_Iframevideo') ){ public function preFilter($html, $config, $context) { if (strstr($html, ']*>(.*?)?\/iframe>/si', array($this, 'trust_url_match'), $html); - $html = preg_replace_callback('/]*>(.*?)?\/iframe>/si', array($this, 'trust_url_match'), $html); + $html = preg_replace_callback('/]*>(.*?)?\/iframe>/i', array($this, 'trust_url_match'), $html); + $html = preg_replace_callback('/]*>(.*?)?\/iframe>/i', array($this, 'trust_url_match'), $html); //$html = preg_replace('##i', '', $html); } From fc976f2bedd6c7484844ab6de95236863b228496 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 5 Jan 2018 10:19:47 +0900 Subject: [PATCH 02/17] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=20=EC=84=A4?= =?UTF-8?q?=EB=AC=B8=EC=A1=B0=EC=82=AC=20=ED=8E=98=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=ED=95=84=ED=84=B0=EA=B5=AC=EB=AC=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/poll_form_update.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/adm/poll_form_update.php b/adm/poll_form_update.php index a3cba14ad..2d01fe6dd 100644 --- a/adm/poll_form_update.php +++ b/adm/poll_form_update.php @@ -10,6 +10,40 @@ auth_check($auth[$sub_menu], 'w'); check_admin_token(); +$check_keys = array( +'po_subject', +'po_poll1', +'po_poll2', +'po_poll3', +'po_poll4', +'po_poll5', +'po_poll6', +'po_poll7', +'po_poll8', +'po_poll9', +'po_cnt1', +'po_cnt2', +'po_cnt3', +'po_cnt4', +'po_cnt5', +'po_cnt6', +'po_cnt7', +'po_cnt8', +'po_cnt9', +'po_etc', +'po_level', +'po_point', +'po_id' +); + +foreach( $_POST as $key=>$value ){ + if( empty($value) ) continue; + + if( in_array($key, $check_keys) ) { + $_POST[$key] = strip_tags($value); + } +} + if ($w == '') { $sql = " insert {$g5['poll_table']} From c85d6cf4140dea7eab208e5e743f3ae16e380fa0 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 5 Jan 2018 10:55:21 +0900 Subject: [PATCH 03/17] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=20=ED=83=80?= =?UTF-8?q?=EC=9D=B4=ED=8B=80=20=EC=9E=98=EB=AA=BB=EB=90=9C=20=EB=B6=80?= =?UTF-8?q?=EB=B6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/board.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbs/board.php b/bbs/board.php index aeecf487f..4d734128c 100644 --- a/bbs/board.php +++ b/bbs/board.php @@ -136,7 +136,7 @@ if (isset($wr_id) && $wr_id) { set_session($ss_name, TRUE); } - $g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']); + $g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255))." > ".((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']); } else { if ($member['mb_level'] < $board['bo_list_level']) { if ($member['mb_id']) @@ -171,7 +171,7 @@ if (isset($wr_id) && $wr_id) { if (!isset($page) || (isset($page) && $page == 0)) $page = 1; - $g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']) ; + $g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']).' '.$page.' 페이지'; } include_once(G5_PATH.'/head.sub.php'); From a1247d5da9289cf13da6aeea13889928127d6793 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 11 Jan 2018 20:12:26 +0900 Subject: [PATCH 04/17] =?UTF-8?q?=EC=9D=B4=EC=A0=84=EA=B8=80=20=EB=8B=A4?= =?UTF-8?q?=EC=9D=8C=EA=B8=80=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/view.php | 10 ++++++---- skin/board/basic/view.skin.php | 4 ++-- skin/board/gallery/view.skin.php | 4 ++-- theme/basic/skin/board/basic/view.skin.php | 4 ++-- theme/basic/skin/board/gallery/view.skin.php | 4 ++-- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/bbs/view.php b/bbs/view.php index 1031da62c..2f4975abd 100644 --- a/bbs/view.php +++ b/bbs/view.php @@ -25,20 +25,20 @@ if (!$board['bo_use_list_view']) { $sql_search = " and " . $sql_search; // 윗글을 얻음 - $sql = " select wr_id, wr_subject from {$write_table} where wr_is_comment = 0 and wr_num = '{$write['wr_num']}' and wr_reply < '{$write['wr_reply']}' {$sql_search} order by wr_num desc, wr_reply desc limit 1 "; + $sql = " select wr_id, wr_subject, wr_datetime from {$write_table} where wr_is_comment = 0 and wr_num = '{$write['wr_num']}' and wr_reply < '{$write['wr_reply']}' {$sql_search} order by wr_num desc, wr_reply desc limit 1 "; $prev = sql_fetch($sql); // 위의 쿼리문으로 값을 얻지 못했다면 if (!$prev['wr_id']) { - $sql = " select wr_id, wr_subject from {$write_table} where wr_is_comment = 0 and wr_num < '{$write['wr_num']}' {$sql_search} order by wr_num desc, wr_reply desc limit 1 "; + $sql = " select wr_id, wr_subject, wr_datetime from {$write_table} where wr_is_comment = 0 and wr_num < '{$write['wr_num']}' {$sql_search} order by wr_num desc, wr_reply desc limit 1 "; $prev = sql_fetch($sql); } // 아래글을 얻음 - $sql = " select wr_id, wr_subject from {$write_table} where wr_is_comment = 0 and wr_num = '{$write['wr_num']}' and wr_reply > '{$write['wr_reply']}' {$sql_search} order by wr_num, wr_reply limit 1 "; + $sql = " select wr_id, wr_subject, wr_datetime from {$write_table} where wr_is_comment = 0 and wr_num = '{$write['wr_num']}' and wr_reply > '{$write['wr_reply']}' {$sql_search} order by wr_num, wr_reply limit 1 "; $next = sql_fetch($sql); // 위의 쿼리문으로 값을 얻지 못했다면 if (!$next['wr_id']) { - $sql = " select wr_id, wr_subject from {$write_table} where wr_is_comment = 0 and wr_num > '{$write['wr_num']}' {$sql_search} order by wr_num, wr_reply limit 1 "; + $sql = " select wr_id, wr_subject, wr_datetime from {$write_table} where wr_is_comment = 0 and wr_num > '{$write['wr_num']}' {$sql_search} order by wr_num, wr_reply limit 1 "; $next = sql_fetch($sql); } } @@ -48,6 +48,7 @@ $prev_href = ''; if (isset($prev['wr_id']) && $prev['wr_id']) { $prev_wr_subject = get_text(cut_str($prev['wr_subject'], 255)); $prev_href = './board.php?bo_table='.$bo_table.'&wr_id='.$prev['wr_id'].$qstr; + $prev_wr_date = $prev['wr_datetime']; } // 다음글 링크 @@ -55,6 +56,7 @@ $next_href = ''; if (isset($next['wr_id']) && $next['wr_id']) { $next_wr_subject = get_text(cut_str($next['wr_subject'], 255)); $next_href = './board.php?bo_table='.$bo_table.'&wr_id='.$next['wr_id'].$qstr; + $next_wr_date = $next['wr_datetime']; } // 쓰기 링크 diff --git a/skin/board/basic/view.skin.php b/skin/board/basic/view.skin.php index bbbdb6c61..dec627207 100644 --- a/skin/board/basic/view.skin.php +++ b/skin/board/basic/view.skin.php @@ -186,8 +186,8 @@ add_stylesheet('', 0 ', 0 ', 0 ', 0 Date: Tue, 16 Jan 2018 14:55:39 +0900 Subject: [PATCH 05/17] =?UTF-8?q?=EC=9D=BC=EB=B6=80=20css=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 7 ++++++ skin/board/basic/style.css | 2 +- skin/board/basic/write.skin.php | 24 +++++++++---------- skin/board/gallery/style.css | 2 +- skin/board/gallery/write.skin.php | 24 +++++++++---------- theme/basic/css/default.css | 7 ++++++ theme/basic/skin/board/basic/style.css | 2 +- theme/basic/skin/board/basic/write.skin.php | 24 +++++++++---------- theme/basic/skin/board/gallery/style.css | 2 +- theme/basic/skin/board/gallery/write.skin.php | 24 +++++++++---------- 10 files changed, 66 insertions(+), 52 deletions(-) diff --git a/css/default.css b/css/default.css index 186147903..7c852666e 100644 --- a/css/default.css +++ b/css/default.css @@ -423,6 +423,13 @@ box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);} box-shadow: inset 1px 1px 2px #222542; } +/* cheditor 이슈 */ +.cheditor-popup-window *, .cheditor-popup-window :after, .cheditor-popup-window :before { +-webkit-box-sizing: content-box; +-moz-box-sizing: content-box; +box-sizing: content-box; +} + /* Mobile화면으로 */ #device_change {display:block;margin:0.3em;padding:0.5em 0;border:1px solid #eee;border-radius:2em;background:#fff;color:#000;font-size:2em;text-decoration:none;text-align:center} diff --git a/skin/board/basic/style.css b/skin/board/basic/style.css index 237797072..4b5a320a0 100644 --- a/skin/board/basic/style.css +++ b/skin/board/basic/style.css @@ -348,7 +348,7 @@ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);} /*글쓰기*/ -#bo_w div{margin:10px 0;position:relative;} +#bo_w .write_div{margin:10px 0;position:relative} #bo_w .bo_w_info:after {display:block;visibility:hidden;clear:both;content:""} #bo_w .bo_w_info .frm_input{float:left;width:33%} #bo_w #wr_password{margin:0 0.5% } diff --git a/skin/board/basic/write.skin.php b/skin/board/basic/write.skin.php index 2f2b23b71..ea78e5bc4 100644 --- a/skin/board/basic/write.skin.php +++ b/skin/board/basic/write.skin.php @@ -55,7 +55,7 @@ add_stylesheet('', 0 ?> -
+
@@ -82,23 +82,23 @@ add_stylesheet('', 0
-
+
-
+
옵션
-
+
-
+
@@ -114,7 +114,7 @@ add_stylesheet('', 0
-
+
@@ -131,15 +131,15 @@ add_stylesheet('', 0
-