From 35e7f6ff108bb16258dd7ecddb9219f3b6e67732 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 24 May 2013 09:22:06 +0900 Subject: [PATCH] =?UTF-8?q?SNS=20=EC=88=98=EC=A0=95=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_delete.php | 28 - adm/config_form.php | 18 +- adm/config_form_update.php | 3 + common.php | 22 +- config.php | 17 +- lib/common.lib.php | 7 - plugin/sns/facebook/callback.php | 3 +- plugin/sns/twitter/.gitignore | 1 + plugin/sns/twitter/LICENSE | 22 + plugin/sns/twitter/README.md | 114 +++ plugin/sns/twitter/_common.php | 3 + plugin/sns/twitter/callback-sample.php | 40 + plugin/sns/twitter/callback.php | 97 ++ plugin/sns/twitter/clearsessions.php | 14 + plugin/sns/twitter/config-sample.php | 10 + plugin/sns/twitter/connect.php | 22 + plugin/sns/twitter/html.inc | 39 + plugin/sns/twitter/images/darker.png | Bin 0 -> 2370 bytes plugin/sns/twitter/images/lighter.png | Bin 0 -> 2490 bytes plugin/sns/twitter/index.php | 35 + plugin/sns/twitter/redirect.php | 31 + plugin/sns/twitter/twitteroauth/OAuth.php | 872 ++++++++++++++++++ .../sns/twitter/twitteroauth/twitteroauth.php | 241 +++++ skin/board/basic/list.skin.php | 10 +- skin/board/basic/sns_comment.skin.php | 138 +-- skin/board/basic/style.css | 58 +- skin/board/basic/view.skin.php | 107 +-- skin/board/basic/view_comment.skin.php | 321 +++---- skin/board/basic/write.skin.php | 6 +- skin/board/gallery/list.skin.php | 2 +- skin/board/gallery/style.css | 50 +- skin/board/gallery/view.skin.php | 101 +- skin/board/gallery/view_comment.skin.php | 391 ++++---- skin/board/gallery/write.skin.php | 2 +- skin/connect/basic/current_connect.skin.php | 6 +- skin/latest/basic/latest.skin.php | 8 +- skin/latest/basic/style.css | 12 +- skin/member/basic/formmail.skin.php | 5 +- skin/member/basic/login.skin.php | 11 +- skin/member/basic/memo.skin.php | 4 +- skin/member/basic/memo_form.skin.php | 6 +- skin/member/basic/memo_view.skin.php | 12 +- skin/member/basic/password_lost.skin.php | 2 +- skin/member/basic/profile.skin.php | 2 +- skin/member/basic/register_form.skin.php | 125 ++- .../basic/register_form_update.head.skin.php | 7 + .../basic/register_form_update.tail.skin.php | 7 + skin/member/basic/scrap.skin.php | 2 +- skin/member/basic/scrap_popin.skin.php | 2 +- skin/member/basic/style.css | 33 +- skin/member/basic/zip.skin.php | 13 +- skin/new/basic/new.skin.php | 2 +- skin/outlogin/basic/outlogin.skin.1.php | 6 +- skin/outlogin/basic/outlogin.skin.2.php | 6 +- skin/outlogin/basic/style.css | 16 +- skin/poll/basic/poll.skin.php | 4 +- skin/poll/basic/poll_result.skin.php | 6 +- skin/poll/basic/style.css | 2 +- skin/popular/basic/popular.skin.php | 15 +- skin/popular/basic/style.css | 5 +- skin/search/basic/search.skin.php | 97 +- skin/search/basic/style.css | 54 +- skin/visit/basic/style.css | 5 +- skin/visit/basic/visit.skin.php | 4 +- 64 files changed, 2348 insertions(+), 956 deletions(-) delete mode 100644 adm/board_delete.php create mode 100644 plugin/sns/twitter/.gitignore create mode 100644 plugin/sns/twitter/LICENSE create mode 100644 plugin/sns/twitter/README.md create mode 100644 plugin/sns/twitter/_common.php create mode 100644 plugin/sns/twitter/callback-sample.php create mode 100644 plugin/sns/twitter/callback.php create mode 100644 plugin/sns/twitter/clearsessions.php create mode 100644 plugin/sns/twitter/config-sample.php create mode 100644 plugin/sns/twitter/connect.php create mode 100644 plugin/sns/twitter/html.inc create mode 100644 plugin/sns/twitter/images/darker.png create mode 100644 plugin/sns/twitter/images/lighter.png create mode 100644 plugin/sns/twitter/index.php create mode 100644 plugin/sns/twitter/redirect.php create mode 100644 plugin/sns/twitter/twitteroauth/OAuth.php create mode 100644 plugin/sns/twitter/twitteroauth/twitteroauth.php create mode 100644 skin/member/basic/register_form_update.head.skin.php create mode 100644 skin/member/basic/register_form_update.tail.skin.php diff --git a/adm/board_delete.php b/adm/board_delete.php deleted file mode 100644 index 00a66b0b3..000000000 --- a/adm/board_delete.php +++ /dev/null @@ -1,28 +0,0 @@ - diff --git a/adm/config_form.php b/adm/config_form.php index 42df3ea32..38ab8e737 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -729,11 +729,25 @@ $pg_anchor = ' @@ -174,7 +174,7 @@ if ($is_nogood) $colspan++; - + diff --git a/skin/board/basic/sns_comment.skin.php b/skin/board/basic/sns_comment.skin.php index ea09105b0..d7ce2ae74 100644 --- a/skin/board/basic/sns_comment.skin.php +++ b/skin/board/basic/sns_comment.skin.php @@ -2,81 +2,83 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!$is_member) return; -if (!$config['cf_facebook_use']) return; - -include_once(G4_SNS_PATH."/facebook/src/facebook.php"); -$facebook = new Facebook(array( - 'appId' => $config['cf_facebook_appid'], - 'secret' => $config['cf_facebook_secret'] -)); - -$user = $facebook->getUser(); - -if ($user) { - try { - $user_profile = $facebook->api('/me'); - } catch (FacebookApiException $e) { - error_log($e); - $user = null; - } -} else { - $appid = $config['cf_facebook_appid']; - $secret = $config['cf_facebook_secret']; - $access_token = $_COOKIE['fbs_'.$appid.'_access_token']; - - $graph_url = "https://graph.facebook.com/oauth/access_token?client_id=$appid&client_secret=$secret&grant_type=client_credentials"; - $access_token = file_get_contents($graph_url); - - if($access_token){ - - $graph_url = "https://graph.facebook.com/oauth/access_token_info?client_id=$appid&" . $access_token; - $access_token_info = json_decode(file_get_contents($graph_url)); - - function nonceHasBeenUsed($auth_nonce) { - // Here you would check your database to see if the nonce - // has been used before. For the sake of this example, we'll - // just assume the answer is "no". - return false; - } - - if (nonceHasBeenUsed($access_token_info->auth_nonce) != true) { - if ($result = @file_get_contents("https://graph.facebook.com/me/?".$access_token)) { - $result = json_decode($result, true); - print_r2($result); - $user = $result['id']; - } - } - /* - if ($result = @file_get_contents("https://graph.facebook.com/me/?access_token=".$access_token)) { - $result = json_decode($result, true); - - print_r2($result); - //echo $_SESSION['uid'] = $result['id']; - //if ($result = @file_get_contents("https://graph.facebook.com/{$result['id']}/accounts/test-users?installed=true&name={$result['name']}&locale={$result['locale']}&permissions=read_stream&method=post&access_token=".$access_token)) { - if ($result = @file_get_contents("https://graph.facebook.com/{$result['id']}/accounts/test-users?access_token=".$access_token)) { - $result = json_decode($result, true); - print_r2($result); - $user = $result['id']; - } - } - */ - } -} +if (!$config['cf_facebook_use'] && !$config['cf_twitter_use']) return; ?> SNS 등록
'; - echo ''; - } else { - $facebook_url = $facebook->getLoginUrl(array("redirect_uri"=>G4_SNS_URL."/facebook/callback.php", "scope"=>"publish_stream,read_stream,offline_access", "display"=>"popup")); + if ($config['cf_facebook_use']) { + include_once(G4_SNS_PATH."/facebook/src/facebook.php"); + $facebook = new Facebook(array( + 'appId' => $config['cf_facebook_appid'], + 'secret' => $config['cf_facebook_secret'] + )); - echo ''; - echo ''; - echo ''; + $user = $facebook->getUser(); + + if ($user) { + try { + $user_profile = $facebook->api('/me'); + } catch (FacebookApiException $e) { + error_log($e); + $user = null; + } + } + + if ($user) { + echo ''; + echo ''; + } else { + $facebook_url = $facebook->getLoginUrl(array("redirect_uri"=>G4_SNS_URL."/facebook/callback.php", "scope"=>"publish_stream,read_stream,offline_access", "display"=>"popup")); + + echo ''; + echo ''; + echo ''; + } + } + + if ($config['cf_twitter_use']) { + include_once(G4_SNS_PATH."/twitter/twitteroauth/twitteroauth.php"); + include_once(G4_SNS_PATH."/twitter/config.php"); + + $user = false; + if (empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) { + $twitter_url = G4_SNS_URL."/twitter/redirect.php"; + } else { + $access_token = $_SESSION['access_token']; + $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']); + $content = $connection->get('account/verify_credentials'); + //print_r2($content); + + switch ($connection->http_code) { + case 200: + $user = true; + $twitter_url = $connection->getAuthorizeURL($token); + break; + default : + $twitter_url = G4_SNS_URL."/twitter/redirect.php"; + // 안먹히는 코드 ㅠㅠ + if ($member['mb_twitter_token'] && $member['mb_twitter_token_secret']) { + $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $member['mb_twitter_token'], $member['mb_twitter_token_secret']); + $content = $connection->get('account/verify_credentials'); + if (200 == $connection->http_code) { + $user = true; + $twitter_url = $connection->getAuthorizeURL($token); + } + } + } + } + + if ($user) { + echo ''; + echo ''; + } else { + echo ''; + echo ''; + echo ''; + } } ?>
diff --git a/skin/board/basic/style.css b/skin/board/basic/style.css index f2f48e0d3..e9b257b52 100644 --- a/skin/board/basic/style.css +++ b/skin/board/basic/style.css @@ -3,12 +3,14 @@ /* 게시판 목록 */ #bo_list_title {margin-bottom:20px;font-size:1.2em;letter-spacing:-0.1em} -#bo_cate h2 {position:absolute;;font-size:0;line-height:0;overflow:hidden} +#bo_cate h2 {width:1px;height:1px;font-size:0;line-height:0;overflow:hidden} #bo_cate ul {margin-bottom:10px;padding-left:1px;width:728px;zoom:1} #bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""} #bo_cate li {float:left;margin-bottom:-1px} #bo_cate a {display:block;position:relative;margin-left:-1px;padding:6px 0 5px;width:90px;border:1px solid #ddd;background:#f7f7f7;color:#888;text-align:center;letter-spacing:-0.1em;line-height:1.2em;cursor:pointer} -#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {text-decoration:none} +#bo_cate a:focus, +#bo_cate a:hover, +#bo_cate a:active {text-decoration:none} #bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold} .td_subject img {margin-left:3px} @@ -23,7 +25,7 @@ .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:#f5f6fa} +.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} /* 글제목줄 분류스타일 */ @@ -31,14 +33,14 @@ .cnt_cmt {font-weight:bold} #bo_sch {margin-bottom:10px;padding-top:5px;text-align:center} -#bo_sch legend {position:absolute;font-size:0;line-height:0;overflow:hidden} +#bo_sch legend {width:1px;height:1px;font-size:0;line-height:0;overflow:hidden} /* 게시판 읽기 */ #bo_v {margin-bottom:20px;padding-bottom:20px} -#bo_v_table {position:absolute;top:0;right:15px;margin:0;padding:0 5px;height:25px;background:#565e60;color:#fff;font-weight:bold;line-height:2.2em} +#bo_v_cate {position:absolute;top:0;right:15px;margin:0;padding:0 5px;height:25px;background:#565e60;color:#fff;font-weight:bold;line-height:2.2em} -#bo_v_title {padding:10px 0;font-size:1.2em} +#bo_v_h1 {padding:10px 0;font-size:1.2em} #bo_v_info {padding:0 0 10px;border-bottom:1px solid #ddd} #bo_v_info h2 {margin:0;padding:0;height:0;overflow:hidden} @@ -51,24 +53,27 @@ #bo_v_file {} #bo_v_file h2 {margin:0;padding:0;height:0;overflow:hidden} #bo_v_file ul {margin:0;padding:0;list-style:none} -#bo_v_file li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa} -#bo_v_file a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word} -#bo_v_file a:focus, #bo_v_file a:hover, #bo_v_file a:active {text-decoration:none} -#bo_v_file img {float:left;margin:0 10px 0 0} -.bo_v_file_cnt {display:inline-block;margin:0 0 3px 22px} +#bo_v_file li {padding:0 10px;border-bottom:1px solid #eee;background:#f7f7f2} +#bo_v_file a {display:inline-block;padding:8px 0 7px;color:#000} +#bo_v_file a:focus, +#bo_v_file a:hover, +#bo_v_file a:active {text-decoration:none} +.bo_v_file_cnt {display:inline-block;margin:0 10px} #bo_v_link {} #bo_v_link h2 {margin:0;padding:0;height:0;overflow:hidden} #bo_v_link ul {margin:0;padding:0;list-style:none} -#bo_v_link li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa} -#bo_v_link a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word} -#bo_v_link a:focus, #bo_v_link a:hover, #bo_v_link a:active {text-decoration:none} -.bo_v_link_cnt {display:inline-block;margin:0 0 3px 22px} +#bo_v_link li {padding:0 10px;border-bottom:1px solid #eee;background:#f7f7f2} +#bo_v_link a {display:inline-block;padding:8px 0 7px;color:#000} +#bo_v_link a:focus, +#bo_v_link a:hover, +#bo_v_link a:active {text-decoration:none} +.bo_v_link_cnt {display:inline-block;margin:0 10px} #bo_v_top {margin:0 0 10px;padding:10px 0;zoom:1} #bo_v_top:after {display:block;visibility:hidden;clear:both;content:""} #bo_v_top h2 {margin:0;padding:0;height:0;overflow:hidden} -#bo_v_top ul {margin:0;padding:0;list-style:none} +#bo_v_top ul {list-style:none} #bo_v_bot {zoom:1} #bo_v_bot:after {display:block;visibility:hidden;clear:both;content:""} @@ -81,7 +86,7 @@ .bo_v_com li {float:left;margin-left:5px} #bo_v_atc {min-height:200px;height:auto !important;height:200px} -#bo_v_atc_title {position:absolute;font-size:0;line-height:0;overflow:hidden} +#bo_v_atc header h1 {margin:0;padding:0;width:1px;height:1px;overflow:hidden} #bo_v_img {margin:0 0 10px;width:100%;overflow:hidden:zoom:1} #bo_v_img:after {display:block;visibility:hidden;clear:both;content:""} @@ -96,24 +101,27 @@ #bo_v_act span {display:inline-block;margin-right:5px;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:top} #bo_v_act strong {color:#ff3061} #bo_v_act_good, -#bo_v_act_nogood {position:absolute;font-size:0;line-height:0;overflow:hidden} +#bo_v_act_nogood {position:absolute;top:0;left:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden} #bo_v form {padding-top:20px} /* 게시판 댓글 */ -#bo_vc {padding:20px 20px 10px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f5f6fa} +#bo_vc {margin:0 0 10px;padding:20px 20px 10px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f7f7f2} #bo_vc h2 {margin-bottom:10px} #bo_vc article {padding:0 0 10px;border-top:1px dotted #ccc} #bo_vc header {position:relative;padding:15px 0 5px} #bo_vc header .icon_reply {position:absolute;top:15px;left:-20px} #bo_vc .sv_wrap {margin-right:15px} -#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {font-weight:bold} +#bo_vc .member, +#bo_vc .guest, +#bo_vc .sv_member, +#bo_vc .sv_guest {font-weight:bold} .bo_vc_hdinfo {display:inline-block;margin:0 15px 0 5px} -#bo_vc h1 {position:absolute;font-size:0;line-height:0;overflow:hidden} +#bo_vc h1 {width:1px;height:1px;font-size:0;line-height:0;overflow:hidden} #bo_vc a {color:#000;text-decoration:none} #bo_vc p {padding:0 0 5px;line-height:1.8em} #bo_vc p a {text-decoration:underline} -#bo_vc_empty {margin:0;padding:20px !important;text-align:center} +#bo_vc_empty {margin:0;padding:20px !important;border-bottom:1px dotted #ccc;text-align:center} #bo_vc fieldset {margin:0 0 10px;padding:0} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1} @@ -123,8 +131,8 @@ .bo_vc_act:after {display:block;visibility:hidden;clear:both;content:""} .bo_vc_act li {float:left;margin-left:5px} -#bo_vc_w {position:relative;margin:0 0 10px;padding:0 0 20px;border-bottom:1px solid #cfded8} -#bo_vc_w h2 {position:absolute;font-size:0;line-height:0;overflow:hidden} -#bo_vc_w #char_cnt {display:block;margin:0 0 5px} +#bo_vc_w {position:relative;margin-bottom:10px;padding:0 20px 20px;border-bottom:1px solid #cfded8} +#bo_vc_w h2 {padding:15px 0 5px} +#bo_vc_w #char_cnt {display:block;margin-bottom:5px} #bo_vc form {padding:0} \ No newline at end of file diff --git a/skin/board/basic/view.skin.php b/skin/board/basic/view.skin.php index 1df245abd..3a8859118 100644 --- a/skin/board/basic/view.skin.php +++ b/skin/board/basic/view.skin.php @@ -5,20 +5,17 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php'); -
+
-
-
-

