示例#1
0
        public static bool StatVisitorAdd()
        {
            HttpRequest     request         = HttpContext.Current.Request;
            StatVisitorInfo statVisitorInfo = new StatVisitorInfo();

            statVisitorInfo.VTime    = DateTime.Now;
            statVisitorInfo.IP       = PEContext.Current.UserHostAddress;
            statVisitorInfo.Referer  = request.ServerVariables["HTTP_REFERER"];
            statVisitorInfo.Browser  = request.Browser.Browser + request.Browser.Version;
            statVisitorInfo.System   = string.IsNullOrEmpty(request.Browser.Platform) ? "其它" : request.Browser.Platform;
            statVisitorInfo.Timezone = 8;
            statVisitorInfo.Screen   = "";
            statVisitorInfo.Address  = IPScanner.IPLocation(PEContext.Current.UserHostAddress);
            statVisitorInfo.Color    = "";
            return(dal.StatVisitorAdd(statVisitorInfo));
        }
示例#2
0
 public static void StatUpdate(StatUpdateInfo updateInfo)
 {
     dal.StatUpdate(updateInfo, IPScanner.IPLocation(updateInfo.IP));
 }