Exemplo n.º 1
0
        // Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
        public static string GetAttachTypeArray(string type)
        {
            string text = FPCache.Get <string>("FP_ATTACHTYPE" + type);

            if (text == null)
            {
                SqlParam          sqlParam = DbHelper.MakeAndWhere("type", type.ToLower());
                List <AttachType> list     = DbHelper.ExecuteList <AttachType>(new SqlParam[]
                {
                    sqlParam
                });
                StringBuilder stringBuilder = new StringBuilder();
                foreach (AttachType attachType in list)
                {
                    if (stringBuilder.ToString() != "")
                    {
                        stringBuilder.Append("\r\n");
                    }
                    stringBuilder.Append(attachType.extension);
                    stringBuilder.Append(",");
                    stringBuilder.Append(attachType.maxsize);
                }
                text = stringBuilder.ToString();
                FPCache.Insert("FP_ATTACHTYPE" + type, text, 120);
            }
            return(text);
        }
Exemplo n.º 2
0
        // Token: 0x06000046 RID: 70 RVA: 0x00004A04 File Offset: 0x00002C04
        public static EmailConfig GetEmailConfig()
        {
            EmailConfig emailConfig = FPCache.Get <EmailConfig>("FP_EMAILCONFIG");

            lock (EmailConfigs.lockHelper)
            {
                if (emailConfig == null)
                {
                    string mapPath = FPUtils.GetMapPath(WebConfig.WebPath + "config/email.config");
                    emailConfig = FPSerializer.Load <EmailConfig>(mapPath);
                    FPCache.Insert("FP_EMAILCONFIG", emailConfig, mapPath);
                }
            }
            return(emailConfig);
        }
Exemplo n.º 3
0
        // Token: 0x0600025B RID: 603 RVA: 0x00007CBC File Offset: 0x00005EBC
        public static RegConfig GetRegConfig()
        {
            RegConfig regConfig = FPCache.Get <RegConfig>("FP_REGCONFIG");

            lock (RegConfigs.lockHelper)
            {
                if (regConfig == null)
                {
                    string mapPath = FPUtils.GetMapPath(WebConfig.WebPath + "config/reg.config");
                    regConfig = FPSerializer.Load <RegConfig>(mapPath);
                    FPCache.Insert("FP_REGCONFIG", regConfig, mapPath);
                }
            }
            return(regConfig);
        }
Exemplo n.º 4
0
        // Token: 0x06000027 RID: 39 RVA: 0x00003BA8 File Offset: 0x00001DA8
        public static ExamConfig GetExamConfig()
        {
            ExamConfig examConfig = FPCache.Get <ExamConfig>("ExamConfig");

            lock (ExamConifgs.lockHelper)
            {
                if (examConfig == null)
                {
                    string mapPath = FPUtils.GetMapPath(WebConfig.WebPath + "config/exam.config");
                    examConfig = FPSerializer.Load <ExamConfig>(mapPath);
                    FPCache.Insert("ExamConfig", examConfig, mapPath);
                }
            }
            return(examConfig);
        }
Exemplo n.º 5
0
        // Token: 0x0600028A RID: 650 RVA: 0x000097D4 File Offset: 0x000079D4
        public static long GetSysSize()
        {
            object obj = FPCache.Get("CACHE_SYSSIZE");
            long   num;

            if (obj == null)
            {
                num = WMSUtils.DirSize(WebConfig.WebPath);
                FPCache.Insert("CACHE_SYSSIZE", num, 10);
            }
            else
            {
                num = (long)obj;
            }
            return(num);
        }
Exemplo n.º 6
0
        // Token: 0x06000005 RID: 5 RVA: 0x000021E4 File Offset: 0x000003E4
        public static SMSConfig GetSMSConfig()
        {
            SMSConfig smsconfig = FPCache.Get <SMSConfig>("FP_SMSCONFIG");

            lock (SMSConfigs.lockHelper)
            {
                if (smsconfig == null)
                {
                    string mapPath = FPUtils.GetMapPath(WebConfig.WebPath + "config/sms.config");
                    smsconfig = FPSerializer.Load <SMSConfig>(mapPath);
                    if (smsconfig.posturl == "")
                    {
                        smsconfig.posturl = "http://sms.106jiekou.com/utf8/sms.aspx";
                    }
                    FPCache.Insert("FP_SMSCONFIG", smsconfig, mapPath);
                }
            }
            return(smsconfig);
        }