App_code/Common/Core/BasePage.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.IO;
using System.Web.SessionState;
using System.Text;
using nspLable.Function;
using nspLable.Function.Systems;
namespace Base
{
/// <summary>
/// BasePage 的摘要说明
/// </summary>
public class BasePage : System.Web.UI.Page
{
public BasePage()
{
_Config = new Base.Core.WebConfig();
}
#region 属性
private static Base.Core.WebConfig _Config = new Base.Core.WebConfig();
private static string[] _Err = new string[3];//声明_Err[3]数组
/// <summary>
/// 网站基本信息
/// </summary>
public static Base.Core.WebConfig Config
{
// set { _Config = value; }
get { return _Config; }
}
/// <summary>
/// 错误信息
/// </summary>
public static string[] Err
{
get { return _Err; }
}
#endregion attribute
#region 方法
/// <summary>
/// 检测管理员是否拥有权限
/// </summary>
/// <param name="strType">类别[basic:基本设置,column:栏目,model:模块,user:会员管理,template:模板,system:系统设置]</param>
/// <param name="strOperate">允许执行的条件</param>
public static bool CheckRights(string strType, string strOperate)
{
string strRights = "";
if (GetCookie("ManagerName") != null)
{
if (strType != null && strType != "")
{
后面还有 278 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
