系统整合登陆问题求助:
登陆
错误:请检查DNT.config中Dbtype节点数据库类型是否正确,例如:SqlServer、Access、MySql
论坛放在:
http://www.1.com/bbs登陆地址:
http://www.1.com/login.aspxhttp://www.1.com下放有DNT.config<?xml version="1.0"?>
<BaseConfigInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Dbconnectstring>Data Source=210.72.225.78,2433;User ID=zuowen

assword=luyinhu;Initial Catalog=zuowen

ooling=true</Dbconnectstring>
<Tableprefix>bbs_</Tableprefix>
<Forumpath>/bbs/</Forumpath>
<Dbtype>SqlServer</Dbtype>
<Founderuid>1</Founderuid>
</BaseConfigInfo>
登陆代码:
public static bool LoginBBS(string username, string pwd)
{
int uid = Discuz.Forum.Users.CheckPassword(username, pwd, true);
if (uid == -1)
return false;
LoginLogs.DeleteLoginLog(DNTRequest.GetIP());
UserCredits.UpdateUserCredits(uid);
string pk = GeneralConfigs.GetConfig().Passwordkey;
ForumUtils.WriteUserCookie(uid, -1, pk, 0, -1);
int olid = OnlineUsers.UpdateInfo(pk, 10).Olid;
OnlineUsers.UpdateAction(olid, UserAction.Login.ActionID, 0, 10);
Users.UpdateUserLastvisit(uid, DNTRequest.GetIP());
return true;
}
等待高手出现!