1、discuzX1.5免激活修改步驟:php
1. 註冊完成插入數據庫後,進行同步登陸ajax
修改文件upload\source\module\member\member_register.php數據庫
$_G['setting']['lastmember'] = $username;api
save_syscache(‘setting’, $_G['setting']);post
$_G['setting']['regverify'] = $regverify;ui
$ucsynlogin = $_G['setting']['allowsynlogin'] ? uc_user_synlogin($_G['uid']) : 」; //進行UC同步登陸,註冊免激活spa
if(!empty($_G['inajax'])) {htm
$_G['setting']['msgforward'] = unserialize($_G['setting']['msgforward']);get
$mrefreshtime = intval($_G['setting']['msgforward']['refreshtime']) * 1000;同步
if(!empty($_G['inajax'])) {
include template(‘member/register’);
} else {
showmessage(‘profile_email_verify’, 」, $param, array(‘extrajs’ => $ucsynlogin)); //輸出同步登陸的UC代碼
}
break;
case 2:
showmessage(‘register_manual_verify’, ‘home.php?mod=space&do=home’, $param, array(‘extrajs’ => $ucsynlogin)); //輸出同步登陸的UC代碼
break;
default:
showmessage(‘register_succeed’, dreferer(), $param, array(‘extrajs’ => $ucsynlogin)); ////輸出同步登陸的UC代碼
2. 修改\upload\template\default\member \register.htm
<!–{template common/header}–>
<!–{if !empty($message)}–>
$ucsynlogin //添加輸出UC同步登陸代碼
3. 修改upload\api\uc.php
修改方法function synlogin($get, $post) {
{
If{
}
Else{
添加免激活代碼,源代碼看文件
}
}