stat.asp
Upload User: maming258
Upload Date: 2022-01-28
Package Size: 283k
Code Size: 1k
Development Platform:

HTML/CSS

  1. <!--#include file="inc/conn.asp" -->
  2. <%
  3. '页面来路
  4. dim vcome
  5. vcome=Request("referer")
  6. if vcome="" or instr(1,vcome,"localhost")>0 then
  7. vcome="直接输入访问"
  8. end if
  9. if instr(1,lcase(vcome),ownsitekey)>0 then
  10. vcome=ownsiteurl
  11. end if
  12. if len(vcome)>240 then
  13. vcome=left(vcome,240)
  14. end if
  15. vcome1=vcome
  16. vcome2=vcome
  17. vcome=replace(vcome,"http://","")
  18. if instr(1,vcome,"/")>0 then   
  19. vcome=split(vcome,"/")
  20. vcome1=vcome(0)
  21. end if
  22. sql="select vcome from comes where vcome='"&vcome1&"'"
  23. set rs=conn.execute(sql)
  24. if rs.eof and rs.bof then
  25. sql="insert into comes(vcome,vlast) values ('"&vcome1&"','"&vcome2&"')"
  26. else
  27. sql="update comes set n=n+1,vlast='"&vcome2&"' where vcome='"&vcome1&"'"
  28. end if
  29. conn.execute(sql)
  30. rs.close
  31. set rs=nothing
  32. Call closedb
  33. %>