From 2658dde159ebe2605336943ac00870a75fbcb09e Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 15 Jul 2014 16:59:54 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B9=B4=EC=B9=B4=EC=98=A4=ED=86=A1=20?= =?UTF-8?q?=EB=A7=81=ED=81=AC=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EB=B0=8F=20=EA=B8=B0=ED=83=80=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/config_form.php | 10 ++++++++++ adm/config_form_update.php | 1 + adm/member_form.php | 4 ++-- bbs/password.php | 9 +++++++++ bbs/password_check.php | 13 +++++++++++++ bbs/view_comment.php | 9 +++++++++ bbs/write_update.php | 2 +- common.php | 10 +++++++--- config.php | 4 ++-- install/gnuboard5.sql | 1 + js/kakaolink.js | 10 ++++++++++ lib/common.lib.php | 2 +- lib/naver_syndi.lib.php | 14 ++++++++++++++ mobile/skin/board/basic/style.css | 1 + mobile/skin/board/basic/view_comment.skin.php | 7 ++++++- mobile/skin/board/gallery/style.css | 1 + mobile/skin/board/gallery/view_comment.skin.php | 7 ++++++- plugin/sns/view.sns.skin.php | 13 +++++++++++++ skin/board/basic/style.css | 1 + skin/board/basic/view_comment.skin.php | 7 ++++++- skin/board/gallery/style.css | 1 + skin/board/gallery/view_comment.skin.php | 7 ++++++- 22 files changed, 121 insertions(+), 13 deletions(-) create mode 100644 js/kakaolink.js diff --git a/adm/config_form.php b/adm/config_form.php index a6e4f067c..b2fc57f7a 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -177,6 +177,12 @@ if(!isset($config['cf_optimize_date'])) { ADD `cf_optimize_date` date NOT NULL default '0000-00-00' AFTER `cf_popular_del` ", true); } +// 카카오톡링크 api 키 +if(!isset($config['cf_kakao_js_apikey'])) { + sql_query(" ALTER TABLE `{$g5['config_table']}` + ADD `cf_kakao_js_apikey` varchar(255) NOT NULL DEFAULT '' AFTER `cf_googl_shorturl_apikey` ", true); +} + if(!$config['cf_faq_skin']) $config['cf_faq_skin'] = "basic"; if(!$config['cf_mobile_faq_skin']) $config['cf_mobile_faq_skin'] = "basic"; @@ -1056,6 +1062,10 @@ if ($config['cf_icode_id'] && $config['cf_icode_pw']) { API Key 등록하기 + + + 앱 등록하기 + diff --git a/adm/config_form_update.php b/adm/config_form_update.php index db852d38b..33e49d1a4 100644 --- a/adm/config_form_update.php +++ b/adm/config_form_update.php @@ -127,6 +127,7 @@ $sql = " update {$g5['config_table']} cf_icode_server_ip = '{$_POST['cf_icode_server_ip']}', cf_icode_server_port = '{$_POST['cf_icode_server_port']}', cf_googl_shorturl_apikey = '{$_POST['cf_googl_shorturl_apikey']}', + cf_kakao_js_apikey = '{$_POST['cf_kakao_js_apikey']}', cf_facebook_appid = '{$_POST['cf_facebook_appid']}', cf_facebook_secret = '{$_POST['cf_facebook_secret']}', cf_twitter_key = '{$_POST['cf_twitter_key']}', diff --git a/adm/member_form.php b/adm/member_form.php index 3410c242b..dd40d6f28 100644 --- a/adm/member_form.php +++ b/adm/member_form.php @@ -352,8 +352,8 @@ this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }"> diff --git a/mobile/skin/board/gallery/style.css b/mobile/skin/board/gallery/style.css index 9fcf341af..4f69e8f65 100644 --- a/mobile/skin/board/gallery/style.css +++ b/mobile/skin/board/gallery/style.css @@ -203,6 +203,7 @@ #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 p a.s_cmt {text-decoration:none} #bo_vc_empty {margin:0;padding:15px !important;text-align:center} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1} diff --git a/mobile/skin/board/gallery/view_comment.skin.php b/mobile/skin/board/gallery/view_comment.skin.php index 7ebcce47d..946d56c44 100644 --- a/mobile/skin/board/gallery/view_comment.skin.php +++ b/mobile/skin/board/gallery/view_comment.skin.php @@ -309,7 +309,12 @@ var char_max = parseInt(); // 최대 // sns 등록 $(function() { - $("#bo_vc_send_sns").load( "/view_comment_write.sns.skin.php?bo_table=" ); + $("#bo_vc_send_sns").load( + "/view_comment_write.sns.skin.php?bo_table=", + function() { + save_html = document.getElementById('bo_vc_w').innerHTML; + } + ); }); diff --git a/plugin/sns/view.sns.skin.php b/plugin/sns/view.sns.skin.php index 204d372a3..0af55cbca 100644 --- a/plugin/sns/view.sns.skin.php +++ b/plugin/sns/view.sns.skin.php @@ -21,8 +21,21 @@ $facebook_url = $sns_send.'&sns=facebook'; $twitter_url = $sns_send.'&sns=twitter'; $gplus_url = $sns_send.'&sns=gplus'; ?> + + + + + + + diff --git a/skin/board/basic/style.css b/skin/board/basic/style.css index 7b6510eff..29a31a5f4 100644 --- a/skin/board/basic/style.css +++ b/skin/board/basic/style.css @@ -236,6 +236,7 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa #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 p a.s_cmt {text-decoration:none} #bo_vc_empty {margin:0;padding:20px !important;text-align:center} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1} diff --git a/skin/board/basic/view_comment.skin.php b/skin/board/basic/view_comment.skin.php index db0d2f9ff..287c7a29c 100644 --- a/skin/board/basic/view_comment.skin.php +++ b/skin/board/basic/view_comment.skin.php @@ -317,7 +317,12 @@ comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 // sns 등록 $(function() { - $("#bo_vc_send_sns").load( "/view_comment_write.sns.skin.php?bo_table=" ); + $("#bo_vc_send_sns").load( + "/view_comment_write.sns.skin.php?bo_table=", + function() { + save_html = document.getElementById('bo_vc_w').innerHTML; + } + ); }); diff --git a/skin/board/gallery/style.css b/skin/board/gallery/style.css index bfb4c3956..43bea9758 100644 --- a/skin/board/gallery/style.css +++ b/skin/board/gallery/style.css @@ -229,6 +229,7 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa #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 p a.s_cmt {text-decoration:none} #bo_vc_empty {margin:0;padding:20px !important;text-align:center} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1} diff --git a/skin/board/gallery/view_comment.skin.php b/skin/board/gallery/view_comment.skin.php index 56e62aa0e..97529e075 100644 --- a/skin/board/gallery/view_comment.skin.php +++ b/skin/board/gallery/view_comment.skin.php @@ -317,7 +317,12 @@ comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 // sns 등록 $(function() { - $("#bo_vc_send_sns").load( "/view_comment_write.sns.skin.php?bo_table=" ); + $("#bo_vc_send_sns").load( + "/view_comment_write.sns.skin.php?bo_table=", + function() { + save_html = document.getElementById('bo_vc_w').innerHTML; + } + ); });