欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

php168 v6分類信息整合ucenter同步登錄,同步退出解決方案

  發(fā)布時間:2012-08-31 17:14:14   作者:佚名   我要評論
UCenter作為整合用戶的這樣一個開源插件,對于PHP開發(fā)的,甚至其它開發(fā)語言如.net,java.asp等開發(fā)人員解決多個項(xiàng)目整合到一起,用戶進(jìn)行同步登錄,同步退出等,同步消息等都是非常有用的。下面分享下以前整合項(xiàng)目中的一些經(jīng)驗(yàn)
PHP168 V6fenlei(分類系統(tǒng))整合UCenter步驟
1注冊頁面,修改do\reg.php

復(fù)制代碼
代碼如下:

<?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

相關(guān)文章

最新評論