日期:2014-05-18 浏览次数:20985 次
string str_commtype = Request.QueryString["commtype"]; if (str_UserNum == "Guest") { str_UserNum = "匿名"; DataTable dt = sys.UserPram(); if (dt != null) { if (dt.Rows[0]["UnRegCommTF"].ToString() != "1") { Response.Write("ERR$$$系统不允许匿名评论!"); Response.End(); } } else { Response.Write("ERR$$$系统参数错误,!"); Response.End(); } } else { if (str_UserNum.ToLower() != "guest" || str_UserNum != "匿名") { if (Validate_Session()) { str_UserNum = BinhuSafety.Global.Current.UserName; SiteID = BinhuSafety.Global.Current.SiteID; } else { GlobalUserInfo info; EnumLoginState state = _UserLogin.PersonLogin(str_UserNum, str_UserPwd, out info); if (state == BinhuSafety.Model.EnumLoginState.Succeed) { BinhuSafety.Global.Current.Set(info); str_UserNum = BinhuSafety.Global.Current.UserName; SiteID = BinhuSafety.Global.Current.SiteID; } else { Response.Write("ERR$$$帐号或密码错误!"); Response.End(); } } }