TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Script Giveaway (http://www.talkphp.com/script-giveaway/)
-   -   Secure login script. (http://www.talkphp.com/script-giveaway/1056-secure-login-script.html)

Sam Granger 09-08-2007 04:23 PM

Secure login script.
 
1 Attachment(s)
Had this coded for me by one of my programmers, thought it might come in handy for some of you guys!

Notes:
Quote:

Authentication Class - AuthClass
Syed Imran Moinuddin
23rd September 2006
=================================
General Notes

-> All passwords in the DB must be stored as MD5 hashed.

-> The AuthClass object offers two key functions (not including internal functions):
- authentication($username,$password)
The function will accept the username and password as provided by the user and then proceed to compare the md5 hashed
value of the password with the encrypted password in the database.

- verify()
The function will check the browser session and compare against active sessions in the database and return a boolean to
the caller on the validity of the session. verify can be called on the top of all pages which require security. It is
better to place it in a consistently present include to avoid code repetition.

- logout()
This will destroy session variables associated with the existing login and should be triggered such as when the user clicks
a logout button as well.
Enjoy!!

Haris 09-08-2007 04:53 PM

You forgot to attach the script.

Sam Granger 09-08-2007 05:26 PM

Thanks for letting me know, attachment added. Also can be downloaded off SourceForge soon! GNU license.

Link:

Salathe 09-08-2007 07:26 PM

Is this the same one as over at TalkFreelance? (I can't seem to download the attachment)

Sam Granger 09-08-2007 07:31 PM

Yes, however I have decided to release under GNU license in the end. Source is exactly the same.

Wildhoney 09-10-2007 11:24 AM

Thanks a lot for uploading the script, Sam. It's much appreciated!

autehonker 02-05-2008 09:19 PM

Hi
Hello
Hallo
Ciao
talkphp.com and sup Wildhoney

i am realy new php coder amd onlt learning and i am puting Secure login script in my web site and that right good working but i wanna made register.php and i dont noe making that :( what can i do?
Any one give me this secure login script register.php code
thank you

Village Idiot 02-05-2008 10:02 PM

Quote:

Originally Posted by autehonker (Post 10315)
Hi
Hello
Hallo
Ciao
talkphp.com and sup Wildhoney

i am realy new php coder amd onlt learning and i am puting Secure login script in my web site and that right good working but i wanna made register.php and i dont noe making that :( what can i do?
Any one give me this secure login script register.php code
thank you

English please.

autehonker 02-05-2008 10:16 PM

sorry but this is english words, and mine english is not good,but i can speaks alots of people,And why u arnt noe that post? am i only changed some words if u arnt knowe mine word i am wrighting that descriptions here,
noe = knowe
u = you
ur = your
wanna = want to

Sup Village Idiot; i hopso ur understand mine post and please help 4 making registery.php

Village Idiot 02-05-2008 10:32 PM

Sorry, didn't realize English isn't your first language. I'm afraid I don't have the time to type up a register script for that.

It will take some modifying, but I have a full login script as a part of this
JustAnotherPortfolio - Coding Example

autehonker 02-06-2008 05:05 PM

Thank u sup

Gareth 02-16-2008 04:27 PM

What can we use this for? What is its liscence?

Sam Granger 02-16-2008 05:44 PM

You can use this for whatever you want. You can add it into a clients project, a commercial script etc... However, you may not claim it as your own work. Ie. if someone askes you if you programmed it all, you can't say yes. You don't need to mention me in any way, it just doesnt seem right if you say its your work. Have fun with it. ^^

Sam Granger 02-16-2008 05:54 PM

Ps. Please use the "Say thanks" button if you like this script!

Sam Granger 02-16-2008 06:05 PM

And I'll hire the programmer to upgrade this to PHP5 and to add a registration page.

Gareth 02-16-2008 10:23 PM

Wow, thank you! I will certainly be using this and will give credit to you!

Gareth

dizzhead 03-12-2008 11:09 PM

Quote:

Originally Posted by Sam Granger (Post 10873)
And I'll hire the programmer to upgrade this to PHP5 and to add a registration page.

i like this script, it is very nice and simple, i did change it to conform to php5 and i also changed the password encryption to sha1 instead of md5. thanks for the class it saved me some time.


All times are GMT. The time now is 11:30 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0