日期:2014-05-17 浏览次数:20816 次
var pcstj; pcstj='&atj='+escape(document.referrer)+'&btj='+escape(document.location)+'&ctj='+escape(navigator.userAgent'&dtj='+screen.colorDepth+'&etj='+screen.width+'*'+screen.height+'&ftj='+navigator.systemLanguage; //alert(pcstj); document.write('<img scr="images/pics.gif" border=1 width=2 heigth=2>'); document.write('<img src="goStat.jsp?id=1'+pcstj+'" border=0 width=0 height=0 />');
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.util.*" pageEncoding="UTF-8"%> <%@ page import = "gzbd.picopcs.*" %> <% Connection con = DBStat.getConn() ; Statement stmt=con.createStatement(); ResultSet rs =null; String id=request.getParameter("id"); String Ip=request.getRemoteAddr(); String referrer = request.getParameter("atj"); if (referrer==null) referrer="直接输入"; else if (referrer.equals("")) referrer="直接输入"; String location=request.getParameter("btj"); String UserAgent = request.getParameter("ctj"); String ScreenColor= request.getParameter("dtj"); String ScreenSize = request.getParameter("etj"); String ScreenLanguage = request.getParameter("ftj"); String sql="insert into pcs_data(pcs_VisitIP, pcs_VisitFPage, pcs_VisitPage, pcs_VisitScreenColor,pcs_VisitScreenSize, pcs_VisitLanguage"+ ") values('"+Ip+"','"+referrer+"','"+location"','"+ScreenColor+ "','"+ScreenSize"','"+ScreenLanguage+"')'"; stmt.executeUpdate(sql); DBStat.closeResource(stmt, rs, con); %>