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

📄 goto.asp

📁 这是一个用SQL Server和ASP开发的搜索引擎网站
💻 ASP
字号:
<%

session("lastdate") = Request.Cookies("tgdate")
session("lastid") = Request.Cookies("ID")
url = Request.QueryString("id")
Response.Cookies("ID") = url

Conn_String ="Provider=sqloledb;" & "Data Source=127.0.0.1;Initial Catalog=qiye_8;User Id=sa;Password=password;"  
	
set conn = Server.CreateObject("ADODB.Connection")
conn.open Conn_String
Set RS = conn.Execute("select * from link2 where ID =" & url)
ezeRedir = RS("URL").value


if session("lastdate") = "" then
	session("lastdate") = dateadd("d",-10,now())
End if
ezedate =  datediff("h",session("lastdate"), now())

if  session("lastid") = url  and ezedate < 6 then
else
	hit=cInt(rs("Hit"))+1
Set RS2 = conn.Execute("UPDATE link2 SET Hit = " & hit & " Where ID =" & url)
	
	End If


RS.Close
conn.Close
set conn = nothing


Response.Redirect (ezeredir)
%>

⌨️ 快捷键说明

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