Esempio n. 1
0
        //public static void UpdateApp()
        //{
        //    int a_ = 19;
        //    while (true)
        //    {
        //        int num = 2;
        //        while (true)
        //        {
        //            bool arg_1AB_0;
        //            bool flag = false;
        //            switch (num)
        //            {
        //                case 0:
        //                    arg_1AB_0 = false;
        //                    goto IL_1AB;
        //                case 1:
        //                    return;
        //                case 2:
        //                    //                                          hbm
        //                //    if (HttpContext.Current.Application[Module.a("햼\uddbe곀", a_)] != null)
        //                    if (HttpContext.Current.Application["hbm"] != null)

        //                    {
        //                        num = 4;
        //                        continue;
        //                    }
        //                    num = 0;
        //                    continue;
        //                case 3:
        //                    if (!flag)
        //                    {
        //                        num = 5;
        //                        continue;
        //                    }
        //                    return;
        //                case 4:
        //                    num = 6;
        //                    continue;
        //                case 5:
        //                    ////                                           hbm
        //                    //HttpContext.Current.Application[Module.a("햼\uddbe곀", a_)] = Admin_Help.GetHbmHash();
        //                    ////                                        stand_config                                                        ~/DK_Config/config_stand.cfgg
        //               //     HttpContext.Current.Application[Module.a("캼쮾ꃀ귂ꇄ飆꫈꓊ꏌ꧎룐듒", a_)] = Config.GetConfigByFileName(Module.a("쎼邾藀裂髄蓆ꛈꗊꯌꛎ뛐ﳒ뛔룖럘뷚드룞뻠郢釤蛦蟨迪쏬賮韰铲鋴", a_));
        //                    ////                                        confige_fenye                                       DK_Config/config_stand.cfgg
        //                //    HttpContext.Current.Application[Module.a("\udebc킾꿀ꗂ계ꃆ雈귊꣌ꇎ꣐뛒", a_)] = Config.GetConfigByFileName(Module.a("쎼邾藀裂髄蓆ꛈꗊꯌꛎ뛐ﳒ뛔룖럘뷚드룞뻠藢胤触部軪쏬賮韰铲鋴", a_));


        //                    ////                                           hbm

        //                    HttpContext.Current.Application["hbm"] = Admin_Help.GetHbmHash();
        //                    ////                                        stand_config                                  ~/DK_Config/config_stand.cfgg

        //                    HttpContext.Current.Application["stand_config"] = Config.GetConfigByFileName("~/DK_Config/config_stand.cfgg");
        //                    ////                                        confige_fenye                                       DK_Config/confige_fenye.cfgg

        //                    HttpContext.Current.Application["confige_fenye"] = Config.GetConfigByFileName("~/DK_Config/config_fenye.cfgg");



        //                ////                                        cominfo                                      DK_Config/config_stand.cfgg

        //                //HttpContext.Current.Application[Module.a("\udebc킾곀ꫂꯄꇆꛈ", a_)] = Admin_Help.GetComInfo();

        //                    HttpContext.Current.Application["cominfo"] = Admin_Help.GetComInfo();

        //                    //HttpContext.Current.Application[Module.a("킼킾ꗀ뛂꧄ꋆꃈ꿊鋌ꋎ뻐럒ꃔ믖볘껚꿜돞", a_)] = Admin_Help.GetModuleHash();
        //                    //HttpContext.Current.Application[Module.a("좼첾꓀뇂髄꣆ꟈꟊ꓌ꇎ듐", a_)] = Admin_Help.GetUserHash();

        //                    HttpContext.Current.Application["moduleid_moduleurl"] = Admin_Help.GetModuleHash();
        //                    HttpContext.Current.Application["user_online"] = Admin_Help.GetUserHash();


        //                    Admin_Help.UpdateDeps();
        //                    num = 1;
        //                    continue;
        //                case 6:
        //                    //                                                                                     utt
        //                    //arg_1AB_0 = !string.IsNullOrEmpty(string.Concat(HttpContext.Current.Application[Module.a("좼쮾뗀", a_)]));
        //                    arg_1AB_0 = !string.IsNullOrEmpty(string.Concat(HttpContext.Current.Application["utt"]));
        //                    goto IL_1AB;
        //            }
        //            break;
        //        IL_1AB:
        //            flag = arg_1AB_0;
        //            if (true)
        //            {
        //            }
        //            num = 3;
        //        }
        //    }
        //}


        public static void UpdateApp()
        {
            if (HttpContext.Current.Application["hbm"] == null || string.IsNullOrEmpty(string.Concat(HttpContext.Current.Application[Admin_Help.GetUtt()])))
            //if (HttpContext.Current.Application["hbm"] == null)
            //if (HttpContext.Current.Application["hbm"] == null || string.IsNullOrEmpty(string.Concat(HttpContext.Current.Application[Admin_Help.GetUtt()])))
            {
                //if (string.IsNullOrEmpty(string.Concat(HttpContext.Current.Application["utt"])))
                //{

                if (!Config.CheckInstall())
                {
                    // HttpContext.Current.Response.Redirect("~/Install/Default.aspx");
                    //System.Web.HttpContext.Current.Response.Redirect("Install/Default.aspx");
                    //HttpContext.Current.Server.Transfer("~/Install/Default.aspx");
                    //HttpContext.Current.Server.Execute("Install/Default.aspx");
                }
                else
                {
                    HttpContext.Current.Application["hbm"] = Admin_Help.GetHbmHash();

                    HttpContext.Current.Application["stand_config"] = Config.GetConfigByFileName("~/DK_Config/config_stand.cfgg");

                    HttpContext.Current.Application["config_fenye"] = Config.GetConfigByFileName("~/DK_Config/config_fenye.cfgg");

                    HttpContext.Current.Application["cominfo"] = Admin_Help.GetComInfo();

                    HttpContext.Current.Application["moduleid_moduleurl"] = Admin_Help.GetModuleHash();

                    HttpContext.Current.Application["user_online"] = Admin_Help.GetUserHash();

                    HttpContext.Current.Application["sms"] = Admin_Help.GetSMSHash();
                }
            }
        }
