可以直接拿去用了
<? = "" = -> ((-> = -> = ['login_url'['state'] = = (((), = "response_type"=>"code", "state" => , "client_id"=>['appkey'], "redirect_uri"=>( ['redirect_uri'->set( = ->combineURL( , ->(("Location:". ((-> = ->(! ['code'] = ['code' = ['authorization_url' = ['state' = "grant_type"=>"authorization_code", "client_id" => ['appkey'], "client_secret"=>['appsecret'], "code"=>['code'], "redirect_uri"=>( ['redirect_uri'] ), "state"=>->set( ->post_contents( set((( ->_param = ( =>->_param[] = post_contents((( = ->combineURL("" , -> = curl_setopt(, CURLOPT_URL, , CURLOPT_FAILONERROR, , CURLOPT_RETURNTRANSFER, , CURLOPT_SSL_VERIFYPEER, 0, CURLOPT_SSL_VERIFYHOST, 0, CURLOPT_POST, 1, CURLOPT_POSTFIELDS, = curl_exec( get_contents( =, CURLOPT_SSL_VERIFYPEER, , CURLOPT_RETURNTRANSFER, , CURLOPT_URL, = curl_exec( (( combineURL(,( =="" = "" = ."?" = ( => [] = "=" = ("&", .= ( qq_openlogin = "qq" = "appkey"=>"your appkey", "appsecret"=>"your appsecret", "redirect_uri"=>"XXXXX", "login_url" => "https://graph.qq.com/oauth2.0/authorize", "scope"=>"get_user_info,add_share,list_album,add_album,upload_pic,add_topic,add_one_blog,add_weibo,check_page_fans,add_t,add_pic_t,del_t,get_repost_list,get_info,get_other_info,get_fanslist,get_idolist,add_idol,del_idol,get_tenpay_addr", "authorization_url"=>"https://graph.qq.com/oauth2.0/token"->:: = parent:: ((, "callback") !== = (, "(" = (, ")" = (, + 1, - -1 = json_decode(((-> = (, = ->get_contents("https://graph.qq.com/oauth2.0/me?access_token=".['access_token' ((, "callback") !== = (, "(" = (, ")" = (, + 1, - -1 = json_decode(((-> = "openid"=>->openid, "access_token"=>['access_token' ['oauth_consumer_key'] = ->config['appkey'['format'] = "json" = ->combineURL("https://graph.qq.com/user/get_user_info", = ->get_contents( = json_decode( weibo_openlogin = "weibo" = "appkey"=>"your appkey", "appsecret"=>"your appsecret", "login_url" => "https://api.weibo.com/oauth2/authorize", "redirect_uri"=>"XXXXXXX", "authorization_url"=>"https://api.weibo.com/oauth2/access_token"->:: = parent:: = json_decode( taobao_openlogin = "taobao" = "appkey"=>"your appkey", "appsecret"=>"your appsecret", "redirect_uri"=>"XXXXX", "authorization_url"=>"https://oauth.taobao.com/token", "login_url"=>"https://oauth.taobao.com/authorize"->:: = parent:: = json_decode( (['openname' = ['openname']."_openlogin" = (!(['code' = ->(! "0"((["state"]) && (['state'] != ["state" "1" = ->( ?>
添加一個人人登陸
renren_openlogin = "renren" = "appid"=>"your appid", "appkey"=>"your appkey", "appsecret"=>"your secret key", "redirect_uri"=>"XXXXXX", "authorization_url"=>"https://graph.renren.com/oauth/token", "login_url"=>"https://graph.renren.com/oauth/authorize"->:: = parent:: = json_decode( ((-> = -> = ['login_url' = "response_type"=>"code", "client_id"=>['appid'], "redirect_uri"=>( ['redirect_uri'->set( = ->combineURL( , ->(("Location:".