Posted 27 April 2014 - 03:49 PM
I need help creating a system, you have wireless pocket computers and a wireless database computer, on the pocket computers you can create an account or join an account, so whatever you press you have to type in username and password. I've already done this part, now then you have your username and password. I need to rednet send this username and password the the recieving database computer. Then I need the database computer to open a file that contains an array with usernames and passwords, if you are joining an account, it uses a for loop to cycle through all entries and find an array inside the main array with the username as mentioned. Then it checks for the password, if the password is correct then the database sends info about that user and that the account login was correct, else the database computer makes the pocket computer say that the username or password is wrong and restarts. If the username isn't found, the username or password is wrong this being said again, and restarts. If you are creating an account, it will send the username and password to the database computer, first it will search for the same username as the new account, if they find one the pocket computers says an account with the username already exists, and restarts the pocket computer, else the database computer creates a new entry array inside the main array with the password and username as mentioned, the entry also creates a bunch of default new information, which is then later sent to the pocket computer after creation.
Anyone got a similar script or can help me with some parts of this? Thanks, all help is appreciated.
Regards
Augustas
Anyone got a similar script or can help me with some parts of this? Thanks, all help is appreciated.
Regards
Augustas