Esempio n. 2
0
        //public static Hashtable GetUserHash()
        //{
        //    Hashtable hashtable = new Hashtable();
        //    IList all = Sys_User.Init().GetAll(null, null);
        //    IEnumerator enumerator = all.GetEnumerator();
        //    try
        //    {
        //        int num = 1;
        //        while (true)
        //        {
        //            bool flag = false;
        //            switch (num)
        //            {
        //                case 2:
        //                    goto IL_BC;
        //                case 3:
        //                    {
        //                        if (!flag)
        //                        {
        //                            num = 4;
        //                            continue;
        //                        }
        //                        object current = enumerator.Current;
        //                        Sys_UserInfo sys_UserInfo = current as Sys_UserInfo;
        //                        hashtable.Add(sys_UserInfo.id.ToString(), sys_UserInfo);
        //                        num = 0;
        //                        continue;
        //                    }
        //                case 4:
        //                    num = 2;
        //                    continue;
        //            }
        //        IL_54:
        //            flag = enumerator.MoveNext();
        //            num = 3;
        //            continue;
        //            goto IL_54;
        //        }
        //    IL_BC:
        //        goto IL_1F;
        //    }
        //    finally
        //    {
        //        while (true)
        //        {
        //            IDisposable disposable = enumerator as IDisposable;
        //            bool flag = disposable == null;
        //            int num2 = 2;
        //            while (true)
        //            {
        //                switch (num2)
        //                {
        //                    case 0:
        //                        disposable.Dispose();
        //                        num2 = 1;
        //                        continue;
        //                    case 1:
        //                        goto IL_117;
        //                    case 2:
        //                        if (!flag)
        //                        {
        //                            num2 = 0;
        //                            continue;
        //                        }
        //                        goto IL_119;
        //                }
        //                break;
        //            }
        //        }
        //    IL_117:
        //    IL_119: ;
        //    }
        //    goto IL_11A;
        //IL_1F:
        //    Hashtable result = hashtable;
        //IL_11A:
        //    if (true)
        //    {
        //    }
        //    return result;
        //}

        public static List <Sys_UserInfo> GetUserHash()
        {
            Admin_Help.UpdateDeps();
            IList all = Sys_User.Init().GetAll(null, null);
            List <Sys_UserInfo> list = new List <Sys_UserInfo>();

            foreach (object current in all)
            {
                Sys_UserInfo item = current as Sys_UserInfo;
                list.Add(item);
            }
            return(list);
        }
Esempio n. 3
0
 public ModulePages()
 {
     Admin_Help.UpdateApp();
     this.Context.Response.Cache.SetNoStore();
     base.Load += new EventHandler(this.AdminPage_Load);
 }
Esempio n. 4
0
        private static void UpdateDeps()
        {
            int a_ = 7;

            if (true)
            {
            }
            //HttpContext.Current.Application[Module.a("쒰잲솴", a_)] = string.Concat(MsSqlOperate.ExecuteScalar(CommandType.Text, Admin_Help.UpdateFlows(), new SqlParameter[0]));
            HttpContext.Current.Application["uut"] = string.Concat(MsSqlOperate.ExecuteScalar(CommandType.Text, Admin_Help.UpdateFlows(), new SqlParameter[0]));
        }