惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
S
SegmentFault 最新的问题
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Proofpoint News Feed
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
B
Blog
N
News and Events Feed by Topic
N
News | PayPal Newsroom
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
C
Cybersecurity and Infrastructure Security Agency CISA
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
U
Unit 42
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
H
Help Net Security
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 热门话题
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
H
Heimdal Security Blog
博客园 - 聂微东
S
Securelist
大猫的无限游戏
大猫的无限游戏
Cloudbric
Cloudbric
Cisco Talos Blog
Cisco Talos Blog

龙辉's Blog - php

贵州师范大学抢课脚本-正方教务系统V8.0.0 - 龙辉's Blog 简单实现每日健康自动打卡 - 龙辉's Blog php获取客户端ip以及ip伪造 - 龙辉's Blog XSS经典漏洞复现-手撕某非法获取个人信息网站 - 龙辉's Blog php7.2中each()函数被弃用的替换办法 - 龙辉's Blog 云签网站问题反馈贴 - 龙辉's Blog 贴吧关注类-php - 龙辉's Blog ezsql-超级好用的操作类 - 龙辉's Blog php对称加密 - 龙辉's Blog
给网站接入QQ登录,无需申请QQ互联 - 龙辉's Blog
博主: Tinker-站长 · 2019-02-09 · via 龙辉's Blog - php
  • 发布时间:
  • 10275 次浏览
  • 4 条评论
  • 138字数
  • 分类: php
  1. 首页
  2. 正文  
  3. 分享到:

给网站加第三方登录能够解决网站繁琐的注册,能给网站带来流量,提高用户体验。

你没看错,确实不需要申请QQ互联,为哈呢?因为我帮你申请了......

申请QQ互联网站需要备案,并且需要很多天的验证(反正我是有几天)。

此教程适合开发者~

<?php
header("Content-type: text/html; charset=utf-8");
//本demo只是简单的介绍变量,具体操作根据自己的用途进行编写

$qqkey = $_GET['qqkey'];  //通过这个判断用户,每个用户登录生成唯一的固定值,是腾讯通过QQ号码加密的字符串。

$qqname = $_GET['nickname'];//base64加密的QQ昵称

define('CALLBACK','http://eirds.cn/qqlogin.php'); //回调地址,如http://www.baidu.com/qqlogin.php,接收get参数并处理

if(isset($qqkey) && isset($qqname)){
    //如果获取到这两个变量,则可以存入数据库或开启seesion
    /*
如 session_start();
$_SESSION['user'] = base64_decode($qqname); 
echo $_SESSION['user'];  
    或setcookie...然后存入数据库进行匹配。
    */
    //反正这两个变量你看着办~
    
}else{

        header('location:https://blog.eirds.cn/qqlogin/oauth/?callback='.CALLBACK);
}



版权属于:龙辉博客

本文链接:https://blog.eirds.cn/272.html

如果没有特别声明则为本博原创。转载时须注明出处及本声明!

赞赏作者

如果觉得我的文章对你有用,请随意赞赏

给网站接入QQ登录,无需申请QQ互联