清除 QQ头像和秀相关接口相关
This commit is contained in:
parent
932a515563
commit
a20435cc76
|
@ -28,7 +28,7 @@ if(!empty($_POST)) {
|
||||||
$conispublishfeed = 0;
|
$conispublishfeed = 0;
|
||||||
$conispublisht = 0;
|
$conispublisht = 0;
|
||||||
|
|
||||||
$is_use_qqshow = !empty($_GET['use_qqshow']) ? 1 : 0;
|
$is_use_qqshow = 0;
|
||||||
|
|
||||||
if ($conopenid) {
|
if ($conopenid) {
|
||||||
C::t('#qqconnect#common_member_connect')->insert(array('uid' => $uid, 'conuin' => $conuin, 'conuinsecret' => $conuinsecret, 'conuintoken' => $conuintoken, 'conopenid' => $conopenid, 'conispublishfeed' => $conispublishfeed, 'conispublisht' => $conispublisht, 'conisregister' => '0', 'conisqzoneavatar' => '0', 'conisfeed' => $user_auth_fields, 'conisqqshow' => $is_use_qqshow), false, true);
|
C::t('#qqconnect#common_member_connect')->insert(array('uid' => $uid, 'conuin' => $conuin, 'conuinsecret' => $conuinsecret, 'conuintoken' => $conuintoken, 'conopenid' => $conopenid, 'conispublishfeed' => $conispublishfeed, 'conispublisht' => $conispublisht, 'conisregister' => '0', 'conisqzoneavatar' => '0', 'conisfeed' => $user_auth_fields, 'conisqqshow' => $is_use_qqshow), false, true);
|
||||||
|
|
|
@ -76,13 +76,8 @@ if(empty($_POST)) {
|
||||||
$conispublishfeed = 0;
|
$conispublishfeed = 0;
|
||||||
$conispublisht = 0;
|
$conispublisht = 0;
|
||||||
|
|
||||||
$is_qzone_avatar = !empty($_GET['use_qzone_avatar']) ? 1 : 0;
|
|
||||||
$is_use_qqshow = !empty($_GET['use_qqshow']) ? 1 : 0;
|
|
||||||
if(!empty($_GET['use_qzone_avatar_qqshow'])) {
|
|
||||||
$is_qzone_avatar = $is_use_qqshow = 1;
|
|
||||||
}
|
|
||||||
$userdata = array();
|
$userdata = array();
|
||||||
$userdata['avatarstatus'] = $is_qzone_avatar;
|
$userdata['avatarstatus'] = 0;
|
||||||
$userdata['conisbind'] = 1;
|
$userdata['conisbind'] = 1;
|
||||||
|
|
||||||
C::t('#qqconnect#common_member_connect')->insert(array(
|
C::t('#qqconnect#common_member_connect')->insert(array(
|
||||||
|
@ -94,9 +89,9 @@ if(empty($_POST)) {
|
||||||
'conispublishfeed' => $conispublishfeed,
|
'conispublishfeed' => $conispublishfeed,
|
||||||
'conispublisht' => $conispublisht,
|
'conispublisht' => $conispublisht,
|
||||||
'conisregister' => '1',
|
'conisregister' => '1',
|
||||||
'conisqzoneavatar' => $is_qzone_avatar,
|
'conisqzoneavatar' => '0',
|
||||||
'conisfeed' => '1',
|
'conisfeed' => '1',
|
||||||
'conisqqshow' => $is_use_qqshow,
|
'conisqqshow' => '0',
|
||||||
));
|
));
|
||||||
|
|
||||||
dsetcookie('connect_js_name', 'user_bind', 86400);
|
dsetcookie('connect_js_name', 'user_bind', 86400);
|
||||||
|
|
|
@ -131,15 +131,6 @@ function settab(m,n){
|
||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
<!--{/loop}-->
|
<!--{/loop}-->
|
||||||
|
|
||||||
<!--{if $isconnect}-->
|
|
||||||
<li>
|
|
||||||
<label><strong>{lang qqconnect:connect_register_avatar}:</strong></label>
|
|
||||||
<input type="checkbox" name="use_qzone_avatar" id="use_qzone_avatar" class="pc" value="1" checked="checked" tabindex="1" /> {lang qqconnect:connect_register_use_qzone_avatar}
|
|
||||||
<input type="checkbox" name="use_qqshow" id="use_qqshow" class="pc" value="1" checked="checked" tabindex="1" /> {lang qqconnect:connect_register_use_qqshow}
|
|
||||||
</li>
|
|
||||||
<!--{/if}-->
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<!--{if $seccodecheck || $secqaacheck}-->
|
<!--{if $seccodecheck || $secqaacheck}-->
|
||||||
{eval $sechash = random(8);}
|
{eval $sechash = random(8);}
|
||||||
|
|
|
@ -129,17 +129,7 @@ function settab(m,n){
|
||||||
$htmls[$field['fieldid']]
|
$htmls[$field['fieldid']]
|
||||||
</li>
|
</li>
|
||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
<!--{/loop}-->
|
<!--{/loop}-->
|
||||||
|
|
||||||
<!--{if $isconnect}-->
|
|
||||||
<li>
|
|
||||||
<label><strong>{lang qqconnect:connect_register_avatar}:</strong></label>
|
|
||||||
<input type="checkbox" name="use_qzone_avatar" id="use_qzone_avatar" class="pc" value="1" checked="checked" tabindex="1" /> {lang qqconnect:connect_register_use_qzone_avatar}
|
|
||||||
<input type="checkbox" name="use_qqshow" id="use_qqshow" class="pc" value="1" checked="checked" tabindex="1" /> {lang qqconnect:connect_register_use_qqshow}
|
|
||||||
</li>
|
|
||||||
<!--{/if}-->
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<!--{if $seccodecheck || $secqaacheck}-->
|
<!--{if $seccodecheck || $secqaacheck}-->
|
||||||
{eval $sechash = random(8);}
|
{eval $sechash = random(8);}
|
||||||
|
|
|
@ -36,7 +36,7 @@ if($op == 'init') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$callback = $_G['connect']['callback_url'] . '&referer=' . urlencode($_GET['referer']) . (!empty($_GET['isqqshow']) ? '&isqqshow=yes' : '');
|
$callback = $_G['connect']['callback_url'] . '&referer=' . urlencode($_GET['referer']);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
dsetcookie('con_request_uri', $callback);
|
dsetcookie('con_request_uri', $callback);
|
||||||
|
@ -141,7 +141,7 @@ if($op == 'init') {
|
||||||
showmessage('qqconnect:connect_register_bind_uin_already', $referer, array('username' => $_G['member']['username']));
|
showmessage('qqconnect:connect_register_bind_uin_already', $referer, array('username' => $_G['member']['username']));
|
||||||
}
|
}
|
||||||
|
|
||||||
$isqqshow = !empty($_GET['isqqshow']) ? 1 : 0;
|
$isqqshow = 0;
|
||||||
|
|
||||||
$current_connect_member = C::t('#qqconnect#common_member_connect')->fetch($_G['uid']);
|
$current_connect_member = C::t('#qqconnect#common_member_connect')->fetch($_G['uid']);
|
||||||
if($_G['member']['conisbind'] && $current_connect_member['conopenid']) {
|
if($_G['member']['conisbind'] && $current_connect_member['conopenid']) {
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* [Discuz! X] (C)2001-2099 Comsenz Inc.
|
|
||||||
* This is NOT a freeware, use is subject to license terms
|
|
||||||
*
|
|
||||||
* $Id: qqshow.inc.php 29265 2012-03-31 06:03:26Z yexinhao $
|
|
||||||
*/
|
|
||||||
|
|
||||||
if(!defined('IN_DISCUZ')) {
|
|
||||||
exit('Access Denied');
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!$_G['uid']) {
|
|
||||||
showmessage('not_loggedin', NULL, array(), array('login' => 1));
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once DISCUZ_ROOT.'/source/plugin/qqconnect/lib/Connect.php';
|
|
||||||
$connectService = new Cloud_Service_Connect();
|
|
||||||
$connectService->connectMergeMember();
|
|
||||||
|
|
||||||
if($_G['member']['conisbind']) {
|
|
||||||
$qqshow = '<img src="http://open.show.qq.com/cgi-bin/qs_open_snapshot?appid='.$_G['setting']['connectappid'].'&openid='.$_G['member']['conopenid'].'" />';
|
|
||||||
if(submitcheck('connectsubmit')) {
|
|
||||||
C::t('#qqconnect#common_member_connect')->update($_G['uid'], array('conisqqshow' => $_GET['do'] == 'open' ? 1 : 0));
|
|
||||||
$message = $_GET['do'] == 'open' ? lang('plugin/qqconnect', 'connect_qqshow_open') : lang('plugin/qqconnect', 'connect_qqshow_close');
|
|
||||||
include template('common/header_ajax');
|
|
||||||
echo '<script type="text/javascript">showDialog(\''.$message.'\', \'right\', null, function(){location.href=\'home.php?mod=spacecp&ac=plugin&id=qqconnect:qqshow\'}, 0, null, \'\', \'\', \'\', 0, 3);</script>';
|
|
||||||
include template('common/footer_ajax');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$_G['connect']['loginbind_url'] = $_G['siteurl'].'connect.php?mod=login&op=init&type=loginbind&referer='.urlencode($_G['connect']['referer'] ? $_G['connect']['referer'] : 'index.php');
|
|
||||||
}
|
|
|
@ -111,18 +111,6 @@ $connect_app_id = $_G['qc']['connect_app_id'];
|
||||||
$connect_openid = $_G['qc']['connect_openid'];
|
$connect_openid = $_G['qc']['connect_openid'];
|
||||||
}
|
}
|
||||||
<!--{block return}-->
|
<!--{block return}-->
|
||||||
<!--{if $connect_app_id && $connect_openid}-->
|
|
||||||
<div class="rfm">
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<td>
|
|
||||||
<label for="use_qzone_avatar_qqshow"><input type="checkbox" name="use_qzone_avatar_qqshow" id="use_qzone_avatar_qqshow" class="pc" value="1" checked="checked" tabindex="1" />{lang qqconnect:connect_register_use_qzone_avatar_qqshow}</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<!--{/if}-->
|
|
||||||
<input type="hidden" id="auth_hash" name="auth_hash" value="{$_G['qc']['connect_auth_hash']}" />
|
<input type="hidden" id="auth_hash" name="auth_hash" value="{$_G['qc']['connect_auth_hash']}" />
|
||||||
<input type="hidden" id="is_notify" name="is_notify" value="{$_G['qc']['connect_is_notify']}" />
|
<input type="hidden" id="is_notify" name="is_notify" value="{$_G['qc']['connect_is_notify']}" />
|
||||||
<input type="hidden" id="is_feed" name="is_feed" value="{$_G['qc']['connect_is_feed']}" />
|
<input type="hidden" id="is_feed" name="is_feed" value="{$_G['qc']['connect_is_feed']}" />
|
||||||
|
@ -145,8 +133,7 @@ $connect_tab_2 = $_GET['ac'] == 'bind' ? ' class="a"' : '';
|
||||||
<!--{block js2}-->
|
<!--{block js2}-->
|
||||||
<!--{if $_GET['ac'] == 'bind' || $_G['setting']['regconnect']}-->
|
<!--{if $_GET['ac'] == 'bind' || $_G['setting']['regconnect']}-->
|
||||||
<div id="loggingbox" class="loggingbox">
|
<div id="loggingbox" class="loggingbox">
|
||||||
<div class="loging_tit cl">
|
<div class="loging_tit cl">
|
||||||
<div class="z avt" style="display:block;"><img src="{$_G[connect][avatar_url]}/$connect_app_id/$connect_openid" width="48" height="48" /></div>
|
|
||||||
<div class="z">
|
<div class="z">
|
||||||
<p class="welcome mbn cl" style="clear:both; width:100%; "><strong>Hi</strong>,<strong>$_G['member']['username']</strong>, <span class="xg2">{lang connect_member_login_tip}</span></p>
|
<p class="welcome mbn cl" style="clear:both; width:100%; "><strong>Hi</strong>,<strong>$_G['member']['username']</strong>, <span class="xg2">{lang connect_member_login_tip}</span></p>
|
||||||
<ul class="tb cl z">
|
<ul class="tb cl z">
|
||||||
|
@ -171,7 +158,6 @@ $js2 = str_replace(array("'", "\r", "\n"), array("\'", '', ''), $js2);
|
||||||
<input type="hidden" id="is_notify" name="is_notify" value="{$_G['qc']['connect_is_notify']}" />
|
<input type="hidden" id="is_notify" name="is_notify" value="{$_G['qc']['connect_is_notify']}" />
|
||||||
<input type="hidden" id="is_feed" name="is_feed" value="{$_G['qc']['connect_is_feed']}" />
|
<input type="hidden" id="is_feed" name="is_feed" value="{$_G['qc']['connect_is_feed']}" />
|
||||||
<!--{if $_G['qc']['uinlimit']}-->
|
<!--{if $_G['qc']['uinlimit']}-->
|
||||||
<!--<div class="bm xi1 xw1"><div class="bm_c"><img src="{IMGDIR}/connect_qq.gif" alt="QQ" class="vm" /> {lang qqconnect:connect_uin_limit}</div></div>-->
|
|
||||||
<div class="rfm">
|
<div class="rfm">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -238,18 +224,7 @@ $js2 = str_replace(array("'", "\r", "\n"), array("\'", '', ''), $js2);
|
||||||
<td><input type="text" name="answer" id="loginanswer_$loginhash" autocomplete="off" size="36" class="txt" tabindex="1" /></td>
|
<td><input type="text" name="answer" id="loginanswer_$loginhash" autocomplete="off" size="36" class="txt" tabindex="1" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rfm">
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<td>
|
|
||||||
<p><label for="use_qqshow_bind"><input type="checkbox" name="use_qqshow" id="use_qqshow_bind" class="pc" value="1" checked="checked" tabindex="1" /> {lang qqconnect:connect_register_use_qqshow}</label></p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="rfm mbw bw0">
|
<div class="rfm mbw bw0">
|
||||||
<table>
|
<table>
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
<div class="mtw bm2 cl">
|
|
||||||
<!--{if $_G['member']['conisbind']}-->
|
|
||||||
<div class="bm2_b bw0 hm" style="padding-top: 10px;">
|
|
||||||
$qqshow
|
|
||||||
|
|
||||||
<form action="home.php?mod=spacecp&ac=plugin&id=qqconnect:qqshow&connectsubmit=yes" id="qqshowform" method="post" autocomplete="off" onsubmit="ajaxpost('qqshowform', 'return_qqshowform', 'return_qqshowform');return false;">
|
|
||||||
<input type="hidden" name="formhash" value="{FORMHASH}">
|
|
||||||
<div class="mtm">
|
|
||||||
<!--{if !$_G['member']['conisqqshow']}-->
|
|
||||||
<input type="hidden" name="do" value="open" />
|
|
||||||
<button type="submit" name="connectsubmit" value="yes" class="pn pnc"><strong>{lang qqconnect:connect_config_qqshow_btn_open}</strong></button>
|
|
||||||
<!--{else}-->
|
|
||||||
<input type="hidden" name="do" value="close" />
|
|
||||||
<button type="submit" name="connectsubmit" value="yes" class="pn pnc"><strong>{lang qqconnect:connect_config_qqshow_btn_close}</strong></button>
|
|
||||||
<p class="mtm">
|
|
||||||
<a href="http://show.qq.com/?from=discuz" target="_blank" class="xi2">{lang qqconnect:connect_config_qqshow_btn_tips}</a>
|
|
||||||
</p>
|
|
||||||
<!--{/if}-->
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<span id="return_qqshowform"></span>
|
|
||||||
</div>
|
|
||||||
<!--{else}-->
|
|
||||||
<div class="bm2_b bw0 hm" style="padding-top: 40px;">
|
|
||||||
<a href="{$_G['connect']['loginbind_url']}&isqqshow=yes"><img src="{IMGDIR}/qq_bind.gif" /></a>
|
|
||||||
<p class="mtn xg1">{lang qqconnect:connect_config_bind}</p>
|
|
||||||
</div>
|
|
||||||
<!--{/if}-->
|
|
||||||
<div class="bm2_b bm2_b_y bw0">
|
|
||||||
<dl class="xld">
|
|
||||||
<h2 class="xi1 xs2">{lang qqconnect:connect_config_qqshow_title}</h2>
|
|
||||||
<dt></dt>
|
|
||||||
<dd class="xg1">{lang qqconnect:connect_config_qqshow_desc1}</dd>
|
|
||||||
<dt><!--{if !$_G['member']['conisqqshow']}-->{lang qqconnect:connect_config_qqshow_desc3}<!--{/if}--></dt>
|
|
||||||
<dd class="xg1"></dd>
|
|
||||||
</dl>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -36,7 +36,7 @@ if($op == 'init') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$callback = $_G['connect']['callback_url'] . '&referer=' . urlencode($_GET['referer']) . (!empty($_GET['isqqshow']) ? '&isqqshow=yes' : '');
|
$callback = $_G['connect']['callback_url'] . '&referer=' . urlencode($_GET['referer']);
|
||||||
|
|
||||||
if(!$_G['setting']['connect']['oauth2']) {
|
if(!$_G['setting']['connect']['oauth2']) {
|
||||||
dsetcookie('con_request_token');
|
dsetcookie('con_request_token');
|
||||||
|
|
Loading…
Reference in New Issue