This is one of my Login scripts that i made for my site, this one is the most important one and is the one i am making the most secure one.
It has MD5 password encryption, and also it has bruteforce protection, going to improve the bruteforce protection though.
Anyway, it consists of 4 files
index.php: The file you want to login to
config.php: The file containing all the Mysql database info and some other functions important to the script.
login.php: The login script.
bf.php: The anti bruteforce page.
you will need a Mysql database to use it and at least PHP 5.0, you will need a table called "authadmin" with the colums "user" and "pass"
First we have the index.php. And the part i have so far for it is just the authentication part. It checks if you are allowed to use it or not, pretty simple.
index.php HERE
Then we have config.php that contains the mysql connection info and a filter function.
config.php HERE
Next up is the login.php which contains the authentication functions
login.php HERE
And last we have the bf.php, nothing special about it ^^
bf.php HERE
When the HTML filter on Suck-o has been cooled down i will explain some of the important functions more ^^
PHP Login Example
Re: hey
yeah i have it done ^^ i can post it soon, will have to edit the one i post though since i have it kinda built into my siteshellshock wrote:are you going to have a member sign up feature too? if you put that on . i will use it for sure
"The best place to hide a tree, is in a forest"
-
- Moderator
- Posts: 901
- Joined: 18 Sep 2006, 16:00
- 17
- Location: on my Throne
- Contact:
Actually this code is not available anywhere any more
I don't have any time at the moment to upload anything new, and the code I have now is specifically made for some of my projects. But if someone wants a new example code, then feel free to create a thread about it and we will see what we can do!
This thread is old and dirty (not in the good way), so we'll just lock it and forget it ever existed : )
I don't have any time at the moment to upload anything new, and the code I have now is specifically made for some of my projects. But if someone wants a new example code, then feel free to create a thread about it and we will see what we can do!
This thread is old and dirty (not in the good way), so we'll just lock it and forget it ever existed : )
"The best place to hide a tree, is in a forest"