if ((!$auth_pear && !$auth_pam && !$auth_cas && !$auth_shib) || ((($auth_pear && $skip_admin) || ($auth_shib && $shib_skip_admin) || ($auth_pam && $pam_skip_admin) || ($auth_cas && $cas_skip_admin)) && $user == "admin") || ($auth_pear && $prefs['auth_create_user_tiki'] == 'y' && $userTiki)) {
include '/usr/local/www/apache22/data/tikiwiki/config.inc.php';
include '/usr/local/www/apache22/data/tikiwiki/client/client.php';
//由于TikiWiki为utf8编码,因此转换为GBK后判断,主要是中文ID
list($uid, $username1, $password, $email) = uc_user_login(iconv("UTF-8", "GBK", $user), $pass);
//echo $uid;
/*-------------------------------------------------*/
if($uid>0){
echo uc_user_synlogin($uid);//同步登陆
if ($userTiki){return array($this->update_lastlogin($user), $user, $result);}
if(!$userTikiPresent){
$result = $this->add_user($user, $pass, '');
return array($this->update_lastlogin($user), $user, $result);
}
else{
return array($this->update_lastlogin($user), $user, $result);
}
}
else
return array(false, $user, $result);
}
阅读(2671) | 评论(2) | 转发(0) |