- -

-
+

+ + +

+ +

-

페이지 정보

+

게시물 정보

작성자 작성일 조회 @@ -90,7 +87,8 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
-
+
+ -
-

본문

+
+
+

본문

+
스크랩 + 추천 @@ -153,10 +154,11 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php'); 비추천 +
+ ?>
추천 비추천 @@ -164,20 +166,24 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php'); -
+ ?> +
-
+
+ + +
+ - - - - - - + function fviewcomment_submit(f) + { + var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자 -
- -
- - - - - - + comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님) + + diff --git a/skin/board/basic/write.skin.php b/skin/board/basic/write.skin.php index 4e8527cd5..52cca5147 100644 --- a/skin/board/basic/write.skin.php +++ b/skin/board/basic/write.skin.php @@ -4,7 +4,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 -

+

@@ -147,7 +147,7 @@ echo $option_hidden;

작성하신 내용을 제출하시려면 글쓰기 버튼을, 작성을 취소하고 목록으로 돌아가시려면 취소 링크를 누르세요.

- + 취소
@@ -218,8 +218,6 @@ function fwrite_submit(f) - document.getElementById("btn_submit").disabled = "disabled"; - return true; } diff --git a/skin/board/gallery/list.skin.php b/skin/board/gallery/list.skin.php index 1e14ce3bc..eea67e427 100644 --- a/skin/board/gallery/list.skin.php +++ b/skin/board/gallery/list.skin.php @@ -171,7 +171,7 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php'); - + diff --git a/skin/board/gallery/style.css b/skin/board/gallery/style.css index 2a1dfc769..61c53f9fc 100644 --- a/skin/board/gallery/style.css +++ b/skin/board/gallery/style.css @@ -48,7 +48,7 @@ .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:#f5f6fa} +.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} /* 글제목줄 분류스타일 */ @@ -60,9 +60,9 @@ /* 게시판 읽기 */ #bo_v {margin-bottom:20px;padding-bottom:20px} -#bo_v_table {position:absolute;top:0;right:15px;margin:0;padding:0 5px;height:25px;background:#565e60;color:#fff;font-weight:bold;line-height:2.2em} +#bo_v_cate {position:absolute;top:0;right:15px;margin:0;padding:0 5px;height:25px;background:#565e60;color:#fff;font-weight:bold;line-height:2.2em} -#bo_v_title {padding:10px 0;font-size:1.2em} +#bo_v_h1 {padding:10px 0;font-size:1.2em} #bo_v_info {padding:0 0 10px;border-bottom:1px solid #ddd} #bo_v_info h2 {margin:0;padding:0;height:0;overflow:hidden} @@ -75,24 +75,27 @@ #bo_v_file {} #bo_v_file h2 {margin:0;padding:0;height:0;overflow:hidden} #bo_v_file ul {margin:0;padding:0;list-style:none} -#bo_v_file li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa} -#bo_v_file a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word} -#bo_v_file a:focus, #bo_v_file a:hover, #bo_v_file a:active {text-decoration:none} -#bo_v_file img {float:left;margin:0 10px 0 0} -.bo_v_file_cnt {display:inline-block;margin:0 0 3px 22px} +#bo_v_file li {padding:0 10px;border-bottom:1px solid #eee;background:#f7f7f2} +#bo_v_file a {display:inline-block;padding:8px 0 7px;color:#000} +#bo_v_file a:focus, +#bo_v_file a:hover, +#bo_v_file a:active {text-decoration:none} +.bo_v_file_cnt {display:inline-block;margin:0 10px} #bo_v_link {} #bo_v_link h2 {margin:0;padding:0;height:0;overflow:hidden} #bo_v_link ul {margin:0;padding:0;list-style:none} -#bo_v_link li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa} -#bo_v_link a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word} -#bo_v_link a:focus, #bo_v_link a:hover, #bo_v_link a:active {text-decoration:none} -.bo_v_link_cnt {display:inline-block;margin:0 0 3px 22px} +#bo_v_link li {padding:0 10px;border-bottom:1px solid #eee;background:#f7f7f2} +#bo_v_link a {display:inline-block;padding:8px 0 7px;color:#000} +#bo_v_link a:focus, +#bo_v_link a:hover, +#bo_v_link a:active {text-decoration:none} +.bo_v_link_cnt {display:inline-block;margin:0 10px} #bo_v_top {margin:0 0 10px;padding:10px 0;zoom:1} #bo_v_top:after {display:block;visibility:hidden;clear:both;content:""} #bo_v_top h2 {margin:0;padding:0;height:0;overflow:hidden} -#bo_v_top ul {margin:0;padding:0;list-style:none} +#bo_v_top ul {list-style:none} #bo_v_bot {zoom:1} #bo_v_bot:after {display:block;visibility:hidden;clear:both;content:""} @@ -105,7 +108,7 @@ .bo_v_com li {float:left;margin-left:5px} #bo_v_atc {min-height:200px;height:auto !important;height:200px} -#bo_v_atc_title {position:absolute;font-size:0;line-height:0;overflow:hidden} +#bo_v_atc header h1 {margin:0;padding:0;width:1px;height:1px;overflow:hidden} #bo_v_img {margin:0 0 10px;width:100%;overflow:hidden:zoom:1} #bo_v_img:after {display:block;visibility:hidden;clear:both;content:""} @@ -120,24 +123,27 @@ #bo_v_act span {display:inline-block;margin-right:5px;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:top} #bo_v_act strong {color:#ff3061} #bo_v_act_good, -#bo_v_act_nogood {position:absolute;font-size:0;line-height:0;overflow:hidden} +#bo_v_act_nogood {position:absolute;top:0;left:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden} #bo_v form {padding-top:20px} /* 게시판 댓글 */ -#bo_vc {padding:20px 20px 10px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f5f6fa} +#bo_vc {margin:0 0 10px;padding:20px 20px 10px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f7f7f2} #bo_vc h2 {margin-bottom:10px} #bo_vc article {padding:0 0 10px;border-top:1px dotted #ccc} #bo_vc header {position:relative;padding:15px 0 5px} #bo_vc header .icon_reply {position:absolute;top:15px;left:-20px} #bo_vc .sv_wrap {margin-right:15px} -#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {font-weight:bold} +#bo_vc .member, +#bo_vc .guest, +#bo_vc .sv_member, +#bo_vc .sv_guest {font-weight:bold} .bo_vc_hdinfo {display:inline-block;margin:0 15px 0 5px} -#bo_vc h1 {position:absolute;font-size:0;line-height:0;overflow:hidden} +#bo_vc h1 {width:1px;height:1px;font-size:0;line-height:0;overflow:hidden} #bo_vc a {color:#000;text-decoration:none} #bo_vc p {padding:0 0 5px;line-height:1.8em} #bo_vc p a {text-decoration:underline} -#bo_vc_empty {margin:0;padding:20px !important;text-align:center} +#bo_vc_empty {margin:0;padding:20px !important;border-bottom:1px dotted #ccc;text-align:center} #bo_vc fieldset {margin:0 0 10px;padding:0} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1} @@ -147,8 +153,8 @@ .bo_vc_act:after {display:block;visibility:hidden;clear:both;content:""} .bo_vc_act li {float:left;margin-left:5px} -#bo_vc_w {position:relative;margin:0 0 10px;padding:0 0 20px;border-bottom:1px solid #cfded8} -#bo_vc_w h2 {position:absolute;font-size:0;line-height:0;overflow:hidden} -#bo_vc_w #char_cnt {display:block;margin:0 0 5px} +#bo_vc_w {position:relative;margin-bottom:10px;padding:0 20px 20px;border-bottom:1px solid #cfded8} +#bo_vc_w h2 {padding:15px 0 5px} +#bo_vc_w #char_cnt {display:block;margin-bottom:5px} #bo_vc form {padding:0} \ No newline at end of file diff --git a/skin/board/gallery/view.skin.php b/skin/board/gallery/view.skin.php index c955bc90a..a889e4a88 100644 --- a/skin/board/gallery/view.skin.php +++ b/skin/board/gallery/view.skin.php @@ -5,20 +5,17 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php'); -
+
-
-
-

