From 46f484461fee5b328161af3377b3a4217887c381 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 20 Oct 2014 10:33:18 +0900 Subject: [PATCH] =?UTF-8?q?DHTML=20=EC=97=90=EB=94=94=ED=84=B0=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_form.php | 8 ++++---- adm/faqform.php | 7 ++----- adm/faqmasterform.php | 8 ++++---- adm/mail_form.php | 4 ++-- adm/mail_preview.php | 6 +++--- adm/newwinform.php | 2 +- adm/qa_config.php | 8 ++++---- bbs/faq.php | 4 ++-- bbs/qahead.php | 4 ++-- bbs/qatail.php | 4 ++-- mobile/skin/faq/basic/list.skin.php | 4 ++-- skin/faq/basic/list.skin.php | 4 ++-- 12 files changed, 30 insertions(+), 33 deletions(-) diff --git a/adm/board_form.php b/adm/board_form.php index 1cc440d6e..1bf23223c 100644 --- a/adm/board_form.php +++ b/adm/board_form.php @@ -842,7 +842,7 @@ $frm_submit .= ''; - + @@ -854,7 +854,7 @@ $frm_submit .= ''; - + @@ -866,7 +866,7 @@ $frm_submit .= ''; - + @@ -878,7 +878,7 @@ $frm_submit .= ''; - + diff --git a/adm/faqform.php b/adm/faqform.php index c9514b4c2..19ed0894d 100644 --- a/adm/faqform.php +++ b/adm/faqform.php @@ -18,9 +18,6 @@ if ($w == "u") $sql = " select * from {$g5['faq_table']} where fa_id = '$fa_id' "; $fa = sql_fetch($sql); if (!$fa['fa_id']) alert("등록된 자료가 없습니다."); - - $fa['fa_subject'] = htmlspecialchars2($fa['fa_subject']); - $fa['fa_content'] = htmlspecialchars2($fa['fa_content']); } else $html_title .= ' 항목 입력'; @@ -53,11 +50,11 @@ include_once (G5_ADMIN_PATH.'/admin.head.php'); 질문 - + 답변 - + diff --git a/adm/faqmasterform.php b/adm/faqmasterform.php index 84100dcbc..eb7f105a8 100644 --- a/adm/faqmasterform.php +++ b/adm/faqmasterform.php @@ -113,25 +113,25 @@ include_once (G5_ADMIN_PATH.'/admin.head.php'); 상단 내용 - + 하단 내용 - + 모바일상단 내용 - + 모바일하단 내용 - + diff --git a/adm/mail_form.php b/adm/mail_form.php index f743b7fb4..579c46bf6 100644 --- a/adm/mail_form.php +++ b/adm/mail_form.php @@ -46,7 +46,7 @@ include_once('./admin.head.php'); - + @@ -74,7 +74,7 @@ function fmailform_check(f) - + return true; } diff --git a/adm/mail_preview.php b/adm/mail_preview.php index 110d3bae2..16abd479d 100644 --- a/adm/mail_preview.php +++ b/adm/mail_preview.php @@ -8,7 +8,7 @@ auth_check($auth[$sub_menu], 'r'); $se = sql_fetch("select ma_subject, ma_content from {$g5['mail_table']} where ma_id = '{$ma_id}' "); $subject = $se['ma_subject']; -$content = $se['ma_content'] . "

▶ 더 이상 정보 수신을 원치 않으시면 [수신거부] 해 주십시오.

"; +$content = conv_content($se['ma_content'], 1) . "

▶ 더 이상 정보 수신을 원치 않으시면 [수신거부] 해 주십시오.

"; ?> @@ -20,10 +20,10 @@ $content = $se['ma_content'] . "

+

