commit 1b02f4d41737649469e4e44bfb812ded77aa819b Author: editor <@51Aspx.com> Date: Tue Jun 25 16:39:08 2024 +0800 初始化 diff --git a/51Aspx源码必读.txt b/51Aspx源码必读.txt new file mode 100644 index 0000000..2e5c529 --- /dev/null +++ b/51Aspx源码必读.txt @@ -0,0 +1,42 @@ +飞翔多用户访问统计系统源码 + +一、源码描述 +环境:VS2022 sql2019 + +二、功能介绍 +一个简单的访问统计系统,有概况统计、分时统计、来源统计、机器配置、IP统计等模块 +可以为每个用户设定不同的计数器,用户只能看到自己的访问数据 +page_1.aspx和page_2.aspx分别为访问测试界面,其中的访问代码是js脚本方式,可以对应的修改其详细地址 +可以做为开发访问计数器的借鉴 +该程序采用Vs2005进行开发,菜单采用了TreeView控件,现已升级至VS2022 +默认管理员账号密码均为51aspx(请不要随意更改,否则可能会调适出错) +    +三、注意事项 +1、在项目web.config修改数据库连接字符串,附加数据库。 +2、管理员账号与密码:51aspx 51aspx 。 +3、ctrl+F5运行即可。 + + + + + +作者: zhengyd + +如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/FeiXiangCount +------------------------------------------------------------------------------------------------ + + 源码服务专家 + 官网: https://www.51aspx.com + 讨论圈: https://club.51aspx.com/ + +平台声明: + +1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用; +2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有; +3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com ); +4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性; + +友情提示: + 一般数据库文件默认在 DB_51Aspx 文件夹下 + 默认账号密码一般均为51Aspx + 关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help diff --git a/CHitsHandler/CHitsHandler.csproj b/CHitsHandler/CHitsHandler.csproj new file mode 100644 index 0000000..627031e --- /dev/null +++ b/CHitsHandler/CHitsHandler.csproj @@ -0,0 +1,15 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {FE08E6B1-9D11-46E4-82F8-8758A7348676} + Library + Properties + CHitsHandler + CHitsHandler + + + + diff --git a/CHitsHandler/HitsHandler/DBLayer/Client.cs b/CHitsHandler/HitsHandler/DBLayer/Client.cs new file mode 100644 index 0000000..23a32ad --- /dev/null +++ b/CHitsHandler/HitsHandler/DBLayer/Client.cs @@ -0,0 +1,15 @@ +using System; + +namespace webvisitStatistic +{ + /// + /// Client ��ժҪ˵���� + /// platform + /// 9x = 0 + /// 98 = 1 + /// nt 5.0 = 4 + /// nt 5.1 = 2 + /// nt 5.2 = 5 + /// nt = 3 + /// unix,linux = 6 + /// other = 7 diff --git a/CHitsHandler/HitsHandler/DBLayer/IStatLogger.cs b/CHitsHandler/HitsHandler/DBLayer/IStatLogger.cs new file mode 100644 index 0000000..8fb9791 --- /dev/null +++ b/CHitsHandler/HitsHandler/DBLayer/IStatLogger.cs @@ -0,0 +1,15 @@ +using System; +using webvisitStatistic; +using webvisitStatistic.Reporter.IPLook; +namespace webvisitStatistic.HitsHandler.DBLayer +{ + /// + /// IStatLogger ��ժҪ˵���� + /// + interface IStatLogger : IDisposable + { + bool Init(String conn); + void Log(StatInfo statInfo); + + } + diff --git a/CHitsHandler/HitsHandler/DBLayer/SqlStatLoger.cs b/CHitsHandler/HitsHandler/DBLayer/SqlStatLoger.cs new file mode 100644 index 0000000..07b555a --- /dev/null +++ b/CHitsHandler/HitsHandler/DBLayer/SqlStatLoger.cs @@ -0,0 +1,15 @@ +using System; +using webvisitStatistic; +using System.Data.SqlClient; +using System.Data; +using System.Configuration; +using webvisitStatistic.Reporter.IPLook; +namespace webvisitStatistic.HitsHandler.DBLayer +{ + /// + /// SqlStatLogger ��ժҪ˵���� + /// + public class SqlStatLogger : StatLoggerBaseImpl + { + + public SqlStatLogger() diff --git a/CHitsHandler/HitsHandler/DBLayer/StatInfo.cs b/CHitsHandler/HitsHandler/DBLayer/StatInfo.cs new file mode 100644 index 0000000..dc8328b --- /dev/null +++ b/CHitsHandler/HitsHandler/DBLayer/StatInfo.cs @@ -0,0 +1,15 @@ +using System; +using System.Text; +using webvisitStatistic; + +namespace webvisitStatistic.HitsHandler.DBLayer +{ + /// + /// StatInfo ��ժҪ˵���� + /// + public class StatInfo + { + public StatInfo() + { + // + // TODO: �ڴ˴����ӹ��캯���߼� diff --git a/CHitsHandler/HitsHandler/IPLook/IpLookTable.cs b/CHitsHandler/HitsHandler/IPLook/IpLookTable.cs new file mode 100644 index 0000000..f28d685 --- /dev/null +++ b/CHitsHandler/HitsHandler/IPLook/IpLookTable.cs @@ -0,0 +1,15 @@ +using System; +using System.Data.SqlClient; +using System.Diagnostics; +using System.Configuration; +using System.Net; + +namespace webvisitStatistic.Reporter.IPLook +{ + /// + /// IpLookTable ��ժҪ˵���� + /// + public class IpLookTable + { + + public struct IpRange diff --git a/CHitsHandler/HitsHandler/IPLook/IpLookup.cs b/CHitsHandler/HitsHandler/IPLook/IpLookup.cs new file mode 100644 index 0000000..9b05163 --- /dev/null +++ b/CHitsHandler/HitsHandler/IPLook/IpLookup.cs @@ -0,0 +1,15 @@ +using System; +using System.Web; + +namespace webvisitStatistic.Reporter.IPLook +{ + /// + /// IpLookUp ��ժҪ˵���� + /// + public class IpLookup:IHttpHandler + { + #region IHttpHandler + /// + /// document.write(""); + /// + /// diff --git a/CHitsHandler/HitsHandler/Logger.cs b/CHitsHandler/HitsHandler/Logger.cs new file mode 100644 index 0000000..abbce9c --- /dev/null +++ b/CHitsHandler/HitsHandler/Logger.cs @@ -0,0 +1,15 @@ +using System; +using System.Configuration; +using System.Diagnostics; +using System.IO; +using System.Threading; +using webvisitStatistic.HitsHandler.DBLayer; +using webvisitStatistic; +namespace webvisitStatistic +{ + + /// + /// Logger ��ժҪ˵���� + /// + public class Logger : IDisposable + { diff --git a/CHitsHandler/HitsHandler/MyStatHandler.cs b/CHitsHandler/HitsHandler/MyStatHandler.cs new file mode 100644 index 0000000..c47ec57 --- /dev/null +++ b/CHitsHandler/HitsHandler/MyStatHandler.cs @@ -0,0 +1,15 @@ +using System; +using System.Web; + +namespace webvisitStatistic.HitsHandler +{ + /// + /// MyStatHandler ��ժҪ˵���� + /// + public class MyStatHandler : IHttpHandler + { + public MyStatHandler() + { + // + // TODO: �ڴ˴����ӹ��캯���߼� + // diff --git a/CHitsHandler/HitsHandler/StatInfoHandler.cs b/CHitsHandler/HitsHandler/StatInfoHandler.cs new file mode 100644 index 0000000..0de5bf3 --- /dev/null +++ b/CHitsHandler/HitsHandler/StatInfoHandler.cs @@ -0,0 +1,15 @@ + +using System; +using System.Configuration; +using System.Web; +using System.Threading; +using System.Web.UI.HtmlControls; +using System.Web.UI; +using webvisitStatistic.HitsHandler.DBLayer; + +namespace webvisitStatistic.HitsHandler +{ + public class StatInfoHandler : IHttpHandler + { + public void ProcessRequest(HttpContext context) + { diff --git a/CHitsHandler/Properties/AssemblyInfo.cs b/CHitsHandler/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..4823fda --- /dev/null +++ b/CHitsHandler/Properties/AssemblyInfo.cs @@ -0,0 +1,15 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("CHitsHandler")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("ICT")] +[assembly: AssemblyProduct("CHitsHandler")] +[assembly: AssemblyCopyright("Copyright © ICT 2006")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] diff --git a/CHitsHandler/obj/CHitsHandler.csproj.FileList.txt b/CHitsHandler/obj/CHitsHandler.csproj.FileList.txt new file mode 100644 index 0000000..de7cd19 --- /dev/null +++ b/CHitsHandler/obj/CHitsHandler.csproj.FileList.txt @@ -0,0 +1,5 @@ +obj\Debug\ResolveAssemblyReference.cache +bin\Debug\CHitsHandler.dll +bin\Debug\CHitsHandler.pdb +obj\Debug\CHitsHandler.dll +obj\Debug\CHitsHandler.pdb diff --git a/CHitsHandler/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttributes.cs b/CHitsHandler/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttributes.cs new file mode 100644 index 0000000..5d01041 --- /dev/null +++ b/CHitsHandler/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")] diff --git a/CHitsHandler/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/CHitsHandler/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/CHitsHandler/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/CHitsHandler/obj/Debug/CHitsHandler.csproj.FileListAbsolute.txt b/CHitsHandler/obj/Debug/CHitsHandler.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..d4a130b --- /dev/null +++ b/CHitsHandler/obj/Debug/CHitsHandler.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\coder\Desktop\2024Code\6\20240625\update\FeiXiangCount\CHitsHandler\bin\Debug\CHitsHandler.dll +C:\Users\coder\Desktop\2024Code\6\20240625\update\FeiXiangCount\CHitsHandler\bin\Debug\CHitsHandler.pdb +C:\Users\coder\Desktop\2024Code\6\20240625\update\FeiXiangCount\CHitsHandler\obj\Debug\CHitsHandler.csproj.AssemblyReference.cache +C:\Users\coder\Desktop\2024Code\6\20240625\update\FeiXiangCount\CHitsHandler\obj\Debug\CHitsHandler.csproj.CoreCompileInputs.cache +C:\Users\coder\Desktop\2024Code\6\20240625\update\FeiXiangCount\CHitsHandler\obj\Debug\CHitsHandler.dll +C:\Users\coder\Desktop\2024Code\6\20240625\update\FeiXiangCount\CHitsHandler\obj\Debug\CHitsHandler.pdb diff --git a/WebStatistics/.vs/WebStatistics/config/applicationhost.config b/WebStatistics/.vs/WebStatistics/config/applicationhost.config new file mode 100644 index 0000000..213e175 --- /dev/null +++ b/WebStatistics/.vs/WebStatistics/config/applicationhost.config @@ -0,0 +1,15 @@ + + + + Migration Report +