Beispiel #1
0
        List <User> GetUsers()
        {
            List <User> users = new List <User>();

            foreach (string str in  RC4.R4DecoderText(Key, File.ReadAllBytes(Environment.CurrentDirectory + "\\db.txt")).Split('\n'))
            {
                string[] strSplit      = str.Split(' ');
                bool     passwordLimit = false;
                bool     lockUser      = false;
                bool     tempPassword  = false;

                if (strSplit[2] != "False")
                {
                    passwordLimit = true;
                }

                if (strSplit[3] != "False")
                {
                    lockUser = true;
                }

                if (strSplit[4] != "False")
                {
                    tempPassword = true;
                }

                users.Add(new User(strSplit[0], strSplit[1], passwordLimit, lockUser, tempPassword));
            }
            return(users);
        }