zoukankan      html  css  js  c++  java
  • 网站计数器 kiddy

    View Code
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using Com.Netmarch.BLL;
    using Com.Netmarch.Model;
    
    /// <summary>
    /// 网站计数器
    /// </summary>
    public class VisitCounter
    {
        [Ajax.AjaxMethod]
        public static void UpdateVisitRecord(int tongji_Id, string tongji_ReferUrl, string tongji_ReferEngine, string tongji_ClientScreen, string tongji_ClientSystem, string tongji_ClientBrowser)
        {
            VisitRecord nmm_VisitRecord = new VisitRecord();
            VisitRecordInfo oVisitRecordInfo = nmm_VisitRecord.GetVisitRecordInfoByID(tongji_Id);
            if (oVisitRecordInfo != null)
            {
                //只允许更新两分钟内的记录
                if (oVisitRecordInfo.VisitTime.AddMinutes(2) >= DateTime.Now && oVisitRecordInfo.VisitIp == HttpContext.Current.Request.UserHostAddress)
                {
                    oVisitRecordInfo.ReferUrl = tongji_ReferUrl;
                    oVisitRecordInfo.ReferEngine = tongji_ReferEngine;
                    oVisitRecordInfo.ClientScreen = tongji_ClientScreen;
                    oVisitRecordInfo.ClientSystem = tongji_ClientSystem;
                    oVisitRecordInfo.ClientBrowser = tongji_ClientBrowser;
                    nmm_VisitRecord.UpdateVisitRecordByID(oVisitRecordInfo);
                }
            }
        }
    }
  • 相关阅读:
    卡尔曼滤波器的简单推导
    data_quick 进度
    面试
    MapServer+TileCache+Apache+Python24 构建KS数据服务器
    PYTHONPATH 可以跨版本 方便使用 (本文为windows方法)转~
    20130923
    20130909
    error C2504 类的多层继承 头文件包含
    int long 等基础类型在不同平台的大小
    mysql python image 图像存储读取
  • 原文地址:https://www.cnblogs.com/kongdf/p/2566464.html
Copyright © 2011-2022 走看看