- -

-
+

+ + +

+ +

-

페이지 정보

+

게시물 정보

작성자 작성일 조회 @@ -90,7 +87,8 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
-
+
+ -
-

본문

+
+
+

본문

+
-
+
-
+
+ + +
+ - ", $str); - ?> -
style="margin-left:px;border-top-color:#e0e0e0"> + ?> +
style="margin-left:px;border-top-color:#e0e0e0">

님의 댓글

@@ -44,7 +44,7 @@ var char_max = parseInt(); // 최대 - " id="secret_comment_"> + " id="secret_comment_"> ); // 최대 - -
-

댓글쓰기

-
- - - - - - - - - - + +
+ + - - + comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님) + + diff --git a/skin/board/gallery/write.skin.php b/skin/board/gallery/write.skin.php index d0b0342b4..a5c6ec465 100644 --- a/skin/board/gallery/write.skin.php +++ b/skin/board/gallery/write.skin.php @@ -4,7 +4,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 -

+

diff --git a/skin/connect/basic/current_connect.skin.php b/skin/connect/basic/current_connect.skin.php index 7f2a4589c..aafbb14ca 100644 --- a/skin/connect/basic/current_connect.skin.php +++ b/skin/connect/basic/current_connect.skin.php @@ -18,18 +18,18 @@ for ($i=0; $i'.$location.''; + if ($list[$i]['lo_url'] && $is_admin == 'super') $display_location = "".$location.""; else $display_location = $location; ?> - + 현재 접속자가 없습니다.'; + echo "현재 접속자가 없습니다."; ?> diff --git a/skin/latest/basic/latest.skin.php b/skin/latest/basic/latest.skin.php index dba9d9e75..df33929b4 100644 --- a/skin/latest/basic/latest.skin.php +++ b/skin/latest/basic/latest.skin.php @@ -4,8 +4,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 -
-

+
+
  • @@ -37,5 +37,5 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
  • 게시물이 없습니다.
- -
+ + diff --git a/skin/latest/basic/style.css b/skin/latest/basic/style.css index b51b1f1fd..82f0b96d2 100644 --- a/skin/latest/basic/style.css +++ b/skin/latest/basic/style.css @@ -1,7 +1,7 @@ /* 새글 스킨 (latest) */ -.lat_pc {float:left;margin-left:20px} -.lat {position:relative;float:left;margin-bottom:20px;padding-bottom:10px;width:354px;height:150px;border-bottom:1px solid #ddd} -.lat ul {margin:0 0 10px;padding:0;list-style:none} -.lat li {padding:3px 0} -.lat_title {display:block;padding:10px 0 8px} -.lat_more {position:absolute;top:10px;right:0} \ No newline at end of file +.lt_pc {float:left;margin-left:20px} +.lt {position:relative;float:left;margin-bottom:20px;padding-bottom:10px;width:354px;height:150px;border-bottom:1px solid #ddd} +.lt ul {margin:0 0 10px;padding:0;list-style:none} +.lt li {padding:3px 0} +.lt_title {display:block;padding:10px 0 8px} +.lt_more {position:absolute;top:10px;right:0} \ No newline at end of file diff --git a/skin/member/basic/formmail.skin.php b/skin/member/basic/formmail.skin.php index b188fea87..ada849559 100644 --- a/skin/member/basic/formmail.skin.php +++ b/skin/member/basic/formmail.skin.php @@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-

님께 메일보내기

+

님께 메일보내기

@@ -15,14 +15,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - - + diff --git a/skin/member/basic/login.skin.php b/skin/member/basic/login.skin.php index 2e91204a8..756c3563c 100644 --- a/skin/member/basic/login.skin.php +++ b/skin/member/basic/login.skin.php @@ -10,18 +10,17 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 -
- 회원로그인 - +
+ - +
- +
메인으로 돌아가기 diff --git a/skin/member/basic/memo.skin.php b/skin/member/basic/memo.skin.php index 5308fd32f..3931cbb5a 100644 --- a/skin/member/basic/memo.skin.php +++ b/skin/member/basic/memo.skin.php @@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-

+

  • 받은쪽지
  • @@ -34,7 +34,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
- '; } ?> + "; } ?>
메일쓰기
삭제
자료가 없습니다.
자료가 없습니다.
diff --git a/skin/member/basic/memo_form.skin.php b/skin/member/basic/memo_form.skin.php index 7eb53d3a5..36e7dca11 100644 --- a/skin/member/basic/memo_form.skin.php +++ b/skin/member/basic/memo_form.skin.php @@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-

쪽지보내기

+

쪽지보내기

- -
+ +
diff --git a/skin/member/basic/memo_view.skin.php b/skin/member/basic/memo_view.skin.php index ea310a6fb..f9fc51bc6 100644 --- a/skin/member/basic/memo_view.skin.php +++ b/skin/member/basic/memo_view.skin.php @@ -14,18 +14,14 @@ else {
-

- +

- -
-
-

쪽지 내용

-
+
+

쪽지 내용

  • 사람 @@ -39,7 +35,7 @@ else {

    -
+
이전쪽지 diff --git a/skin/member/basic/password_lost.skin.php b/skin/member/basic/password_lost.skin.php index 283cf7aab..3730b30fc 100644 --- a/skin/member/basic/password_lost.skin.php +++ b/skin/member/basic/password_lost.skin.php @@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-

회원정보 찾기

+

회원정보 찾기

diff --git a/skin/member/basic/profile.skin.php b/skin/member/basic/profile.skin.php index 26aba76dc..f7a8cb3fc 100644 --- a/skin/member/basic/profile.skin.php +++ b/skin/member/basic/profile.skin.php @@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-

님의 프로필

+

님의 프로필

쪽지쓰기
diff --git a/skin/member/basic/register_form.skin.php b/skin/member/basic/register_form.skin.php index 5fc5f60a9..d38367053 100644 --- a/skin/member/basic/register_form.skin.php +++ b/skin/member/basic/register_form.skin.php @@ -8,11 +8,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - + + + date("Y-m-d", G4_SERVER_TIME - ($config['cf_nick_modify'] * 86400))) { // 별명수정일이 지나지 않았다면 ?> - +
@@ -39,19 +41,10 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 @@ -67,17 +60,17 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - + @@ -88,27 +81,37 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - + - + - + - + - + - +
사이트 이용정보 입력
- - 휴대폰 본인확인 후에는 이름과 휴대폰번호가 자동 입력되며 수동으로 입력할수 없게 됩니다. - - class="frm_input nospace " size="10"> - - - - - -
- 휴대폰 본인확인성인인증 완료 -
- + 공백없이 한글만 입력하세요."; } */ ?> + 이름과 휴대폰번호는 아래의 휴대폰 본인확인 기능을 사용하여 입력해 주십시오.' : ''; ?> + 테스트의 경우 이동통신사는 반드시 KT를 선택해 주십시오. 나머지 항목은 임의로 입력하시면 됩니다.' : ''; ?> + class="frm_input nospace " size="10">
- - + + - + class="frm_input " size="50" maxlength="255">
class="frm_input " maxlength="20">
class="frm_input " maxlength="20"> + + 휴대폰번호는 휴대폰 본인확인 기능을 이용하여 입력하세요. + + class="frm_input " maxlength="20"> + + + + + +
주소 - 필수 + 필수 @@ -129,7 +132,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
@@ -139,14 +142,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - + - += $config['cf_icon_level']) { ?> @@ -157,14 +160,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 gif만 가능하며 용량 바이트 이하만 등록됩니다. - - 회원아이콘 + - + - + @@ -182,7 +184,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 휴대폰 문자메세지를 받겠습니다. - + @@ -207,14 +209,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - + - + @@ -226,7 +228,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

작성하신 내용를 발송하시려면 버튼을, 작성을 취소하고 창을 닫으시려면 취소 링크를 누르세요.

- + 취소 @@ -234,13 +236,17 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 + @@ -61,33 +61,34 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
- -
-

전체검색 결과

-
-
게시판
-
-
게시물
-
-
-

/ 페이지 열람 중

-
- + + +
+
에 대한 검색 결과입니다.
+
+
    +
  • 개의 게시판
  • +
  • 개의 게시물
  • +
  • 현재 / 페이지 열람 중
  • +
+
+
+ + - +
+
검색결과가 있는 게시판 목록
+
+ +
+
@@ -96,37 +97,37 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
-
+
-

게시판 내 결과

-
    - 댓글"; - $comment_href = "#c_".$list[$idx][$i][wr_id]; - } - ?> -
  • - - 새창 -

    - - -
  • - -
- - -
+
에서
+
+
    + 댓글"; + $comment_href = "#c_".$list[$idx][$i][wr_id]; + } + ?> +
  • + + 새창 +

    + + +
  • + +
+ +
-
+ diff --git a/skin/search/basic/style.css b/skin/search/basic/style.css index 74b077e8c..648e99043 100644 --- a/skin/search/basic/style.css +++ b/skin/search/basic/style.css @@ -1,23 +1,33 @@ /* 전체검색결과 스킨 */ -#sch_res_detail {padding:0 0 10px;border-bottom:1px solid #e9e9e9;text-align:center} -#sch_res_detail legend {position:absolute;font-size:0;line-height:0;overflow:hidden} -#sch_res_ov {margin:0 0 10px;padding:10px;border-bottom:1px solid #e9e9e9;background:#f5f6fa;zoom:1} -#sch_res_ov:after {display:block;visibility:hidden;clear:both;content:""} -#sch_res_ov h2 {float:left} -#sch_res_ov dl {float:left;margin:0 0 0 10px} -#sch_res_ov dt {float:left} -#sch_res_ov dd {float:left;margin:0 10px 0 5px} -#sch_res_ov p {float:right;margin:0;padding:0;line-height:1em} - -#sch_res_board {margin:0 0 10px;padding-left:1px;width:728px;list-style:none;zoom:1} -#sch_res_board:after {display:block;visibility:hidden;clear:both;content:""} -#sch_res_board li {float:left;margin-bottom:-1px} -#sch_res_board a {display:block;position:relative;margin-left:-1px;padding:6px 0 5px;width:181px;border:1px solid #ddd;text-align:center;letter-spacing:-0.1em;line-height:1.2em;cursor:pointer} -#sch_res_board a:focus, #sch_res_board a:hover, #sch_res_board a:active {text-decoration:none} -#sch_res_board .cnt_cmt {font-weight:normal !important} - -.sch_res_list {margin:0 0 10px;padding:10px 0 15px} -.sch_res_list h2 {margin:0 0 15px;font-size:1.2em} -.sch_res_list ul {margin:0;padding:0;list-style:none} -.sch_res_list li {margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid #e9e9e9} -.sch_more {text-align:right} \ No newline at end of file +#sch_result_detail {margin:0;padding:15px 0;border:0;text-align:right} +#sch_result {padding:10px 0 0 0;border-top:1px solid #cfded8;background:url('../img/sch_result_bg.jpg') repeat-y} +#sch_result ul {margin:0;padding:0;list-style:none} +#sch_result p {margin:5px 0;padding:0} +#sch_result_hd {margin:0;padding:0;zoom:1} +#sch_result_hd:after {display:block;visibility:hidden;clear:both;content:""} +#sch_result_hd dt {float:left;padding:10px 0 15px} +#sch_result_hd dd {float:right;margin:0;padding:10px 0 15px} +#sch_result_hd ul {float:left} +#sch_result_hd li {float:left;padding:0 10px;border-right:1px solid #cfded8} +#sch_result_bo {float:left;margin:-1px 0 0;padding:0;width:170px} +#sch_result_bo dt {margin:0;padding:0;border:0;font-size:0;line-height:0;overflow:hidden} +#sch_result_bo dd {margin:0;padding:0} +#sch_result_bo ul {margin-top:1px} +#sch_result_bo li {position:relative;margin-top:-1px;height:40px} +#sch_result_bo a {position:absolute;padding:0 10px;width:149px;height:40px;border:1px solid #618588;border-right:0;background:#151515;color:#fff;text-decoration:none;line-height:3.4em} +#sch_result_bo .sch_on {width:150px;border-color:#cfded8;border-right:0;background:#fff;color:#000;font-weight:bold} +#sch_result_bo .cnt_cmt {color:#fff} +#sch_result_bo .sch_on .cnt_cmt {color:#000} +#sch_result_atc {float:left;margin:-1px 0 0;padding:15px 25px;width:506px;border:1px solid #cfded8;background:#fff} +#sch_result_atc dt a {display:inline-block;margin-bottom:15px;color:#000;font-size:1.2em;font-weight:bold;text-decoration:none} +#sch_result_atc dd {margin:0 0 15px} +#sch_result_atc dd a {} +#sch_result_atc .sch_result_title {display:inline-block;margin-bottom:5px;font-size:1.1em;font-weight:bold;text-decoration:underline} +#sch_result_atc li {padding:13px 0;border-bottom:1px solid #f0f0f0} +#sch_result_atc p {padding:0 0 5px} +#sch_result_atc a {display:inline-block;margin:0 10px 0 0} +#sch_result_atc .cmt_def {display:inline-block;margin:0 10px 0 0} +.sch_more {padding:10px 0 15px;text-align:right} +.sch_more a {} +.sch_datetime {display:inline-block;margin-right:15px;color:#999} +.sch_word {font-weight:bold} /* 검색어 강조 */ \ No newline at end of file diff --git a/skin/visit/basic/style.css b/skin/visit/basic/style.css index 9ac0eac47..0fd3e5772 100644 --- a/skin/visit/basic/style.css +++ b/skin/visit/basic/style.css @@ -1,5 +1,5 @@ /* 방문자 집계 */ -#visit {background:#515151} +#visit {background:#444} #visit div {margin:0 auto;width:980px;zoom:1} #visit div:after {display:block;visibility:hidden;clear:both;content:""} #visit h2 {float:left;padding:10px 45px 10px 0;color:#fff} @@ -7,4 +7,5 @@ #visit dt {float:left;margin:0;padding:10px 0 10px;color:#fff} #visit dd {float:left;margin:0 30px 0 0;padding:10px;color:#fff} #visit a {display:inline-block;padding:10px;color:#fff;text-decoration:none} -#visit a:focus, #visit a:hover {background:#333;color:#fff} \ No newline at end of file +#visit a:focus, +#visit a:hover {background:#333;color:#fff} \ No newline at end of file diff --git a/skin/visit/basic/visit.skin.php b/skin/visit/basic/visit.skin.php index f0761c356..e9cfb4dbb 100644 --- a/skin/visit/basic/visit.skin.php +++ b/skin/visit/basic/visit.skin.php @@ -6,7 +6,7 @@ global $is_admin; - +
자동등록방지