미투데이 관련 코드 삭제

This commit is contained in:
chicpro
2013-11-12 14:17:37 +09:00
parent d77bf259aa
commit c36313ce5a
16 changed files with 9 additions and 146 deletions

View File

@ -1,11 +1,10 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!$board['bo_use_sns']) return;
set_cookie('ck_facebook_checked', false, 86400*31);
set_cookie('ck_twitter_checked' , false, 86400*31);
set_cookie('ck_me2day_checked' , false, 86400*31);
//============================================================================
// 페이스북
@ -52,7 +51,7 @@ $wr_twitter_user = "";
if ($_POST['twitter_checked']) {
include_once(G5_SNS_PATH."/twitter/twitteroauth/twitteroauth.php");
include_once(G5_SNS_PATH."/twitter/twitterconfig.php");
if ( !(empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) ) {
$post = googl_short_url($comment_url).' '.$wr_content;
$post = utf8_strcut($post, 140);
@ -61,30 +60,11 @@ if ($_POST['twitter_checked']) {
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
// 등록
$connection->post('statuses/update', array('status' => $post));
set_cookie('ck_twitter_checked', true, 86400*31);
}
$wr_twitter_user = get_session("ss_twitter_user");
}
//============================================================================
//============================================================================
// 미투데이
//----------------------------------------------------------------------------
$wr_me2day_user = "";
if ($_POST['me2day_checked']) {
if (!empty($_SESSION['me2day']['user_id']) && !empty($_SESSION['me2day']['user_key'])) {
$user_id = $_SESSION['me2day']['user_id'];
$user_key = $_SESSION['me2day']['user_key'];
$auth_key = "12345678" . md5("12345678" . $user_key);
$result = file_get_contents("http://me2day.net/api/create_post/{$user_id}.json?uid={$user_id}&ukey={$auth_key}&akey=".$config['cf_me2day_key']."&post[body]=".urlencode($wr_content));
set_cookie('ck_me2day_checked', true, 86400*31);
}
$wr_me2day_user = get_session("ss_me2day_user");
}
//============================================================================
?>