11.06.2010, 20:31
Why do we load the ban files from one large file? Why not just make a folder called /bans/, and every time a person gets banned, a file is created (IP.cfg).
In this file, we would have this:
For example, if someone was banned for 1 day for being rude to admins, and when they were banned, they logged in (from the same IP) with a different name, it would look like this:
(The person was banned on "JohnnyA" and then evaded on JohnnyB")
You could then use a byte searcher to scan through the files for the name (for example, they log into JohnnyA from a different IP), and then create a new file like this:
And so on.
In this file, we would have this:
Код:
Names = BanDate = UnbanDate = Reason =
(The person was banned on "JohnnyA" and then evaded on JohnnyB")
Код:
Names = JohnnyA, JohnnyB BanDate = 29/01/2014 UnbanDate = 30/01/2014 Reason = Rudeness/insults to admins
Код:
Names = JohnnyA BanDate = 29/01/2014 UnbanDate = 0 Reason = Evasion: Rudeness/insults to admins