How exactly do you get PHP to read from a certain file? I'm trying to create a "banned" list, and if their IP appears in the list, they won't be allowed.
I'm basically setting up futallaby because I fail at setting up serissa and Wakaba on a free server.^^;
| Code: |
| $badip = array("addr1\\.dummy\\.com","addr2\\.dummy\\.com"); //Refused hosts (IP bans) |
That's the function that appears in the imgboard.php file
What do I need to change it to get it to read from a .txt or database file or whatever. Please go into detail about the database, as I'd like that a little better, but the .txt file is also good.
-------
"Last night I tried to slip it in her rear. When she began to
complain about the pain, I stupidly told her to take it like a man."
~Quantumleaper