24.04.2012, 00:12
Quote:
1: Loop through all of the files, problem solved.
2: It'd be more efficient just to update two files and have the server go through writing a file and reading a file again than looping through 10,000+ user files. |
2: I don't care much about the speed as I do about the check accuracy.
Making it save names into a file is pretty easy, but it doesn't get the job done which is detecting ALL admins in the users folder.
I wouldn't make it put someone's name into the file once he logs in neither as it still won't be accurate until he connects to the server.