diff --git a/adm/newwinform.php b/adm/newwinform.php index 9fb2452db..ac83b261c 100644 --- a/adm/newwinform.php +++ b/adm/newwinform.php @@ -111,7 +111,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php'); - + diff --git a/adm/qa_config.php b/adm/qa_config.php index c7921d1e1..4357e0240 100644 --- a/adm/qa_config.php +++ b/adm/qa_config.php @@ -268,25 +268,25 @@ if(!isset($qaconfig['qa_include_head'])) { - + - + - + - + diff --git a/bbs/faq.php b/bbs/faq.php index eaa3b491a..381c7b2eb 100644 --- a/bbs/faq.php +++ b/bbs/faq.php @@ -84,8 +84,8 @@ if(is_file($skin_file)) { for ($i=0;$row=sql_fetch_array($result);$i++){ $faq_list[] = $row; if($stx) { - $faq_list[$i]['fa_subject'] = search_font($stx, $faq_list[$i]['fa_subject']); - $faq_list[$i]['fa_content'] = search_font($stx, $faq_list[$i]['fa_content']); + $faq_list[$i]['fa_subject'] = search_font($stx, conv_content($faq_list[$i]['fa_subject'], 1)); + $faq_list[$i]['fa_content'] = search_font($stx, conv_content($faq_list[$i]['fa_content'], 1)); } } include_once($skin_file); diff --git a/bbs/qahead.php b/bbs/qahead.php index 24cf0e564..387a51385 100644 --- a/bbs/qahead.php +++ b/bbs/qahead.php @@ -7,12 +7,12 @@ $qa_skin_url = (G5_IS_MOBILE ? G5_MOBILE_URL : G5_URL).'/'.G5_SKIN_DIR.'/qa/'.$q if (G5_IS_MOBILE) { // 모바일의 경우 설정을 따르지 않는다. include_once('./_head.php'); - echo stripslashes($qaconfig['qa_mobile_content_head']); + echo conv_content($qaconfig['qa_mobile_content_head'], 1); } else { if($qaconfig['qa_include_head']) @include ($qaconfig['qa_include_head']); else include ('./_head.php'); - echo stripslashes($qaconfig['qa_content_head']); + echo conv_content($qaconfig['qa_content_head'], 1); } ?> \ No newline at end of file diff --git a/bbs/qatail.php b/bbs/qatail.php index 3e5e6dead..b8b667307 100644 --- a/bbs/qatail.php +++ b/bbs/qatail.php @@ -2,11 +2,11 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (G5_IS_MOBILE) { - echo stripslashes($qaconfig['qa_mobile_content_tail']); + echo conv_content($qaconfig['qa_mobile_content_tail'], 1); // 모바일의 경우 설정을 따르지 않는다. include_once('./_tail.php'); } else { - echo stripslashes($qaconfig['qa_mobile_content_tail']); + echo conv_content($qaconfig['qa_mobile_content_tail'], 1); if($qaconfig['qa_include_tail']) @include ($qaconfig['qa_include_tail']); else diff --git a/mobile/skin/faq/basic/list.skin.php b/mobile/skin/faq/basic/list.skin.php index d823a9579..d64a533a1 100644 --- a/mobile/skin/faq/basic/list.skin.php +++ b/mobile/skin/faq/basic/list.skin.php @@ -8,7 +8,7 @@ add_stylesheet('', 0); '.stripslashes($fm['fm_mobile_head_html']).''; +echo '

'.conv_content($fm['fm_mobile_head_html'], 1).'
'; ?> '.stripslashes($fm['fm_tail_html']).''; +echo '
'.conv_content($fm['fm_tail_html'], 1).'
'; ?>
diff --git a/skin/faq/basic/list.skin.php b/skin/faq/basic/list.skin.php index bf26708de..5149fd1fe 100644 --- a/skin/faq/basic/list.skin.php +++ b/skin/faq/basic/list.skin.php @@ -14,7 +14,7 @@ if ($himg_src) echo '
'; // 상단 HTML -echo '
'.stripslashes($fm['fm_head_html']).'
'; +echo '
'.conv_content($fm['fm_head_html'], 1).'
'; ?> '.stripslashes($fm['fm_tail_html']).'
'; +echo '
'.conv_content($fm['fm_tail_html'], 1).'
'; if ($timg_src) echo '
';