SNS 수정중
This commit is contained in:
@ -131,10 +131,10 @@ if( $cert_enc_use == "Y" )
|
||||
|
||||
$phone_no = hyphen_hp_number($phone_no);
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_id <> '{$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 데이터
|
||||
@ -149,6 +149,8 @@ if( $cert_enc_use == "Y" )
|
||||
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']}' ";
|
||||
|
||||
@ -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 <<<EOT
|
||||
<script>
|
||||
|
||||
@ -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 <<<EOT
|
||||
<script>
|
||||
|
||||
@ -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 <<<EOT
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user