📄 conn.asp
字号:
<%
dim conn
dim dbpath
set conn=server.createobject("adodb.connection")
DBPath = Server.MapPath("../data/sn52#com.asa")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
function decrypt(dcode)
dim texts
dim i
for i=1 to len(dcode)
texts=texts & chr(asc(mid(dcode,i,2))-i)
next
decrypt=texts
end function
function encrypt(ecode)
Dim texts
dim i
for i=1 to len(ecode)
texts=texts & chr(asc(mid(ecode,i,2))+i)
next
encrypt = texts
end function
sql="select * from config"
set Rs = Server.CreateObject("ADODB.Recordset")
Rs.open sql,conn,1,1
webtitle = Rs("webtitle")
weburl = Rs("weburl")
weblogo = Rs("weblogo")
copyright = Rs("copyright")
Rs.close
set Rs = nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -