📄 mfk_class.asp
字号:
<%
class Angelic
Private formstr
public sub openmdb
set conn=Server.CreateObject("ADODB.Connection")
conn.open "Provider = Microsoft.Jet.OLEDB.4.0; Data Source ="& Server.MapPath("mdb/links.mdb")
end sub
public function checkstr(str)
str=trim(str)
if str="" and isnull(str) then exit function
str=replace(str,"'","")
checkstr=str
end function
public sub closeconn
conn.close
set conn=nothing
end sub
public function closers(rs)
if isobject(rs) then exit function
rs.close
set rs=nothing
end function
public sub writecopy()
response.write("<a href=""http://www.zjjnet.com"" target=_blank>Mfkiqpl友情链接程序</a>")
end sub
public function getstr(textfieldname)
formstr=request.form(textfieldname)
getstr=formstr
end function
public function alert(msg)
response.write("<script>alert('"&msg&"\r请返回重新来!');window.history.back(1);</script>")
end function
public sub checkadmin()
if session("admin")<>"mfkiqpl" and Session("admindiary")="" then
response.write ("<script>alert('你不是管理员,或你的管理信息丢失!\r\r请重新登录!');window.location='index.asp';</script>")
end if
end sub
public sub clearsession()
session.Abandon
end sub
end class
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -