-
calendar
calender php source script
- 2013-10-17 21:48:02下载
- 积分:1
-
微信OAuth2.0网页授权接口PHP版用法示例
微信OAuth2.0网页授权接口PHP版用法示例,测试前请先申请一个公众号供测试,微信提供测试用的公众账号,此帐号只能添加100个关注者且只有__已关注__的用户才可以进行OAuth2.0受权。
1.开通后将```appID```、```appsecret```、```Token```填入```index/Conf/config.php```中。然后将接口配置信息中的URL改至php服务器,将地址定位到```index.php/Index/wechatInitAuth```进行微信API认证,直到提示"配置成功"。
2.点击‘体验接口权限表--OAuth2.0网页授权(仅关注者才能授权)’中的修改,将授权回调页面域名改为php服务器地址。直到出现‘通过安全监测’。
配置完微信测试号后,在微信中打开```http://项目目录/index.php```(例:```http://121.40.135.90/weixin_auth/index.php```)将会在页面中打印出session中的受权数据,表示测试受权成功。
在AuthAction中的初始化函数```_initialize```中进行了OAuth2.0受权,所有基于AuthAction的控制器都将进行受权过程(除了微信API认证过程wechatInitAuth)。
对于同一用户在受权过期时间内多次打开此控制器的页面,将不会进行多次受权,因为其受权信息记录在session中,以免重复受权,减慢访问速度。受权过期时间在```index/Conf/config.php```中```wx_webauth_expire```设置,建议不要大于微信的过期时间7200秒。注意:
* 微信OAuth2.0受权分为snsapi_base (不弹出授权页面,直接跳转,只能获取用户openid),snsapi_userinfo (弹出授权页面,可通过openid拿到昵称、性别、所在地。并且,即使在未关注的情况下,只要用户授权,也能获取其信息),AuthAction.class.php默认为snsapi_base,而且session中只记录了snsapi_base中的基础数据,如需要snsapi_userinfo请自行修改。
* 具体的实现方法见代码注释。
- 2022-03-22 02:20:29下载
- 积分:1
-
图书馆管理系统
图书馆管理系统,能提供所有基本的图书馆管理功能。
- 2022-02-03 12:06:30下载
- 积分:1
-
faisunsql_v40
MYSQL全系列自导入数据库备份程序 v1.0,php编程学习源码,web网页制作参考资料。(A full range of MYSQL into the database since the backup program v1.0, PHP learning programming source code, web Webpage production of reference materials.)
- 2013-12-24 12:27:15下载
- 积分:1
-
详细讲述ajax原理,其中包含几个例子,适合建站高手进阶
详细讲述ajax原理,其中包含几个例子,适合建站高手进阶-Ajax principle described in detail, which includes a few examples, suitable for a master建站Advanced
- 2023-04-18 17:35:03下载
- 积分:1
-
医院预约挂号系统
前台可以实现用户的网上挂号预约,后台可以查看所有的预约记录和更改预约信息
后台账号:admin 密码:123456
- 2022-07-03 23:11:21下载
- 积分:1
-
PHP_Programming_for_Windows
PHP Programming for Windows the authoritative guide to developing web applications with PHP on the Microsoft Windows platform. It is the first book of its kind to offer a Windows centric stance on PHP with the intermediate to advanced audience in mind. This book covers PHP from the ground up and benefits both those new to PHP to PHP experts. The book covers new ground like using PHP with Windows databases such as Access and SQL Server plus other topics such as the Microsoft SOAP SDK and using PHP with the Active Directory.
- 2009-11-08 06:40:38下载
- 积分:1
-
PHP在线银行拍卖项目
项目
- 2022-09-15 13:00:03下载
- 积分:1
-
用数据库登录模块实现的登录模块通用模块
用asp编写的登录注册通用模块 数据库登录模块等 -Login register prepared with the asp database login module Universal Module
- 2022-10-21 22:20:03下载
- 积分:1
-
photogallery
Photogallery is a PHP full site to create and manage a photogallery site. It works without any and let you use drag/drop function.
All the site is in responsive deisgn.
- 2015-05-25 22:33:22下载
- 积分:1