내용
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/plugin/kcpcert/kcpcert_result.php b/plugin/kcpcert/kcpcert_result.php
index e6306d68c..e25848901 100644
--- a/plugin/kcpcert/kcpcert_result.php
+++ b/plugin/kcpcert/kcpcert_result.php
@@ -1,9 +1,6 @@
'{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
+ $sql = " select mb_id from {$g4['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
$row = sql_fetch($sql);
- if ($row['cnt']) {
- alert_close("이미 가입되어 있는 휴대폰번호 입니다.");
+ if ($row['mb_id']) {
+ alert_close("이미 가입되어 있는 휴대폰번호 입니다.\\n회원아이디 : ".$row['mb_id']);
}
// hash 데이터
$md5_cert_no = md5($cert_no);
- $hash_data = md5($phone_no.$user_name.$md5_cert_no);
- set_session("ss_kcpcert_no", $md5_cert_no);
- set_session("ss_kcpcert_hash", $hash_data);
+ $hash_data = md5($phone_no.$user_name.$md5_cert_no);
// 성인인증결과
$adult_day = date("Ymd", strtotime("-19 years", G4_SERVER_TIME));
$adult = ((int)$birth_day <= (int)$adult_day) ? 1 : 0;
+ set_session("ss_kcpcert_no", $md5_cert_no);
+ set_session("ss_kcpcert_hash", $hash_data);
+ set_session("ss_kcpcert_hp_certify", 1);
+ set_session("ss_kcpcert_adult", $adult);
+ set_session("ss_kcpcert_birth", $birth_day);
+ set_session("ss_kcpcert_sex", ($sex_code=="01"?"M":"F"));
+
+ /*
$sql = " update {$g4['member_table']} set mb_name = '$user_name', mb_hp = '$phone_no', mb_hp_certify = 1, mb_adult = $adult, mb_birth = '$birth_day', mb_sex = '$sex_code' where mb_id = '{$member['mb_id']}' ";
sql_query($sql);
+ */
}
else if( $res_cd != "0000" )
{
diff --git a/plugin/sns/facebook/callback.php b/plugin/sns/facebook/callback.php
index f301207a5..9f1d7ec22 100644
--- a/plugin/sns/facebook/callback.php
+++ b/plugin/sns/facebook/callback.php
@@ -22,10 +22,13 @@ $g4['title'] = '페이스북 콜백';
include_once(G4_PATH.'/head.sub.php');
if ($user) {
- $sns_name = $user_profile['name'];
- $g4_sns_url = G4_SNS_URL;
+ $sns_name = $user_profile['name'];
+ $sns_user = $user;
set_cookie('ck_sns_name', $sns_name, 86400);
+ set_session('ss_facebook_user', $user);
+
+ $g4_sns_url = G4_SNS_URL;
echo <<
diff --git a/plugin/sns/me2day/callback.php b/plugin/sns/me2day/callback.php
index 78a03a07d..7226c98cc 100644
--- a/plugin/sns/me2day/callback.php
+++ b/plugin/sns/me2day/callback.php
@@ -14,11 +14,14 @@ include_once(G4_PATH.'/head.sub.php');
$result = json_decode(file_get_contents("http://me2day.net/api/noop.json?uid={$user_id}&ukey={$auth_key}&akey=".$config['cf_me2day_key']));
if ($result->code == 0) {
- $user = json_decode(file_get_contents("http://me2day.net/api/get_person/{$user_id}.json"));
- $sns_name = $user->nickname;
- $g4_sns_url = G4_SNS_URL;
+ $user = json_decode(file_get_contents("http://me2day.net/api/get_person/{$user_id}.json"));
+ $sns_name = $user->nickname;
+ $sns_user = $user->id;
set_cookie('ck_sns_name', $sns_name, 86400);
+ set_session('ss_me2day_user', $sns_user);
+
+ $g4_sns_url = G4_SNS_URL;
echo <<
diff --git a/plugin/sns/twitter/callback.php b/plugin/sns/twitter/callback.php
index 27b58b765..456769424 100644
--- a/plugin/sns/twitter/callback.php
+++ b/plugin/sns/twitter/callback.php
@@ -16,8 +16,8 @@ require_once(G4_SNS_PATH.'/twitter/twitterconfig.php');
/* If the oauth_token is old redirect to the connect page. */
if (isset($_REQUEST['oauth_token']) && $_SESSION['oauth_token'] !== $_REQUEST['oauth_token']) {
- $_SESSION['oauth_status'] = 'oldtoken';
- header('Location: ./clearsessions.php');
+ $_SESSION['oauth_status'] = 'oldtoken';
+ header('Location: ./clearsessions.php');
}
/* Create TwitteroAuth object with app key/secret and token key/secret from default phase */
@@ -47,12 +47,14 @@ $g4['title'] = '트위터 콜백';
include_once(G4_PATH.'/head.sub.php');
if (200 == $connection->http_code) {
-
- $content = $connection->get('account/verify_credentials');
- $sns_name = $content->name;
- $g4_sns_url = G4_SNS_URL;
+ $content = $connection->get('account/verify_credentials');
+ $sns_name = $content->name;
+ $sns_user = $content->screen_name;
set_cookie('ck_sns_name', $sns_name, 86400);
+ set_session('ss_twitter_user', $sns_user);
+
+ $g4_sns_url = G4_SNS_URL;
echo <<
diff --git a/plugin/sns/twitter/twitterconfig.php b/plugin/sns/twitter/twitterconfig.php
index 7f8b2684c..70c525cb4 100644
--- a/plugin/sns/twitter/twitterconfig.php
+++ b/plugin/sns/twitter/twitterconfig.php
@@ -6,5 +6,5 @@
define('CONSUMER_KEY', $config['cf_twitter_key']);
define('CONSUMER_SECRET', $config['cf_twitter_secret']);
-//define('OAUTH_CALLBACK', G4_SNS_URL.'/twitter/callback.php');
-define('OAUTH_CALLBACK', '');
+define('OAUTH_CALLBACK', G4_SNS_URL.'/twitter/callback.php');
+//define('OAUTH_CALLBACK', '');
diff --git a/skin/board/basic/view_comment.skin.php b/skin/board/basic/view_comment.skin.php
index 772c4baa6..391c366e2 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);
?>
-
-
내용
글자
-
diff --git a/skin/board/gallery/view.skin.php b/skin/board/gallery/view.skin.php
index 678665bf1..5fa039d5a 100644
--- a/skin/board/gallery/view.skin.php
+++ b/skin/board/gallery/view.skin.php
@@ -58,6 +58,10 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
}
?>
+
diff --git a/skin/board/gallery/view.sns.skin.php b/skin/board/gallery/view.sns.skin.php
deleted file mode 100644
index 80f8cd945..000000000
--- a/skin/board/gallery/view.sns.skin.php
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
diff --git a/skin/board/gallery/view_comment.skin.php b/skin/board/gallery/view_comment.skin.php
index 067f350c1..73ec802b2 100644
--- a/skin/board/gallery/view_comment.skin.php
+++ b/skin/board/gallery/view_comment.skin.php
@@ -114,8 +114,8 @@ var char_max = parseInt(); // 최대
-
- SNS 등록
-
-
- $config['cf_facebook_appid'],
- 'secret' => $config['cf_facebook_secret']
- ));
-
- $facebook_user = $facebook->getUser();
-
- if ($facebook_user) {
- try {
- $facebook_user_profile = $facebook->api('/me');
- } catch (FacebookApiException $e) {
- error_log($e);
- $facebook_user = null;
- }
- }
-
- echo '';
- if ($facebook_user) {
- echo ' ';
- 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 ' ';
- echo '';
- }
- echo ' ';
- }
- //============================================================================
-
-
- //============================================================================
- // 트위터
- //----------------------------------------------------------------------------
- if ($config['cf_twitter_key']) {
- include_once(G4_SNS_PATH."/twitter/twitteroauth/twitteroauth.php");
- include_once(G4_SNS_PATH."/twitter/twitterconfig.php");
-
- $twitter_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:
- $twitter_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) {
- $twitter_user = true;
- $twitter_url = $connection->getAuthorizeURL($token);
- }
- }
- }
- }
-
- echo '';
- if ($twitter_user) {
- echo '';
- echo '트위터 동시 등록 ';
- echo '';
- } else {
- echo '';
- echo '트위터 동시 등록 ';
- echo '';
- echo '';
- }
- echo ' ';
- }
- //============================================================================
-
-
- //============================================================================
- // 미투데이
- //----------------------------------------------------------------------------
- if ($config['cf_me2day_key']) {
- $me2day_user = false;
- if (empty($_SESSION['me2day']['user_id']) || empty($_SESSION['me2day']['user_key'])) {
- $result = json_decode(file_get_contents("http://me2day.net/api/get_auth_url.json?akey=".$config['cf_me2day_key']));
- $me2day_url = $result->url;
- } else {
- $me2day_user = true;
- }
-
- echo '';
- if ($me2day_user) {
- echo ' ';
- echo '미투데이 동시 등록 ';
- echo ' ';
- } else {
- echo ' ';
- echo '미투데이 동시 등록 ';
- echo ' ';
- echo '';
- }
- echo ' ';
- }
- //============================================================================
- ?>
-
-
-
diff --git a/skin/board/gallery/write.skin.php b/skin/board/gallery/write.skin.php
index a5c6ec465..3875e2b3c 100644
--- a/skin/board/gallery/write.skin.php
+++ b/skin/board/gallery/write.skin.php
@@ -234,6 +234,8 @@ function fwrite_submit(f)
+ document.getElementById("btn_submit").disabled = "disabled";
+
return true;
}
diff --git a/skin/member/basic/register_form.skin.php b/skin/member/basic/register_form.skin.php
index 0abf94bdf..df1874f23 100644
--- a/skin/member/basic/register_form.skin.php
+++ b/skin/member/basic/register_form.skin.php
@@ -41,10 +41,15 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가