conn.asp

来自「网上流量分析系统」· ASP 代码 · 共 56 行

ASP
56
字号

<%sql="select * from home"
set rs=conn.execute(sql)
userurl=rs("homeurl")
usertitle=rs("hometitle")
homeurl=rs("homeurl")                            '站点地址
hometitle=rs("hometitle")                                          '站点名称
homeemail=rs("homeemail")                                '站长邮箱
homebanzhu=rs("homebanzhu") 
userbanzhu=rs("homebanzhu")                                               '站长名称 
userpassword=rs("homepassword")  
homepassword=rs("homepassword")                                            '管理密码
homecontent=rs("homecontent")                                '站点介绍
cookies_time=rs("cookies_time")                                                    'cookie设置时间(天),默认为100天
maxcount=rs("maxcount")
scount=rs("scount")
sopen=rs("sopen")
t_page=rs("t_page")                                                              '有翻页时每页显示记录条数
stime=rs("stime")                                                                     '每台电脑间隔多少时间才记数,单位为秒
 onlinetime=rs("onlinetime")     '统计几分钟内在线人数的时间 
 set rs=nothing
 if request("view")<>"" then
view=request("view")
sql="select startcount,vtitle,vbanzhu,vurl,vemail,vcontent from vcount where vuser='"&view&"'"
set rs=conn.execute(sql)
if not rs.eof then
homeurl=rs("vurl")                            '站点地址
hometitle=rs("vtitle")                                          '站点名称
homeemail=rs("vemail")                                '站长邮箱
homebanzhu=rs("vbanzhu")                                              '站长名称                                             '管理密码
homecontent=rs("vcontent") 
startcount=rs("startcount")
else
errornum=1
errmsg="参数错误,不存在此用户或者用户已经被删除,请点击上方[免费申请]重新申请"
end if
set rs=nothing
else
errornum=1
errmsg="参数错误,请输入正确的参数,如果你不是本统计用户,请点击上方[免费申请]重新申请"
end if
feiyue="tongji"'用户session变量
feiyuetongji="feiyue"'管理员cookies变量
 background="background=images/dw.gif"
 tdc2="#6699CC"'表格线条颜色
 tdc="#333333"'文字色1
 tdc1="#ffffff"'文字色2
 tdc4="#6699CC"'文字色3
tColor2="#EFF1F3"'表格背景色
tColor1="#f7f7f7"'表格背景2
hColor1= "background=images/b1.gif"
hColor2= "background=images/b2.gif"
tdc3="98%"   '表格宽度  
link="#1C5F82"'超连接颜色
link1="#CC5533"    '超连接颜色1                                                                                           
%>

⌨️ 快捷键说明

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