- Joined
- Jul 18, 2009
- Messages
- 392
- Reaction score
- 129
I am releasing a very basic register script.
I don't know much PHP myself and built this script by using Google search, so my apologies if it has a messy code.
I hope that people that do not know much about PHP, like myself, will use this to see how it operates and learn from it.
Enjoy!
PS: As you might notice, this file calls for a ban.php
which is a php file that looks like this:
I don't know much PHP myself and built this script by using Google search, so my apologies if it has a messy code.
I hope that people that do not know much about PHP, like myself, will use this to see how it operates and learn from it.
Enjoy!
PS: As you might notice, this file calls for a ban.php
which is a php file that looks like this:
Code:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$banned = array("xxx.xxx.xxx.xxx","xxx.xxx.xxx.xxx","xxx.xxx.xxx.xxx");
if (in_array("$ip", $banned)) {
die("You have been banned from this site");
}
else
{
}
?>
Attachments
You must be registered for see attachments list
Last edited: