Login   Register  
PHP Classes
elePHPant
Icontem

PHPAuth: Register and authenticate users stored in MySQL

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 (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-08-26 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 902 This week: 1All time: 3,622 This week: 1,478Up
Version License PHP version Categories  
phpauth-2 1.0GNU General Public Lice...5.3PHP 5, Databases, User Management
Description Author  

This class can register and authenticate users stored in MySQL.

It can connect to a MySQL server using the MySQLi extension and create new user records in a MySQL table with a given e-mail, user name and password.

The e-mail address is validated before creation. If it is invalid the class can add increase a counter of invalid access attempts and block accesses from the same IP address for a certain period.

After a successful account creation the class returns an activation key that may be sent to the user e-mail address, so he can activate his account. The class can also takes care of the account activation verifying the activation key.

The class can also login the user verifying the user name and password. When the login attempt is valid, it returns a session code.

Picture of Cuonic
Name: Cuonic <contact>
Classes: 2 packages by
Country: France France
Age: 28
All time rank: 117239 in France France
Week rank: 461 Up17 in France France Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file auth.class.php Class Class source
Accessible without login Plain text file config.php Conf. Configuration script
Accessible without login Plain text file database.sql Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%Total:902All time:3,622
 This week:1This week:1,478Up