📄 admin_login_check.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,"&","&")
utf8 = replace(utf8,"",""")
utf8 = replace(utf8,"<","<")
utf8 = replace(utf8,">",">")
utf8 = replace(utf8," "," ")
utf8 = replace(utf8,"$","$$")
utf8 = replace(utf8,"'","")
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 + -