fetch($conopenid); if(!$connect_guest) { dsetcookie('con_auth_hash'); connect_error_output('qqconnect:connect_login_first'); } $conuin = $connect_guest['conuin']; $conuinsecret = $connect_guest['conuinsecret']; if($conuin && $conuinsecret && $conopenid) { try { $connectOAuthClient = Cloud::loadClass('Service_Client_ConnectOAuth'); $connect_user_info = $connectOAuthClient->connectGetUserInfo($conopenid, $conuin, $conuinsecret); } catch(Exception $e) { connect_error_output(); } if ($connect_user_info['nickname']) { $qq_nick = $connect_user_info['nickname']; $connect_nickname = $connectService->connectFilterUsername($qq_nick); } loaducenter(); $ucresult = uc_user_checkname($connect_nickname); $first_available_username = ''; if($ucresult >= 0) { $first_available_username = $connect_nickname; } echo $first_available_username; } } include template('common/footer'); function connect_error_output($error = '') { include template('common/footer'); exit; }