From e08b4fefba329e9bc829e36e0c4f6ad2c8dc85b2 Mon Sep 17 00:00:00 2001 From: whitedot Date: Wed, 27 Feb 2013 13:30:18 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC:=20=EC=9E=91?= =?UTF-8?q?=EC=97=85=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/mobile.css | 107 ++++++++++++++++++++++-------- head.sub.php | 2 +- skin/latest/basic/latest.skin.php | 2 +- 3 files changed, 83 insertions(+), 28 deletions(-) diff --git a/css/mobile.css b/css/mobile.css index 1b2db0c3d..901090d68 100644 --- a/css/mobile.css +++ b/css/mobile.css @@ -2,7 +2,7 @@ /* 초기화 */ html {overflow-y:scroll} -body {margin:0;padding:0;background:#fff;font-size:0.875em} +body {margin:0;padding:0;background:#fff;font-size:1em} html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0} h1, h2, h3, h4, h5, h6 {color:#2a4959;font-size:1em} article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block} @@ -44,7 +44,7 @@ pre {overflow-x:scroll;font-size:1.1em} .gnb_1depth a {display:block;padding:10px 0;border-right:1px solid #e7f1ed;color:#000;text-align:center;text-decoration:none} /* 배포시에는 필요없는 부분 */ -#sirgle_title {height:100px;color:#fff;font-size:3em} +#sirgle_title {padding:0 10px;height:100px;color:#fff;font-size:2em} #sirgle_title_span {display:block;position:relative;top:33px;left:0} /* 중간 레이아웃 */ @@ -58,6 +58,22 @@ pre {overflow-x:scroll;font-size:1.1em} /* 하단 레이아웃 */ #ft img {display:none} +/* 버튼 */ +.btn01 {display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle} +.btn01:focus, +.btn01:hover {text-decoration:none !important} +.btn02 {display:inline-block;padding:0 10px;height:23px;border:1px solid #333 !important;background:#333 !important;color:#fff !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle} +.btn02:focus, +.btn02:hover {text-decoration:none !important} +.btn_confirm {text-align:center} /* 서식단계 진행 */ +.btn_submit {padding:0 10px;height:24px;border:0;background:#333;color:#fff;letter-spacing:-0.1em;vertical-align:top;cursor:pointer} +.btn_cancel {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em} +.btn_frmline {display:inline-block;padding:0 7px 0 5px;height:22px;border:0;background:#333;color:#fff !important;letter-spacing:-0.1em;text-decoration:none;vertical-align:top;line-height:2em} /* 우편번호검색버튼 등 */ +.btn_win {clear:both;margin-bottom:20px;text-align:center} /* 새창용 */ +.btn_win a {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em;cursor:pointer} +.btn_win a:focus, +.btn_win a:hover {text-decoration:none} + /* 광고 레이아웃 */ .ad200200 {display:none} .ad72890 {display:none} @@ -86,34 +102,73 @@ sup {display:none !important} */ /* 게시판 목록 */ -#bo_list table {width:100%} -#bo_list th {padding:12px 0 8px;background:#565e60;color:#fff} -#bo_list caption {display:none} +.bo_list table {margin-bottom:20px;width:100%;border-collapse:collapse;border-spacing:0} + +/* 관리자일 때 생략 */ +#bo_list_admin th:nth-of-type(1) {display:none} +#bo_list_admin th:nth-of-type(4) {display:none} +#bo_list_admin th:nth-of-type(6) {width:20%} +#bo_list_admin th:nth-of-type(6) {display:none} +#bo_list_admin th:nth-of-type(7) {display:none} +#bo_list_admin td:nth-of-type(1) {display:none} +#bo_list_admin td:nth-of-type(2) {text-align:center} +#bo_list_admin td:nth-of-type(4) {display:none} +#bo_list_admin td:nth-of-type(5) {text-align:center} +#bo_list_admin td:nth-of-type(6) {display:none} +#bo_list_admin td:nth-of-type(7) {display:none} + +/* 관리자가 아닐 때 생략 */ #bo_list th:nth-of-type(1) {display:none} -#bo_list td:nth-of-type(1) {display:none} #bo_list th:nth-of-type(3) {display:none} -#bo_list td:nth-of-type(3) {display:none} #bo_list th:nth-of-type(4) {width:20%} -#bo_list td:nth-of-type(4) {text-align:center} #bo_list th:nth-of-type(5) {display:none} -#bo_list td:nth-of-type(5) {display:none} #bo_list th:nth-of-type(6) {display:none} -#bo_list td:nth-of-type(6) {display:none} -/* -#bo_list table {margin:0 auto;width:100%} -#bo_list caption {display:none} -#bo_list thead {display:none} -#bo_list tr {border:1px solid #ccc} -#bo_list tr:nth-of-type(odd) {background:#eee} -#bo_list td {display:block;position:relative;padding:5px 0 5px 20%} -#bo_list td::before {position:absolute;top:5px;left:0} #bo_list td:nth-of-type(1) {display:none} -#bo_list td:nth-of-type(1):before {content:"번호"} -#bo_list td:nth-of-type(2):before {content:"제목"} #bo_list td:nth-of-type(3) {display:none} -#bo_list td:nth-of-type(3):before {content:"글쓴이"} -#bo_list td:nth-of-type(4):before {content:"날짜"} -#bo_list td:nth-of-type(5):before {content:"조회"} -#bo_list a {color:#000;text-decoration:none} -.bo_cate_link {font-weight:bold} -*/ \ No newline at end of file +#bo_list td:nth-of-type(4) {text-align:center} +#bo_list td:nth-of-type(5) {display:none} +#bo_list td:nth-of-type(6) {display:none} + +#bo_list th {padding:12px 0 8px;background:#565e60;color:#fff} +#bo_list th a {color:#fff;text-decoration:none} + +#bo_list td {border-bottom:1px solid #ddd} +#bo_list td a {display:block;padding:10px 5px;color:#000;text-decoration:none} + +#bo_list img {margin-right:4px} +#bo_list img:nth-last-of-type(1) {margin-right:0} + +.bo_fx {margin-bottom:5px;zoom:1} +.bo_fx:after {display:block;visibility:hidden;clear:both;content:""} +.bo_fx ul {margin:0;padding:0;list-style:none} +#bo_list_total {float:left;padding-top:5px} +.btn_bo_user {float:right;margin:0;padding:0;list-style:none} +.btn_bo_user li {float:left;margin-left:5px} +.btn_bo_adm {float:left} +.btn_bo_adm li {float:left;margin-right:5px} +.btn_bo_adm input {padding:0 10px;height:25px;border:1px solid #e8180c !important;background:#e8180c;color:#fff;text-decoration:none;vertical-align:middle;cursor:pointer} +.bo_notice td {background:#f7f7f2} +.bo_notice td a {font-weight:bold} +.td_num strong {color:#000} +.bo_cate_link {display:inline-block;margin:0 3px 0 0;padding:0 6px 0 0;border-right:1px solid #e7f1ed;color:#999 !important;font-weight:bold;text-decoration:none} /* 글제목줄 분류스타일 */ +.bo_current {color:#e8180c} +.td_subject img {margin-left:3px} +.cnt_cmt {font-weight:bold} + +#bo_sch {margin-bottom:10px;padding-top:5px;text-align:center} +#bo_sch legend {width:1px;height:1px;overflow:hidden} + +/* pagination */ +.pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center} +.pg {display:inline-block;border:1px solid #cfded8;letter-spacing:-4px} +.pg a:focus, +.pg a:hover, +.pg a:active {text-decoration:none} +.pg_page, +.pg_current {display:inline-block;padding:0 12px;height:30px;color:#000;letter-spacing:0;line-height:1.9em;vertical-align:middle} +.pg_page {background:#f9f9f9;text-decoration:none} +.pg_start, +.pg_prev {border-right:1px solid #cfded8} +.pg_end, +.pg_next {border-left:1px solid #cfded8} +.pg_current {background:#333;color:#fff;font-weight:bold} \ No newline at end of file diff --git a/head.sub.php b/head.sub.php index b6be33587..705768ba5 100644 --- a/head.sub.php +++ b/head.sub.php @@ -36,7 +36,7 @@ header("Pragma: no-cache"); // HTTP/1.0 <?=$g4_head_title?> -"> +"> "> diff --git a/skin/latest/basic/latest.skin.php b/skin/latest/basic/latest.skin.php index 1c8fcdbe6..d959f354d 100644 --- a/skin/latest/basic/latest.skin.php +++ b/skin/latest/basic/latest.skin.php @@ -3,7 +3,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 ?>
- +
diff --git a/tail.php b/tail.php index d44932bb1..191d8f373 100644 --- a/tail.php +++ b/tail.php @@ -1,12 +1,9 @@ From e02fd51490d159e7626897f2bb868252d8ccde26 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 27 Feb 2013 14:19:43 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=EC=84=B1=EC=9D=B8=EC=9D=B8=EC=A6=9D=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=20cf=5Fadult=5Fcheck=20=ED=95=84=EB=93=9C=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 --- adm/config_form.php | 15 ++++++++++++--- adm/config_form_update.php | 1 + install/gnuboard4s.sql | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/adm/config_form.php b/adm/config_form.php index 53124f92f..411d8679e 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -10,14 +10,19 @@ if ($is_admin != 'super') alert('최고관리자만 접근 가능합니다.'); if (!isset($config['cf_include_index'])) { - sql_query(" ALTER TABLE `{$g4['config_table']}` - ADD `cf_include_index` VARCHAR(255) NOT NULL AFTER `cf_admin`, - ADD `cf_include_head` VARCHAR(255) NOT NULL AFTER `cf_include_index`, + sql_query(" ALTER TABLE `{$g4['config_table']}` + ADD `cf_include_index` VARCHAR(255) NOT NULL AFTER `cf_admin`, + ADD `cf_include_head` VARCHAR(255) NOT NULL AFTER `cf_include_index`, ADD `cf_include_tail` VARCHAR(255) NOT NULL AFTER `cf_include_head`, ADD `cf_add_script` TEXT NOT NULL AFTER `cf_include_tail` ", TRUE); } +if(!isset($config['cf_adult_check'])) { + sql_query(" ALTER TABLE `{$g4['config_table']}` + ADD `cf_adult_check` TINYINT(4) NOT NULL DEFAULT '0' AFTER `cf_memo_send_point` ", TRUE); +} + $g4['title'] = '환경설정'; include_once ('./admin.head.php'); @@ -364,6 +369,10 @@ $pg_anchor = " 점 + + + > 사용 + 일 후 자동 삭제 diff --git a/adm/config_form_update.php b/adm/config_form_update.php index b77e19e4a..57b5f29f9 100644 --- a/adm/config_form_update.php +++ b/adm/config_form_update.php @@ -99,6 +99,7 @@ $sql = " update {$g4['config_table']} cf_privacy = '{$_POST['cf_privacy']}', cf_open_modify = '{$_POST['cf_open_modify']}', cf_memo_send_point = '{$_POST['cf_memo_send_point']}', + cf_adult_check = '{$_POST['cf_adult_check']}', cf_1_subj = '{$_POST['cf_1_subj']}', cf_2_subj = '{$_POST['cf_2_subj']}', cf_3_subj = '{$_POST['cf_3_subj']}', diff --git a/install/gnuboard4s.sql b/install/gnuboard4s.sql index 74dac5354..59abce82d 100644 --- a/install/gnuboard4s.sql +++ b/install/gnuboard4s.sql @@ -260,6 +260,7 @@ CREATE TABLE IF NOT EXISTS `g4s_config` ( `cf_privacy` text NOT NULL, `cf_open_modify` int(11) NOT NULL default '0', `cf_memo_send_point` int(11) NOT NULL default '0', + `cf_adult_check` tinyint(4) NOT NULL default '0', `cf_1_subj` varchar(255) NOT NULL default '', `cf_2_subj` varchar(255) NOT NULL default '', `cf_3_subj` varchar(255) NOT NULL default '', From ee309944aecf109c8e6ed84fcc74c3a639139a6e Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 27 Feb 2013 14:37:14 +0900 Subject: [PATCH 4/5] =?UTF-8?q?mb=5Fadult=20=ED=95=84=EB=93=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/member_form.php | 6 ++++++ install/gnuboard4s.sql | 1 + 2 files changed, 7 insertions(+) diff --git a/adm/member_form.php b/adm/member_form.php index 8110124ef..749360281 100644 --- a/adm/member_form.php +++ b/adm/member_form.php @@ -80,6 +80,12 @@ if ($mb['mb_open']) { $open_no_checked = 'checked="checked"'; } +if(!isset($mb['mb_adult'])) { + sql_query(" ALTER TABLE `{$g4['member_table']}` + ADD `mb_adult` ENUM('Y', 'N') NOT NULL DEFAULT 'N' AFTER `mb_birth`, + ADD `mb_hp_certify` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `mb_lost_certify` ", FALSE); +} + if ($mb['mb_intercept_date']) $g4['title'] = "차단된 "; else $g4['title'] .= ""; $g4['title'] .= '회원 '.$html_title; diff --git a/install/gnuboard4s.sql b/install/gnuboard4s.sql index 59abce82d..cd15b9c22 100644 --- a/install/gnuboard4s.sql +++ b/install/gnuboard4s.sql @@ -392,6 +392,7 @@ CREATE TABLE IF NOT EXISTS `g4s_member` ( `mb_jumin` varchar(255) NOT NULL default '', `mb_sex` char(1) NOT NULL default '', `mb_birth` varchar(255) NOT NULL default '', + `mb_adult` enum('Y','N') NOT NULL default 'N', `mb_tel` varchar(255) NOT NULL default '', `mb_hp` varchar(255) NOT NULL default '', `mb_zip1` char(3) NOT NULL default '', From cc342f4f9d34f6ef6a3e9103c5ceab9ab200c256 Mon Sep 17 00:00:00 2001 From: whitedot Date: Wed, 27 Feb 2013 14:43:09 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC:=20=EC=9E=91?= =?UTF-8?q?=EC=97=85=20=EC=A4=913?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/mobile.css | 18 +++++++++--------- head.php | 8 ++++++++ tail.php | 8 ++++++++ 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/css/mobile.css b/css/mobile.css index 901090d68..56337dfdd 100644 --- a/css/mobile.css +++ b/css/mobile.css @@ -104,6 +104,15 @@ sup {display:none !important} /* 게시판 목록 */ .bo_list table {margin-bottom:20px;width:100%;border-collapse:collapse;border-spacing:0} +.bo_list th {padding:12px 0 8px;background:#565e60;color:#fff} +.bo_list th a {color:#fff;text-decoration:none} + +.bo_list td {border-bottom:1px solid #ddd} +.bo_list td a {display:block;padding:10px 5px;color:#000;text-decoration:none} + +.bo_list img {margin-right:4px} +.bo_list img:nth-last-of-type(1) {margin-right:0} + /* 관리자일 때 생략 */ #bo_list_admin th:nth-of-type(1) {display:none} #bo_list_admin th:nth-of-type(4) {display:none} @@ -129,15 +138,6 @@ sup {display:none !important} #bo_list td:nth-of-type(5) {display:none} #bo_list td:nth-of-type(6) {display:none} -#bo_list th {padding:12px 0 8px;background:#565e60;color:#fff} -#bo_list th a {color:#fff;text-decoration:none} - -#bo_list td {border-bottom:1px solid #ddd} -#bo_list td a {display:block;padding:10px 5px;color:#000;text-decoration:none} - -#bo_list img {margin-right:4px} -#bo_list img:nth-last-of-type(1) {margin-right:0} - .bo_fx {margin-bottom:5px;zoom:1} .bo_fx:after {display:block;visibility:hidden;clear:both;content:""} .bo_fx ul {margin:0;padding:0;list-style:none} diff --git a/head.php b/head.php index d59bd36fd..e7118ff0f 100644 --- a/head.php +++ b/head.php @@ -13,6 +13,14 @@ if (G4_IS_MOBILE) { include_once(G4_MOBILE_PATH.'/head.php'); return; } + +// 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. +if ($config['cf_include_head']) { + if (!@include_once($config['cf_include_head'])) { + die('기본환경 설정에서 상단 파일 경로가 잘못 설정되어 있습니다.'); + } + return; // 이 코드의 아래는 실행을 하지 않습니다. +} ?>
diff --git a/tail.php b/tail.php index 191d8f373..b017a15cc 100644 --- a/tail.php +++ b/tail.php @@ -5,6 +5,14 @@ if (G4_IS_MOBILE) { include_once(G4_MOBILE_PATH.'/tail.php'); return; } + +// 하단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. +if ($config['cf_include_tail']) { + if (!@include_once($config['cf_include_tail'])) { + die('기본환경 설정에서 하단 파일 경로가 잘못 설정되어 있습니다.'); + } + return; // 이 코드의 아래는 실행을 하지 않습니다. +} ?>