⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_login_check.asp

📁 非常好的源码 非常好的源码 非常好的源码
💻 ASP
字号:
<!--#include file=conn.asp-->
<!--#include file=md5.asp-->
<%
Dim admin,password,sql
admin=utf8(session("adminname"))
password=utf8(Session("adminpassword"))

	Set Rs = Server.CreateObject("Adodb.Recordset")
	Sql = "SELECT * FROM admin WHERE username='" &admin&"' and password='" &password &"'"
	Rs.Open Sql,conn,1,1
	if not (rs.bof and rs.eof)  then 
	session("flag")=rs("flag")
	session("adminname")=rs("username")
	Session("adminpassword")=rs("password")
	else
	  Response.write "<script>top.location.href='admin_login.asp';</script>"
	  Response.End
	end if

function utf8(str)
if str="" or isnull(str) then
	tohtm=str
	exit function
end if
utf8 = replace(str,"&","&amp;")
utf8 = replace(utf8,"","&quot;")
utf8 = replace(utf8,"<","&lt;")
utf8 = replace(utf8,">","&gt;")
utf8 = replace(utf8," ","&nbsp;")
utf8 = replace(utf8,"$","$$")
utf8 = replace(utf8,"&#39;","")
utf8 = replace(utf8,vbnewline,"<br/>")
utf8 = replace(utf8,chr(34),"")
utf8 = replace(utf8,chr(39),"")
end function%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -