PHP168 V6fenlei(分类系统)整合UCenter步骤
1注册页面,修改do\reg.php
复制代码 代码如下:
<?php
require(dirname(__FILE__).”/”.”global.php”);
$_GET[‘_fromurl’] && $_fromurl=$_GET[‘_fromurl’];
unset($uc_login_code);//添加uc返回值变量
if(strstr($jumpto,$webdb[www_url])){
refreshto(“$jumpto”,”恭喜你,注册成功$uc_login_code“,1);//输出同步登录UC代码
}else{
refreshto(“$webdb[www_url]“,”恭喜你,注册成功$uc_login_code“,1);//输出同步登录UC代码
2.修改inc\class.user.php
中方法//注册用户通行证邮箱密码必须信息
function register_passport($array) {
………elseif(defined(“UC_CONNECT”)){
$uid=uc_user_register($array[username], $array[password], $array[email]);
// 添加同步登录代码
if($uid&&eregi(“^dzbbs7″,$webdb[passport_type])){
3修改upload\do\api\uc.php
修改方法function synlogin($get, $post) {
{
If{
}
Else{
具体代码看源代码
}
}
下载源码
php168V6fenli_jb51
Hi, this is a comment. To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard. Commenter avatars come from Gravatar.