using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.UI; using System.Web; /// /// 配置 /// public static class DConfig { /// /// DES加密密钥 /// public const string DESKEY = "DESZHENG"; /// /// EXT提取函数命名空间 /// public const string D_X = "D_X"; /// /// SHA1 /// public const string SHA1 = "SHA1"; /// /// MD5 /// public const string MD5 = "MD5"; /// /// LOGINFO /// public const string LOG_INFO = "logInfo"; /// /// LOGERROR /// public const string LOG_ERROR = "logError"; /// /// LOGVISIT /// public const string LOG_VISIT = "logVisit"; /// /// 密钥向量 /// public static readonly byte[] KEYS = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF }; /// /// 日志配置 /// public static readonly string LOG_CONFIG = HttpRuntime.AppDomainAppPath + "/log4net.config"; /// /// Nhibernate配置 /// public static readonly string NHI_CONFIG = HttpRuntime.AppDomainAppPath + "/nhibernate.config"; /// /// 缓存文件夹 /// public static readonly string CACHE_PATH = HttpRuntime.AppDomainAppPath + "/UpFile/Cache"; /// /// 缓存文件夹 /// public const string CACHE_PAGE_PATH = "~/UpFile/Cache/"; /// /// 主目录 /// public const string PAGE_MAIN = "~/"; /// /// 用户图标 /// public const string USERPIC_PAGE_PATH = "~/UpFile/UserPic/"; /// /// 图片文件 /// public const string PIC_PAGE_PATH = "~/UpFile/Pic/"; /// /// 网页错误 /// public const string PAGE_ERROR = "~/Error/ErrorPage.htm"; /// /// 无访问权限 /// public const string PAGE_NOACCESS = "~/Error/NoAccess.htm"; /// /// 无此文件 /// public const string PAGE_NOFOUND = "~/Error/FileNotFound.htm"; /// /// 网站维护中 /// public const string PAGE_MAINTENANCE = "~/Error/Maintenance.htm"; /// /// 图片不存在 /// public const string NO_IMG = "~/UpFile/NoImg.jpg"; }