登陆asp class(8)
Founderr = True
End If
Session("getcode") = ""
If username = "" Or password = "" Then
Founderr = True
errmsg = errmsg + "<br>" + "<li>请输入您的用户名或密码。<li>"
End If
If Founderr Then Exit Sub
ip = Replace(Request.ServerVariables("REMOTE_ADDR"), "'", "")
Dim Rs
Set Rs = Mesky.Execute("select * from Mesky_SiteManager where username='" & username & "'")
If Rs.EOF And Rs.BOF Then
Set Rs = Nothing
Founderr = True
errmsg = errmsg + "<br>" + "<li>您输入的用户名和密码不正确或者您不是系统管理员。<br><li>请<a href=admin_login.asp>重新输入</a>您的密码。"
Exit Sub
Else
If Trim(Rs("password")) <> password Then
Founderr = True
errmsg = errmsg + "<br>" + "<li>您输入的用户名和密码不正确或者您不是系统管理员。<br><li>请<a href=admin_login.asp>重新输入</a>您的密码。"
Set Rs = Nothing
Exit Sub
Else
Session("adminName") = Rs("UserName")
内容版权声明:除非注明,否则皆为本站原创文章。