From 33df7f0d41524a3fcf7d19b389ebc0345ebecba6 Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 11 Feb 2014 14:26:07 +0900 Subject: [PATCH 01/21] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20=EB=82=B4?= =?UTF-8?q?=EC=9A=A9=EA=B4=80=EB=A6=AC=20FAQ=EA=B4=80=EB=A6=AC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EA=B4=80=EB=A0=A8=20=EB=A7=88=ED=81=AC=EC=97=85/?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/content.php | 12 ++++++------ bbs/faq.php | 24 ++++++++++++------------ css/default.css | 47 +++++++++++++++++++++++------------------------ 3 files changed, 41 insertions(+), 42 deletions(-) diff --git a/bbs/content.php b/bbs/content.php index 44feaefdf..b238c39e2 100644 --- a/bbs/content.php +++ b/bbs/content.php @@ -50,22 +50,22 @@ $dst[] = $default['de_admin_info_email']; $str = preg_replace($src, $dst, $str); if ($is_admin) - echo '
내용 수정
'; + echo '
내용 수정
'; ?> '; + echo '
'; ?> -
+

-
+
@@ -74,10 +74,10 @@ if (file_exists($himg)) // 상단 이미지
'; + echo '
'; if ($is_admin) - echo ''; + echo ''; ?> diff --git a/bbs/faq.php b/bbs/faq.php index 4fb89c199..12f7a6315 100644 --- a/bbs/faq.php +++ b/bbs/faq.php @@ -15,20 +15,20 @@ include_once('./_head.php'); FAQ 수정'; + echo ''; ?> '; + echo '
'; // 상단 HTML -echo '
'.stripslashes($fm['fm_head_html']).'
'; +echo '
'.stripslashes($fm['fm_head_html']).'
'; ?> -
+
'.stripslashes($fm['fm_head_html']).'
'; if ($i == 1) { ?> -
+

목차

    -
  1. +
  2. 1) echo '
'; ?> @@ -55,16 +55,16 @@ echo '
'.stripslashes($fm['fm_head_html']).'
'; if ($i == 1) { ?> -
+

내용

    -
  1. +
  2. - +
  3. 1) echo '
