From 8b57547440fa9007587ad9604ee721f00e25c3b7 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Wed, 29 May 2013 10:51:02 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=EB=90=9C=20SNS=20=EB=A5=BC=20=EC=BD=94=EB=A9=98=ED=8A=B8?= =?UTF-8?q?=EC=97=90=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write_comment_update.php | 13 +++---- plugin/kcp/kcpcert.head.skin.php | 41 ---------------------- skin/board/basic/view_comment.skin.php | 21 +++++------ skin/board/basic/view_comment.sns.skin.php | 9 ----- 4 files changed, 15 insertions(+), 69 deletions(-) delete mode 100644 plugin/kcp/kcpcert.head.skin.php diff --git a/bbs/write_comment_update.php b/bbs/write_comment_update.php index 329c34c34..c79306afb 100644 --- a/bbs/write_comment_update.php +++ b/bbs/write_comment_update.php @@ -134,6 +134,11 @@ if ($w == 'c') // 댓글 입력 $tmp_comment_reply = ''; } + // SNS 등록 + $wr_sns = array(); + include_once("./write_comment_update.sns.php"); + $wr_sns = implode(",", $wr_sns); + $sql = " insert into $write_table set ca_name = '{$wr['ca_name']}', wr_option = '$wr_secret', @@ -153,6 +158,7 @@ if ($w == 'c') // 댓글 입력 wr_datetime = '".G4_TIME_YMDHIS."', wr_last = '', wr_ip = '{$_SERVER['REMOTE_ADDR']}', + wr_sns = '$wr_sns', wr_1 = '$wr_1', wr_2 = '$wr_2', wr_3 = '$wr_3', @@ -167,13 +173,8 @@ if ($w == 'c') // 댓글 입력 $comment_id = mysql_insert_id(); - // SNS 등록 - $wr_sns = array(); - include_once("./write_comment_update.sns.php"); - $wr_sns = implode(",", $wr_sns); - // 원글에 댓글수 증가 & 마지막 시간 반영 - sql_query(" update $write_table set wr_comment = wr_comment + 1, wr_sns = '$wr_sns', wr_last = '".G4_TIME_YMDHIS."' where wr_id = '$wr_id' "); + sql_query(" update $write_table set wr_comment = wr_comment + 1, wr_last = '".G4_TIME_YMDHIS."' where wr_id = '$wr_id' "); // 새글 INSERT sql_query(" insert into {$g4['board_new_table']} ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '$bo_table', '$comment_id', '$wr_id', '".G4_TIME_YMDHIS."', '{$member['mb_id']}' ) "); diff --git a/plugin/kcp/kcpcert.head.skin.php b/plugin/kcp/kcpcert.head.skin.php deleted file mode 100644 index d141b22b7..000000000 --- a/plugin/kcp/kcpcert.head.skin.php +++ /dev/null @@ -1,41 +0,0 @@ - \ No newline at end of file diff --git a/skin/board/basic/view_comment.skin.php b/skin/board/basic/view_comment.skin.php index 772c4baa6..f59b10bf2 100644 --- a/skin/board/basic/view_comment.skin.php +++ b/skin/board/basic/view_comment.skin.php @@ -16,11 +16,13 @@ var char_max = parseInt(); // 최대 $comment_id = $list[$i]['wr_id']; $cmt_depth = ""; // 댓글단계 $cmt_depth = strlen($list[$i]['wr_comment_reply']) * 20; - $str = $list[$i]['content']; + $comment = $list[$i]['content']; + /* if (strstr($list[$i]['wr_option'], "secret")) { $str = $str; } - $str = preg_replace("/\[\\]/i", "", $str); + */ + $comment = preg_replace("/\[\\]/i", "", $comment); ?>
style="margin-left:px;border-top-color:#e0e0e0">
@@ -38,7 +40,10 @@ var char_max = parseInt(); // 최대

"; ?> - + "; ?> + "; ?> + "; ?> +

@@ -168,16 +173,6 @@ var char_max = parseInt(); // 최대 f.is_good.value = 0; - /* - var s; - if (s = word_filter_check(document.getElementById('wr_content').value)) - { - alert("내용에 금지단어('"+s+"')가 포함되어있습니다"); - document.getElementById('wr_content').focus(); - return false; - } - */ - var subject = ""; var content = ""; $.ajax({ diff --git a/skin/board/basic/view_comment.sns.skin.php b/skin/board/basic/view_comment.sns.skin.php index 06d6d1ff8..6382c8362 100644 --- a/skin/board/basic/view_comment.sns.skin.php +++ b/skin/board/basic/view_comment.sns.skin.php @@ -70,15 +70,6 @@ if (!$board['bo_use_sns']) return; 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) { - $twitter_user = true; - $twitter_url = $connection->getAuthorizeURL($token); - } - } } }