Login   Register  
PHP Classes
elePHPant
Icontem

The Login Class: Autenticate users with records in a MySQL database

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-03-03 (7 years ago) RSS 2.0 feedStarStarStar 44%Total: 3,739 All time: 791 This week: 1,476Down
Version Licenses PHP version Categories  
login_class 1.0Free For Educational Use, F...3.0Databases, User Management
Description Author  

This is a simple class can be used to authenticate users with records stored in a MySQL database table.

It looks up in a given MySQL table for the password of a given user, and checks if the password matches a given value entered by the user being authenticated.

If there is a record for the specified user and the password is correct, the class sets a session variable with the user name and returns the code 1. If the password is incorrect, it returns the code 2. If there is no user with the specified user name, it returns 0.

The class may also check encoded passwords stored after using the MD5 hash function.

Picture of abubakkar siddiq
Name: abubakkar siddiq <contact>
Classes: 1 package by
Country: India India
Age: ???
All time rank: 75237 in India India
Week rank: 1872 Down125 in India India Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file Example.txt Doc. Example File For Class
Accessible without login Plain text file License.txt Lic. The GNU General Public License (GPL)
Plain text file login_class.php Class Class File

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,739All time:791
 This week:0This week:1,476Down
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:58%StarStarStar
Documentation:58%StarStarStar
Examples:-
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:1927