'; @@ -75,17 +75,17 @@ echo '
'.stripslashes($fm['fm_head_html']).'
'; '.stripslashes($fm['fm_tail_html']).'
'; +echo '
'.stripslashes($fm['fm_tail_html']).'
'; $timg = G5_DATA_PATH.'/faq/'.$fm_id.'_t'; if (file_exists($timg)) - echo '
'; + echo '
'; ?> FAQ 수정'; + echo ''; include_once('./_tail.php'); ?> diff --git a/css/default.css b/css/default.css index 094bbedf6..ea2c3038b 100644 --- a/css/default.css +++ b/css/default.css @@ -104,30 +104,6 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline} .copymove_current {float:right;color:#ff3061} .copymove_currentbg {background:#f4f4f4} -/* 내용관리 */ -#socc {margin:10px 0;padding:10px;border:1px solid #e9e9e9} -.socc_admin {text-align:right} -#socc header h1 {position:absolute;font-size:0;line-height:0;overflow:hidden} -#socc_con {padding:10px 0} -.socc_img {text-align:center} - -/* FAQ 관리 */ -#sfaq_wrap {margin:10px 0} -#sfaq_wrap h2 {position:absolute;font-size:0;line-height:0;overflow:hidden} -.sfaq_admin {text-align:right} -#sfaq_wrap ol {margin:0;padding:0;list-style:none} -#sfaq_list {margin:0 0 10px;border:1px solid #ccc} -#sfaq_list li {border-bottom:1px solid #fff;background:#f2f5f9} -#sfaq_list a {display:block;padding:10px;font-weight:bold;text-decoration:none} -#sfaq_list a:focus, -#sfaq_list a:hover {background:#626870;color:#fff} -#sfaq_con {border:1px solid #e9e9e9;border-top:0} -#sfaq_con li {padding:0 0 10px} -#sfaq_con h3 {padding:10px;background:#f2f5f9;border-top:1px solid #e9e9e9} -#sfaq_con p {padding:10px} -.sfaq_tolist {padding:0 10px;text-align:right} -.sfaq_img {text-align:center} - /* 화면낭독기 사용자용 */ #hd_login_msg {position:absolute;top:0;left:0;font-size:0;line-height:0;overflow:hidden} .msg_sound_only, .sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important} @@ -271,6 +247,29 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none} .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} +/* 내용관리 */ +#ctt {margin:10px 0;padding:10px;border:1px solid #e9e9e9} +.ctt_admin {text-align:right} +#ctt header h1 {position:absolute;font-size:0;line-height:0;overflow:hidden} +#ctt_con {padding:10px 0} +.ctt_img {text-align:center} + +/* FAQ 관리 */ +#faq_wrap {margin:10px 0} +#faq_wrap h2 {position:absolute;font-size:0;line-height:0;overflow:hidden} +.faq_admin {text-align:right} +#faq_wrap ol {margin:0;padding:0;list-style:none} +#faq_list {margin:0 0 10px;border:1px solid #ccc} +#faq_list li {border-bottom:1px solid #fff;background:#f2f5f9} +#faq_list a {display:block;padding:10px;font-weight:bold;text-decoration:none} +#faq_list a:focus, #faq_list a:hover {background:#626870;color:#fff} +#faq_con {border:1px solid #e9e9e9;border-top:0} +#faq_con li {padding:0 0 10px} +#faq_con h3 {padding:10px;background:#f2f5f9;border-top:1px solid #e9e9e9} +#faq_con p {padding:10px} +.faq_tolist {padding:0 10px;text-align:right} +.faq_img {text-align:center} + /* 자바스크립트 alert 대안 */ #validation_check {margin:100px auto;width:500px} #validation_check h1 {margin-bottom:20px;font-size:1.3em} From e926288f3e2d1849a40dcfb5f4ae0cb4501d88eb Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 12 Feb 2014 11:37:14 +0900 Subject: [PATCH 02/21] =?UTF-8?q?=EB=82=B4=EC=9A=A9=EA=B4=80=EB=A6=AC=20FA?= =?UTF-8?q?Q=EA=B4=80=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/contentform.php | 26 ++++++++++++++++++++++++++ adm/contentlist.php | 26 ++++++++++++++++++++++++++ adm/faqform.php | 40 ++++++++++++++++++++++++++++++++++++++++ adm/faqlist.php | 40 ++++++++++++++++++++++++++++++++++++++++ adm/faqmasterform.php | 42 +++++++++++++++++++++++++++++++++++++++++- adm/faqmasterlist.php | 40 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 213 insertions(+), 1 deletion(-) diff --git a/adm/contentform.php b/adm/contentform.php index 8419ebdeb..59471cd24 100644 --- a/adm/contentform.php +++ b/adm/contentform.php @@ -5,6 +5,32 @@ include_once(G5_EDITOR_LIB); auth_check($auth[$sub_menu], "w"); +if( !isset($g5['content_table']) ){ + die('/data/dbconfig.php 파일에 $g5[\'content_table\'] = G5_TABLE_PREFIX.\'content\'; 를 추가해 주세요.'); +} +//내용(컨텐츠)정보 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['content_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_content_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_content_table']} RENAME TO `{$g5['content_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['content_table']}` ( + `co_id` varchar(20) NOT NULL DEFAULT '', + `co_html` tinyint(4) NOT NULL DEFAULT '0', + `co_subject` varchar(255) NOT NULL DEFAULT '', + `co_content` longtext NOT NULL, + `co_hit` int(11) NOT NULL DEFAULT '0', + `co_include_head` varchar(255) NOT NULL, + `co_include_tail` varchar(255) NOT NULL, + PRIMARY KEY (`co_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + + // 내용관리 생성 + sql_query(" insert into `{$g5['content_table']}` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '

회사소개에 대한 내용을 입력하십시오.

' ", false ); + sql_query(" insert into `{$g5['content_table']}` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 처리방침', co_content= '

개인정보 처리방침에 대한 내용을 입력하십시오.

' ", false ); + sql_query(" insert into `{$g5['content_table']}` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '

서비스 이용약관에 대한 내용을 입력하십시오.

' ", false ); + } +} + // 상단, 하단 파일경로 필드 추가 $sql = " ALTER TABLE `{$g5['content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL , ADD `co_include_tail` VARCHAR( 255 ) NOT NULL "; diff --git a/adm/contentlist.php b/adm/contentlist.php index 49e458a61..fc7866f41 100644 --- a/adm/contentlist.php +++ b/adm/contentlist.php @@ -4,6 +4,32 @@ include_once('./_common.php'); auth_check($auth[$sub_menu], "r"); +if( !isset($g5['content_table']) ){ + die('/data/dbconfig.php 파일에 $g5[\'content_table\'] = G5_TABLE_PREFIX.\'content\'; 를 추가해 주세요.'); +} +//내용(컨텐츠)정보 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['content_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_content_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_content_table']} RENAME TO `{$g5['content_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['content_table']}` ( + `co_id` varchar(20) NOT NULL DEFAULT '', + `co_html` tinyint(4) NOT NULL DEFAULT '0', + `co_subject` varchar(255) NOT NULL DEFAULT '', + `co_content` longtext NOT NULL, + `co_hit` int(11) NOT NULL DEFAULT '0', + `co_include_head` varchar(255) NOT NULL, + `co_include_tail` varchar(255) NOT NULL, + PRIMARY KEY (`co_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + + // 내용관리 생성 + sql_query(" insert into `{$g5['content_table']}` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '

회사소개에 대한 내용을 입력하십시오.

' ", false ); + sql_query(" insert into `{$g5['content_table']}` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 처리방침', co_content= '

개인정보 처리방침에 대한 내용을 입력하십시오.

' ", false ); + sql_query(" insert into `{$g5['content_table']}` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '

서비스 이용약관에 대한 내용을 입력하십시오.

' ", false ); + } +} + $g5['title'] = '내용관리'; include_once (G5_ADMIN_PATH.'/admin.head.php'); diff --git a/adm/faqform.php b/adm/faqform.php index b3852c07e..8cb2730d7 100644 --- a/adm/faqform.php +++ b/adm/faqform.php @@ -5,6 +5,46 @@ include_once(G5_EDITOR_LIB); auth_check($auth[$sub_menu], "w"); +//dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크 +if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ + die('/data/dbconfig.php 파일에
$g5[\'faq_table\'] = G5_TABLE_PREFIX.\'faq\';
$g5[\'faq_master_table\'] = G5_TABLE_PREFIX.\'faq_master\';
를 추가해 주세요.'); +} + +//자주하시는 질문 마스터 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` ( + `fm_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_subject` varchar(255) NOT NULL DEFAULT '', + `fm_head_html` text NOT NULL, + `fm_tail_html` text NOT NULL, + `fm_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fm_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } + // FAQ Master + sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false); +} + +//자주하시는 질문 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_id` int(11) NOT NULL DEFAULT '0', + `fa_subject` text NOT NULL, + `fa_content` text NOT NULL, + `fa_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fa_id`), + KEY `fm_id` (`fm_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } +} + $sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' "; $fm = sql_fetch($sql); diff --git a/adm/faqlist.php b/adm/faqlist.php index 94b4a547e..2d1703b33 100644 --- a/adm/faqlist.php +++ b/adm/faqlist.php @@ -4,6 +4,46 @@ include_once('./_common.php'); auth_check($auth[$sub_menu], "r"); +//dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크 +if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ + die('/data/dbconfig.php 파일에
$g5[\'faq_table\'] = G5_TABLE_PREFIX.\'faq\';
$g5[\'faq_master_table\'] = G5_TABLE_PREFIX.\'faq_master\';
를 추가해 주세요.'); +} + +//자주하시는 질문 마스터 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` ( + `fm_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_subject` varchar(255) NOT NULL DEFAULT '', + `fm_head_html` text NOT NULL, + `fm_tail_html` text NOT NULL, + `fm_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fm_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } + // FAQ Master + sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false); +} + +//자주하시는 질문 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_id` int(11) NOT NULL DEFAULT '0', + `fa_subject` text NOT NULL, + `fa_content` text NOT NULL, + `fa_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fa_id`), + KEY `fm_id` (`fm_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } +} + $g5['title'] = 'FAQ 상세관리'; if ($fm_subject) $g5['title'] .= ' : '.$fm_subject; include_once (G5_ADMIN_PATH.'/admin.head.php'); diff --git a/adm/faqmasterform.php b/adm/faqmasterform.php index c8d3ec903..47d1f783f 100644 --- a/adm/faqmasterform.php +++ b/adm/faqmasterform.php @@ -5,6 +5,46 @@ include_once(G5_EDITOR_LIB); auth_check($auth[$sub_menu], "w"); +//dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크 +if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ + die('/data/dbconfig.php 파일에
$g5[\'faq_table\'] = G5_TABLE_PREFIX.\'faq\';
$g5[\'faq_master_table\'] = G5_TABLE_PREFIX.\'faq_master\';
를 추가해 주세요.'); +} + +//자주하시는 질문 마스터 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` ( + `fm_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_subject` varchar(255) NOT NULL DEFAULT '', + `fm_head_html` text NOT NULL, + `fm_tail_html` text NOT NULL, + `fm_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fm_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } + // FAQ Master + sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false); +} + +//자주하시는 질문 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_id` int(11) NOT NULL DEFAULT '0', + `fa_subject` text NOT NULL, + `fa_content` text NOT NULL, + `fa_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fa_id`), + KEY `fm_id` (`fm_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } +} + $html_title = 'FAQ'; $g5['title'] = $html_title.' 관리'; @@ -42,7 +82,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php'); - 보기 + 보기 상세보기 diff --git a/adm/faqmasterlist.php b/adm/faqmasterlist.php index d1a945108..9824afacd 100644 --- a/adm/faqmasterlist.php +++ b/adm/faqmasterlist.php @@ -4,6 +4,46 @@ include_once('./_common.php'); auth_check($auth[$sub_menu], "r"); +//dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크 +if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ + die('/data/dbconfig.php 파일에
$g5[\'faq_table\'] = G5_TABLE_PREFIX.\'faq\';
$g5[\'faq_master_table\'] = G5_TABLE_PREFIX.\'faq_master\';
를 추가해 주세요.'); +} + +//자주하시는 질문 마스터 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` ( + `fm_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_subject` varchar(255) NOT NULL DEFAULT '', + `fm_head_html` text NOT NULL, + `fm_tail_html` text NOT NULL, + `fm_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fm_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } + // FAQ Master + sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false); +} + +//자주하시는 질문 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_id` int(11) NOT NULL DEFAULT '0', + `fa_subject` text NOT NULL, + `fa_content` text NOT NULL, + `fa_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fa_id`), + KEY `fm_id` (`fm_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } +} + $g5['title'] = 'FAQ관리'; include_once (G5_ADMIN_PATH.'/admin.head.php'); From 15cb9221dcfdae9aef4c47b5ff8f88613eea26b7 Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 12 Feb 2014 11:56:00 +0900 Subject: [PATCH 03/21] =?UTF-8?q?=EA=B7=B8=EB=88=84=EB=B3=B4=EB=93=9C5=20?= =?UTF-8?q?=EB=A9=94=EB=89=B4=EC=A4=91=20FAQ=EB=A9=94=EB=89=B4=EB=9E=80=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- head.php | 1 + 1 file changed, 1 insertion(+) diff --git a/head.php b/head.php index 736449e8d..3e1e9e58f 100644 --- a/head.php +++ b/head.php @@ -92,6 +92,7 @@ if (G5_IS_MOBILE) {
  • 회원가입
  • 로그인
  • +
  • FAQ
  • 1:1문의
  • 접속자
  • 새글
  • From 5baa2b884ae9911e9b4deea57727387a7487ffb0 Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 12 Feb 2014 14:55:19 +0900 Subject: [PATCH 04/21] =?UTF-8?q?bbs/faq.php=EC=97=90=EC=84=9C=20faq?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=EB=90=9C=20=EB=B3=80=EC=88=98=EA=B0=80=20?= =?UTF-8?q?=EC=9E=88=EB=8A=94=EC=A7=80=20=EC=B2=B4=ED=81=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/faq.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bbs/faq.php b/bbs/faq.php index 12f7a6315..9e9ae029a 100644 --- a/bbs/faq.php +++ b/bbs/faq.php @@ -3,6 +3,11 @@ include_once('./_common.php'); if (!$fm_id) $fm_id = 1; +//dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크 +if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ + die('관리자 모드에서 게시판관리->FAQ관리를 먼저 확인해 주세요.'); +} + // FAQ MASTER $sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' "; $fm = sql_fetch($sql); From 8a312b393fde679c21878a057aab20fa75900ac3 Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 12 Feb 2014 17:16:24 +0900 Subject: [PATCH 05/21] =?UTF-8?q?=EB=82=B4=EC=9A=A9=20=EB=B0=8F=20FAQ?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/contentform.php | 26 ---------------------- adm/contentlist.php | 2 +- adm/faqform.php | 40 --------------------------------- adm/faqlist.php | 40 --------------------------------- adm/faqmasterform.php | 40 --------------------------------- adm/faqmasterlist.php | 2 +- bbs/content.php | 5 +++++ bbs/faq.php | 2 +- install/gnuboard5.sql | 51 ------------------------------------------- 9 files changed, 8 insertions(+), 200 deletions(-) diff --git a/adm/contentform.php b/adm/contentform.php index 59471cd24..8419ebdeb 100644 --- a/adm/contentform.php +++ b/adm/contentform.php @@ -5,32 +5,6 @@ include_once(G5_EDITOR_LIB); auth_check($auth[$sub_menu], "w"); -if( !isset($g5['content_table']) ){ - die('/data/dbconfig.php 파일에 $g5[\'content_table\'] = G5_TABLE_PREFIX.\'content\'; 를 추가해 주세요.'); -} -//내용(컨텐츠)정보 테이블이 있는지 검사한다. -if(!sql_query(" DESCRIBE {$g5['content_table']} ", false)) { - if(sql_query(" DESCRIBE {$g5['g5_shop_content_table']} ", false)) { - sql_query(" ALTER TABLE {$g5['g5_shop_content_table']} RENAME TO `{$g5['content_table']}` ;", false); - } else { - $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['content_table']}` ( - `co_id` varchar(20) NOT NULL DEFAULT '', - `co_html` tinyint(4) NOT NULL DEFAULT '0', - `co_subject` varchar(255) NOT NULL DEFAULT '', - `co_content` longtext NOT NULL, - `co_hit` int(11) NOT NULL DEFAULT '0', - `co_include_head` varchar(255) NOT NULL, - `co_include_tail` varchar(255) NOT NULL, - PRIMARY KEY (`co_id`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); - - // 내용관리 생성 - sql_query(" insert into `{$g5['content_table']}` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '

    회사소개에 대한 내용을 입력하십시오.

    ' ", false ); - sql_query(" insert into `{$g5['content_table']}` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 처리방침', co_content= '

    개인정보 처리방침에 대한 내용을 입력하십시오.

    ' ", false ); - sql_query(" insert into `{$g5['content_table']}` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '

    서비스 이용약관에 대한 내용을 입력하십시오.

    ' ", false ); - } -} - // 상단, 하단 파일경로 필드 추가 $sql = " ALTER TABLE `{$g5['content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL , ADD `co_include_tail` VARCHAR( 255 ) NOT NULL "; diff --git a/adm/contentlist.php b/adm/contentlist.php index fc7866f41..f3ce20a15 100644 --- a/adm/contentlist.php +++ b/adm/contentlist.php @@ -5,7 +5,7 @@ include_once('./_common.php'); auth_check($auth[$sub_menu], "r"); if( !isset($g5['content_table']) ){ - die('/data/dbconfig.php 파일에 $g5[\'content_table\'] = G5_TABLE_PREFIX.\'content\'; 를 추가해 주세요.'); + die('/data/dbconfig.php 파일에 $g5[\'content_table\'] = G5_TABLE_PREFIX.\'content\'; 를 추가해 주세요.'); } //내용(컨텐츠)정보 테이블이 있는지 검사한다. if(!sql_query(" DESCRIBE {$g5['content_table']} ", false)) { diff --git a/adm/faqform.php b/adm/faqform.php index 8cb2730d7..b3852c07e 100644 --- a/adm/faqform.php +++ b/adm/faqform.php @@ -5,46 +5,6 @@ include_once(G5_EDITOR_LIB); auth_check($auth[$sub_menu], "w"); -//dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크 -if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ - die('/data/dbconfig.php 파일에
    $g5[\'faq_table\'] = G5_TABLE_PREFIX.\'faq\';
    $g5[\'faq_master_table\'] = G5_TABLE_PREFIX.\'faq_master\';
    를 추가해 주세요.'); -} - -//자주하시는 질문 마스터 테이블이 있는지 검사한다. -if(!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) { - if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) { - sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false); - } else { - $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` ( - `fm_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_subject` varchar(255) NOT NULL DEFAULT '', - `fm_head_html` text NOT NULL, - `fm_tail_html` text NOT NULL, - `fm_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fm_id`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); - } - // FAQ Master - sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false); -} - -//자주하시는 질문 테이블이 있는지 검사한다. -if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) { - if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) { - sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false); - } else { - $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_id` int(11) NOT NULL DEFAULT '0', - `fa_subject` text NOT NULL, - `fa_content` text NOT NULL, - `fa_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fa_id`), - KEY `fm_id` (`fm_id`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); - } -} - $sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' "; $fm = sql_fetch($sql); diff --git a/adm/faqlist.php b/adm/faqlist.php index 2d1703b33..94b4a547e 100644 --- a/adm/faqlist.php +++ b/adm/faqlist.php @@ -4,46 +4,6 @@ include_once('./_common.php'); auth_check($auth[$sub_menu], "r"); -//dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크 -if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ - die('/data/dbconfig.php 파일에
    $g5[\'faq_table\'] = G5_TABLE_PREFIX.\'faq\';
    $g5[\'faq_master_table\'] = G5_TABLE_PREFIX.\'faq_master\';
    를 추가해 주세요.'); -} - -//자주하시는 질문 마스터 테이블이 있는지 검사한다. -if(!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) { - if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) { - sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false); - } else { - $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` ( - `fm_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_subject` varchar(255) NOT NULL DEFAULT '', - `fm_head_html` text NOT NULL, - `fm_tail_html` text NOT NULL, - `fm_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fm_id`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); - } - // FAQ Master - sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false); -} - -//자주하시는 질문 테이블이 있는지 검사한다. -if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) { - if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) { - sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false); - } else { - $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_id` int(11) NOT NULL DEFAULT '0', - `fa_subject` text NOT NULL, - `fa_content` text NOT NULL, - `fa_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fa_id`), - KEY `fm_id` (`fm_id`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); - } -} - $g5['title'] = 'FAQ 상세관리'; if ($fm_subject) $g5['title'] .= ' : '.$fm_subject; include_once (G5_ADMIN_PATH.'/admin.head.php'); diff --git a/adm/faqmasterform.php b/adm/faqmasterform.php index 47d1f783f..0a154e58f 100644 --- a/adm/faqmasterform.php +++ b/adm/faqmasterform.php @@ -5,46 +5,6 @@ include_once(G5_EDITOR_LIB); auth_check($auth[$sub_menu], "w"); -//dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크 -if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ - die('/data/dbconfig.php 파일에
    $g5[\'faq_table\'] = G5_TABLE_PREFIX.\'faq\';
    $g5[\'faq_master_table\'] = G5_TABLE_PREFIX.\'faq_master\';
    를 추가해 주세요.'); -} - -//자주하시는 질문 마스터 테이블이 있는지 검사한다. -if(!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) { - if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) { - sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false); - } else { - $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` ( - `fm_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_subject` varchar(255) NOT NULL DEFAULT '', - `fm_head_html` text NOT NULL, - `fm_tail_html` text NOT NULL, - `fm_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fm_id`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); - } - // FAQ Master - sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false); -} - -//자주하시는 질문 테이블이 있는지 검사한다. -if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) { - if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) { - sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false); - } else { - $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_id` int(11) NOT NULL DEFAULT '0', - `fa_subject` text NOT NULL, - `fa_content` text NOT NULL, - `fa_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fa_id`), - KEY `fm_id` (`fm_id`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); - } -} - $html_title = 'FAQ'; $g5['title'] = $html_title.' 관리'; diff --git a/adm/faqmasterlist.php b/adm/faqmasterlist.php index 9824afacd..494cc7217 100644 --- a/adm/faqmasterlist.php +++ b/adm/faqmasterlist.php @@ -6,7 +6,7 @@ auth_check($auth[$sub_menu], "r"); //dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크 if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ - die('/data/dbconfig.php 파일에
    $g5[\'faq_table\'] = G5_TABLE_PREFIX.\'faq\';
    $g5[\'faq_master_table\'] = G5_TABLE_PREFIX.\'faq_master\';
    를 추가해 주세요.'); + die('/data/dbconfig.php 파일에
    $g5[\'faq_table\'] = G5_TABLE_PREFIX.\'faq\';
    $g5[\'faq_master_table\'] = G5_TABLE_PREFIX.\'faq_master\';
    를 추가해 주세요.'); } //자주하시는 질문 마스터 테이블이 있는지 검사한다. diff --git a/bbs/content.php b/bbs/content.php index b238c39e2..76082013c 100644 --- a/bbs/content.php +++ b/bbs/content.php @@ -1,6 +1,11 @@ 관리자 모드에서 게시판관리->내용 관리를 먼저 확인해 주세요.'); +} + // 내용 $sql = " select * from {$g5['content_table']} where co_id = '$co_id' "; $co = sql_fetch($sql); diff --git a/bbs/faq.php b/bbs/faq.php index 9e9ae029a..1f7c37492 100644 --- a/bbs/faq.php +++ b/bbs/faq.php @@ -5,7 +5,7 @@ if (!$fm_id) $fm_id = 1; //dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크 if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ - die('관리자 모드에서 게시판관리->FAQ관리를 먼저 확인해 주세요.'); + die('관리자 모드에서 게시판관리->FAQ관리를 먼저 확인해 주세요.'); } // FAQ MASTER diff --git a/install/gnuboard5.sql b/install/gnuboard5.sql index 5da626de8..5b1177987 100644 --- a/install/gnuboard5.sql +++ b/install/gnuboard5.sql @@ -784,54 +784,3 @@ CREATE TABLE IF NOT EXISTS `g5_qa_content` ( ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- - --- --- Table structure for table `g5_content` --- - -DROP TABLE IF EXISTS `g5_content`; -CREATE TABLE IF NOT EXISTS `g5_content` ( - `co_id` varchar(20) NOT NULL DEFAULT '', - `co_html` tinyint(4) NOT NULL DEFAULT '0', - `co_subject` varchar(255) NOT NULL DEFAULT '', - `co_content` longtext NOT NULL, - `co_hit` int(11) NOT NULL DEFAULT '0', - `co_include_head` varchar(255) NOT NULL, - `co_include_tail` varchar(255) NOT NULL, - PRIMARY KEY (`co_id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Table structure for table `g5_faq` --- - -DROP TABLE IF EXISTS `g5_faq`; -CREATE TABLE IF NOT EXISTS `g5_faq` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_id` int(11) NOT NULL DEFAULT '0', - `fa_subject` text NOT NULL, - `fa_content` text NOT NULL, - `fa_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fa_id`), - KEY `fm_id` (`fm_id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Table structure for table `g5_faq_master` --- - -DROP TABLE IF EXISTS `g5_faq_master`; -CREATE TABLE IF NOT EXISTS `g5_faq_master` ( - `fm_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_subject` varchar(255) NOT NULL DEFAULT '', - `fm_head_html` text NOT NULL, - `fm_tail_html` text NOT NULL, - `fm_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fm_id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- \ No newline at end of file From ca8f21c2bcdf801bb3f214960dcbd6d57fcf24d5 Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 13 Feb 2014 11:28:04 +0900 Subject: [PATCH 06/21] =?UTF-8?q?=EA=B3=B5=ED=86=B5:=20=EB=82=B4=EC=9A=A9?= =?UTF-8?q?=EA=B4=80=EB=A6=AC,=20faq=20=EA=B4=80=EB=A6=AC=20yc5=EC=97=90?= =?UTF-8?q?=EC=84=9C=20g5=EB=A1=9C=20=EC=9D=B4=EB=8F=99,=20=EB=A7=88?= =?UTF-8?q?=ED=81=AC=EC=97=85/=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=9E=91?= =?UTF-8?q?=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/faq.php | 4 ++-- css/default.css | 11 +++++++---- css/mobile.css | 33 +++++++++++++++++++++++++++++---- mobile/tail.php | 11 +++++++---- tail.php | 13 +++++++++---- 5 files changed, 54 insertions(+), 18 deletions(-) diff --git a/bbs/faq.php b/bbs/faq.php index 9e9ae029a..5119ccdb3 100644 --- a/bbs/faq.php +++ b/bbs/faq.php @@ -66,9 +66,9 @@ echo '
    '.stripslashes($fm['fm_head_html']).'
    ';
  • -

    +

    -

    +
  • -

    - Copyright © 소유하신 도메인. All rights reserved.
    - 상단으로 -

    + + Copyright © 소유하신 도메인. All rights reserved.
    + 상단으로
    diff --git a/tail.php b/tail.php index 0c06084f9..e579db0bc 100644 --- a/tail.php +++ b/tail.php @@ -24,13 +24,18 @@ if (G5_IS_MOBILE) {
    - +
    <?php echo G5_VERSION ?>
    +
    +
    -

    +

    + 회사소개 + 개인정보취급방침 + 서비스이용약관 Copyright © 소유하신 도메인. All rights reserved.
    - 상단으로 -

    + 상단으로 +
    From 496cdba896c21b876dfd1c8a0cec783f3ca693a8 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 13 Feb 2014 13:14:31 +0900 Subject: [PATCH 07/21] =?UTF-8?q?=EB=82=B4=EC=9A=A9=EA=B4=80=EB=A6=AC=20FA?= =?UTF-8?q?Q=EA=B4=80=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/install_db.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/install/install_db.php b/install/install_db.php index bb95fd13b..8f4aad262 100644 --- a/install/install_db.php +++ b/install/install_db.php @@ -173,14 +173,6 @@ $sql = " insert into `{$table_prefix}member` mb_ip = '{$_SERVER['REMOTE_ADDR']}' "; @mysql_query($sql); - -// 내용관리 생성 -@mysql_query(" insert into `{$table_prefix}content` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '

    회사소개에 대한 내용을 입력하십시오.

    ' ") or die(mysql_error() . "

    " . $sql); -@mysql_query(" insert into `{$table_prefix}content` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 처리방침', co_content= '

    개인정보 처리방침에 대한 내용을 입력하십시오.

    ' ") or die(mysql_error() . "

    " . $sql); -@mysql_query(" insert into `{$table_prefix}content` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '

    서비스 이용약관에 대한 내용을 입력하십시오.

    ' ") or die(mysql_error() . "

    " . $sql); - -// FAQ Master -@mysql_query(" insert into `{$table_prefix}faq_master` set fm_id = '1', fm_subject = '자주하시는 질문' ") or die(mysql_error() . "

    " . $sql); ?>

  • DB설정 완료
  • From c4113e661d61bde66aa08315ac9a7175ef03ed52 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 13 Feb 2014 13:38:49 +0900 Subject: [PATCH 08/21] =?UTF-8?q?=EB=82=B4=EC=9A=A9=EA=B4=80=EB=A6=AC=20FA?= =?UTF-8?q?Q=EA=B4=80=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/content.php | 22 ++++++++++++++++++++++ bbs/faq.php | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/bbs/content.php b/bbs/content.php index 76082013c..ff016303b 100644 --- a/bbs/content.php +++ b/bbs/content.php @@ -5,6 +5,28 @@ include_once('./_common.php'); if( !isset($g5['content_table']) ){ die('관리자 모드에서 게시판관리->내용 관리를 먼저 확인해 주세요.'); } +//내용(컨텐츠)정보 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['content_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_content_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_content_table']} RENAME TO `{$g5['content_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['content_table']}` ( + `co_id` varchar(20) NOT NULL DEFAULT '', + `co_html` tinyint(4) NOT NULL DEFAULT '0', + `co_subject` varchar(255) NOT NULL DEFAULT '', + `co_content` longtext NOT NULL, + `co_hit` int(11) NOT NULL DEFAULT '0', + `co_include_head` varchar(255) NOT NULL, + `co_include_tail` varchar(255) NOT NULL, + PRIMARY KEY (`co_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + + // 내용관리 생성 + sql_query(" insert into `{$g5['content_table']}` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '

    회사소개에 대한 내용을 입력하십시오.

    ' ", false ); + sql_query(" insert into `{$g5['content_table']}` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 처리방침', co_content= '

    개인정보 처리방침에 대한 내용을 입력하십시오.

    ' ", false ); + sql_query(" insert into `{$g5['content_table']}` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '

    서비스 이용약관에 대한 내용을 입력하십시오.

    ' ", false ); + } +} // 내용 $sql = " select * from {$g5['content_table']} where co_id = '$co_id' "; diff --git a/bbs/faq.php b/bbs/faq.php index 48c4a0da9..932ea58a6 100644 --- a/bbs/faq.php +++ b/bbs/faq.php @@ -7,6 +7,40 @@ if (!$fm_id) $fm_id = 1; if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ die('관리자 모드에서 게시판관리->FAQ관리를 먼저 확인해 주세요.'); } +//자주하시는 질문 마스터 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` ( + `fm_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_subject` varchar(255) NOT NULL DEFAULT '', + `fm_head_html` text NOT NULL, + `fm_tail_html` text NOT NULL, + `fm_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fm_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } + // FAQ Master + sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false); +} + +//자주하시는 질문 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_id` int(11) NOT NULL DEFAULT '0', + `fa_subject` text NOT NULL, + `fa_content` text NOT NULL, + `fa_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fa_id`), + KEY `fm_id` (`fm_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } +} // FAQ MASTER $sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' "; From 40c25713acfd41f71dffa7389f5b82ca4125da21 Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 13 Feb 2014 13:52:03 +0900 Subject: [PATCH 09/21] =?UTF-8?q?=EA=B3=B5=ED=86=B5:=20=EC=A0=84=EC=B2=B4?= =?UTF-8?q?=EA=B2=80=EC=83=89=20=EA=B2=B0=EA=B3=BC=20=EC=8A=A4=ED=83=80?= =?UTF-8?q?=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/skin/search/basic/search.skin.php | 2 +- skin/search/basic/search.skin.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/skin/search/basic/search.skin.php b/mobile/skin/search/basic/search.skin.php index 2e6c04507..17b1c0f61 100644 --- a/mobile/skin/search/basic/search.skin.php +++ b/mobile/skin/search/basic/search.skin.php @@ -96,7 +96,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 -

    검색된 자료가 하나도 없습니다.

    +
    검색된 자료가 하나도 없습니다.

    diff --git a/skin/search/basic/search.skin.php b/skin/search/basic/search.skin.php index d11cbf042..3d0b691d3 100644 --- a/skin/search/basic/search.skin.php +++ b/skin/search/basic/search.skin.php @@ -92,7 +92,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 -

    검색된 자료가 하나도 없습니다.

    +
    검색된 자료가 하나도 없습니다.

    From 08f2f09f52a51b1e90506606d99946d2c950cfe6 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 13 Feb 2014 14:37:10 +0900 Subject: [PATCH 10/21] =?UTF-8?q?=EB=82=B4=EC=9A=A9=EA=B4=80=EB=A6=AC=20FA?= =?UTF-8?q?Q=EA=B4=80=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/content.php | 22 ------------------ bbs/faq.php | 34 ---------------------------- install/gnuboard5.sql | 51 ++++++++++++++++++++++++++++++++++++++++++ install/install_db.php | 8 +++++++ 4 files changed, 59 insertions(+), 56 deletions(-) diff --git a/bbs/content.php b/bbs/content.php index ff016303b..76082013c 100644 --- a/bbs/content.php +++ b/bbs/content.php @@ -5,28 +5,6 @@ include_once('./_common.php'); if( !isset($g5['content_table']) ){ die('관리자 모드에서 게시판관리->내용 관리를 먼저 확인해 주세요.'); } -//내용(컨텐츠)정보 테이블이 있는지 검사한다. -if(!sql_query(" DESCRIBE {$g5['content_table']} ", false)) { - if(sql_query(" DESCRIBE {$g5['g5_shop_content_table']} ", false)) { - sql_query(" ALTER TABLE {$g5['g5_shop_content_table']} RENAME TO `{$g5['content_table']}` ;", false); - } else { - $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['content_table']}` ( - `co_id` varchar(20) NOT NULL DEFAULT '', - `co_html` tinyint(4) NOT NULL DEFAULT '0', - `co_subject` varchar(255) NOT NULL DEFAULT '', - `co_content` longtext NOT NULL, - `co_hit` int(11) NOT NULL DEFAULT '0', - `co_include_head` varchar(255) NOT NULL, - `co_include_tail` varchar(255) NOT NULL, - PRIMARY KEY (`co_id`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); - - // 내용관리 생성 - sql_query(" insert into `{$g5['content_table']}` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '

    회사소개에 대한 내용을 입력하십시오.

    ' ", false ); - sql_query(" insert into `{$g5['content_table']}` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 처리방침', co_content= '

    개인정보 처리방침에 대한 내용을 입력하십시오.

    ' ", false ); - sql_query(" insert into `{$g5['content_table']}` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '

    서비스 이용약관에 대한 내용을 입력하십시오.

    ' ", false ); - } -} // 내용 $sql = " select * from {$g5['content_table']} where co_id = '$co_id' "; diff --git a/bbs/faq.php b/bbs/faq.php index 932ea58a6..48c4a0da9 100644 --- a/bbs/faq.php +++ b/bbs/faq.php @@ -7,40 +7,6 @@ if (!$fm_id) $fm_id = 1; if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ die('관리자 모드에서 게시판관리->FAQ관리를 먼저 확인해 주세요.'); } -//자주하시는 질문 마스터 테이블이 있는지 검사한다. -if(!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) { - if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) { - sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false); - } else { - $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` ( - `fm_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_subject` varchar(255) NOT NULL DEFAULT '', - `fm_head_html` text NOT NULL, - `fm_tail_html` text NOT NULL, - `fm_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fm_id`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); - } - // FAQ Master - sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false); -} - -//자주하시는 질문 테이블이 있는지 검사한다. -if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) { - if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) { - sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false); - } else { - $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_id` int(11) NOT NULL DEFAULT '0', - `fa_subject` text NOT NULL, - `fa_content` text NOT NULL, - `fa_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fa_id`), - KEY `fm_id` (`fm_id`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); - } -} // FAQ MASTER $sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' "; diff --git a/install/gnuboard5.sql b/install/gnuboard5.sql index 5b1177987..ea1d8a5f6 100644 --- a/install/gnuboard5.sql +++ b/install/gnuboard5.sql @@ -784,3 +784,54 @@ CREATE TABLE IF NOT EXISTS `g5_qa_content` ( ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- + +-- +-- Table structure for table `g5_content` +-- + +DROP TABLE IF EXISTS `g5_content`; +CREATE TABLE IF NOT EXISTS `g5_content` ( + `co_id` varchar(20) NOT NULL DEFAULT '', + `co_html` tinyint(4) NOT NULL DEFAULT '0', + `co_subject` varchar(255) NOT NULL DEFAULT '', + `co_content` longtext NOT NULL, + `co_hit` int(11) NOT NULL DEFAULT '0', + `co_include_head` varchar(255) NOT NULL, + `co_include_tail` varchar(255) NOT NULL, + PRIMARY KEY (`co_id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `g5_faq` +-- + +DROP TABLE IF EXISTS `g5_faq`; +CREATE TABLE IF NOT EXISTS `g5_faq` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_id` int(11) NOT NULL DEFAULT '0', + `fa_subject` text NOT NULL, + `fa_content` text NOT NULL, + `fa_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fa_id`), + KEY `fm_id` (`fm_id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `g5_faq_master` +-- + +DROP TABLE IF EXISTS `g5_faq_master`; +CREATE TABLE IF NOT EXISTS `g5_faq_master` ( + `fm_id` int(11) NOT NULL AUTO_INCREMENT, + `fm_subject` varchar(255) NOT NULL DEFAULT '', + `fm_head_html` text NOT NULL, + `fm_tail_html` text NOT NULL, + `fm_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`fm_id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- -------------------------------------------------------- diff --git a/install/install_db.php b/install/install_db.php index 8f4aad262..bb95fd13b 100644 --- a/install/install_db.php +++ b/install/install_db.php @@ -173,6 +173,14 @@ $sql = " insert into `{$table_prefix}member` mb_ip = '{$_SERVER['REMOTE_ADDR']}' "; @mysql_query($sql); + +// 내용관리 생성 +@mysql_query(" insert into `{$table_prefix}content` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '

    회사소개에 대한 내용을 입력하십시오.

    ' ") or die(mysql_error() . "

    " . $sql); +@mysql_query(" insert into `{$table_prefix}content` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 처리방침', co_content= '

    개인정보 처리방침에 대한 내용을 입력하십시오.

    ' ") or die(mysql_error() . "

    " . $sql); +@mysql_query(" insert into `{$table_prefix}content` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '

    서비스 이용약관에 대한 내용을 입력하십시오.

    ' ") or die(mysql_error() . "

    " . $sql); + +// FAQ Master +@mysql_query(" insert into `{$table_prefix}faq_master` set fm_id = '1', fm_subject = '자주하시는 질문' ") or die(mysql_error() . "

    " . $sql); ?>

  • DB설정 완료
  • From 3e62a88f979ecb493926da9427cf6e919d012091 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 14 Feb 2014 13:08:15 +0900 Subject: [PATCH 11/21] =?UTF-8?q?=EA=B7=B8=EB=88=84=EB=B3=B4=EB=93=9C5=20i?= =?UTF-8?q?nstall=5Fdb.php=20=EC=97=90=20DB=EC=84=A4=EC=A0=95=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=83=9D=EC=84=B1=EB=AC=B8=EC=97=90=20=EC=83=88?= =?UTF-8?q?=EC=B0=BD=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EB=B0=B0=EC=97=B4?= =?UTF-8?q?=EB=B3=80=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/admin.menu100.php | 1 + adm/newwinform.php | 147 +++++++++++++++++++++++++++++++++++++++ adm/newwinformupdate.php | 51 ++++++++++++++ adm/newwinlist.php | 118 +++++++++++++++++++++++++++++++ bbs/newwin.inc.php | 48 +++++++++++++ css/default.css | 7 ++ head.php | 7 ++ install/gnuboard5.sql | 23 ++++++ install/install_db.php | 3 + 9 files changed, 405 insertions(+) create mode 100644 adm/newwinform.php create mode 100644 adm/newwinformupdate.php create mode 100644 adm/newwinlist.php create mode 100644 bbs/newwin.inc.php diff --git a/adm/admin.menu100.php b/adm/admin.menu100.php index 822c068fd..4d657b4c1 100644 --- a/adm/admin.menu100.php +++ b/adm/admin.menu100.php @@ -4,6 +4,7 @@ $menu['menu100'] = array ( array('', '기본환경설정', G5_ADMIN_URL.'/config_form.php', 'cf_basic'), array('', '관리권한설정', G5_ADMIN_URL.'/auth_list.php', 'cf_auth'), array('100300', '메일 테스트', G5_ADMIN_URL.'/sendmail_test.php', 'cf_mailtest'), + array('100310', '팝업레이어관리', G5_ADMIN_URL.'/newwinlist.php', 'scf_poplayer', 1), //array('100400', '버전정보', G5_ADMIN_URL.'/version.php', 'cf_version'), array('100800', '세션파일 일괄삭제',G5_ADMIN_URL.'/session_file_delete.php', 'cf_session', 1), array('100900', '캐시파일 일괄삭제',G5_ADMIN_URL.'/cache_file_delete.php', 'cf_cache', 1), diff --git a/adm/newwinform.php b/adm/newwinform.php new file mode 100644 index 000000000..9af03c821 --- /dev/null +++ b/adm/newwinform.php @@ -0,0 +1,147 @@ + + +
    + + + +
    +

    쇼핑몰 초기화면 접속 시 자동으로 뜰 팝업레이어를 설정합니다.

    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + +
    + + 시간 +
    + + " id="nw_begin_chk" onclick="if (this.checked == true) this.form.nw_begin_time.value=this.form.nw_begin_chk.value; else this.form.nw_begin_time.value = this.form.nw_begin_time.defaultValue;"> + +
    + + " id="nw_end_chk" onclick="if (this.checked == true) this.form.nw_end_time.value=this.form.nw_end_chk.value; else this.form.nw_end_time.value = this.form.nw_end_time.defaultValue;"> + +
    + px +
    + px +
    + px +
    + px +
    + +
    내용
    +
    + +
    + + 목록 +
    +
    + + + + diff --git a/adm/newwinformupdate.php b/adm/newwinformupdate.php new file mode 100644 index 000000000..a7286ad2f --- /dev/null +++ b/adm/newwinformupdate.php @@ -0,0 +1,51 @@ + diff --git a/adm/newwinlist.php b/adm/newwinlist.php new file mode 100644 index 000000000..4f51abe70 --- /dev/null +++ b/adm/newwinlist.php @@ -0,0 +1,118 @@ +/data/dbconfig.php 파일에 $g5[\'new_win_table\'] = G5_TABLE_PREFIX.\'new_win\'; 를 추가해 주세요.'); +} +//내용(컨텐츠)정보 테이블이 있는지 검사한다. +if(!sql_query(" DESCRIBE {$g5['new_win_table']} ", false)) { + if(sql_query(" DESCRIBE {$g5['g5_shop_new_win_table']} ", false)) { + sql_query(" ALTER TABLE {$g5['g5_shop_new_win_table']} RENAME TO `{$g5['new_win_table']}` ;", false); + } else { + $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['new_win_table']}` ( + `nw_id` int(11) NOT NULL AUTO_INCREMENT, + `nw_device` varchar(10) NOT NULL DEFAULT 'both', + `nw_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `nw_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `nw_disable_hours` int(11) NOT NULL DEFAULT '0', + `nw_left` int(11) NOT NULL DEFAULT '0', + `nw_top` int(11) NOT NULL DEFAULT '0', + `nw_height` int(11) NOT NULL DEFAULT '0', + `nw_width` int(11) NOT NULL DEFAULT '0', + `nw_subject` text NOT NULL, + `nw_content` text NOT NULL, + `nw_content_html` tinyint(4) NOT NULL DEFAULT '0', + PRIMARY KEY (`nw_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); + } +} + +$g5['title'] = '팝업레이어 관리'; +include_once (G5_ADMIN_PATH.'/admin.head.php'); + +$sql_common = " from {$g5['new_win_table']} "; + +// 테이블의 전체 레코드수만 얻음 +$sql = " select count(*) as cnt " . $sql_common; +$row = sql_fetch($sql); +$total_count = $row['cnt']; + +$sql = "select * $sql_common order by nw_id desc "; +$result = sql_query($sql); +?> + +
    전체
    + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + ?> + +
    목록
    번호제목접속기기시작일시종료일시시간LeftTopWidthHeight관리
    시간pxpxpxpx + 수정 + 삭제 +
    자료가 한건도 없습니다.
    +
    + + + diff --git a/bbs/newwin.inc.php b/bbs/newwin.inc.php new file mode 100644 index 000000000..98775d024 --- /dev/null +++ b/bbs/newwin.inc.php @@ -0,0 +1,48 @@ + + + +
    +
    + +
    + +
    +팝업레이어 알림이 없습니다.'; +?> + + + \ No newline at end of file diff --git a/css/default.css b/css/default.css index e6194f0b8..6966da198 100644 --- a/css/default.css +++ b/css/default.css @@ -28,6 +28,13 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline} #hd_wrapper {position:relative;margin:0 auto;padding:26px 0;width:970px;zoom:1} #hd_wrapper:after {display:block;visibility:hidden;clear:both;content:""} +#hd_pop {z-index:1000;position:relative;margin:0 auto;width:1000px;height:0} +#hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden} +.hd_pops {position:absolute;border:1px solid #e9e9e9;background:#fff} +.hd_pops_con {margin:0 0 30px} +.hd_pops_footer {position:absolute;bottom:0;left:0;padding:10px 0;width:100%;background:#000;color:#fff;text-align:right} +.hd_pops_footer button {margin-right:5px;padding:5px 10px;border:0;background:#393939;color:#fff} + #logo {float:left;padding:5px 0 0} /* 전체 검색 */ diff --git a/head.php b/head.php index 3e1e9e58f..547fd00ec 100644 --- a/head.php +++ b/head.php @@ -29,6 +29,13 @@ if (G5_IS_MOBILE) { + +
    +

    팝업레이어 알림

    + +
    + +