PHP Classes

File: class.uFlex.php

Recommend this page to a friend!
  Classes of Pablo   uFlex   class.uFlex.php  
File: class.uFlex.php
Role: Class source
Content type: text/plain
Description: uFlex Include class file
Class: uFlex
Manage registrations and authenticate users
Author: By
Last change: uFlex Changelog

v0.75 11/26/2011
- Revamped Demo, new look and best PHP practices
- New ->login() method to initiate a login request anytime
- Wrapped session_start() into smart conditions, eliminating all warnings and logging session_start() status
- Replace all PHP short tags project wide
- some internal code refactoring(new private ->session())

v0.61 5/18/2011
- Fixed inline Grammar thoughtout the class.uFlex.php file
- Included an installable 'demo'

v0.57 5/5/2011
- Fixed fields not been able to be optional

v0.56 3/11/2011
- Import default profile Guess when user is logout
- Add $Name to hold ucfirst() version of $name in private ->validate()
- Updated ->pass_reset() to avoid manually deactivated users to reset their password
- Added error [14]
- Added extra level error to ->login() error [14]
- Update the ->log_login() SQL query to use the global user defined users_table
- Replace all the remaining static reference to the database table name in the SQL queries.

v0.51 2/3/2011
- Add ->opt['user_session'] to hold a custom userData session variable
- Update the reference of ->opt['cookie_path'] on ->setcookie()
- Added ->opt['default_user'] to hold the default user info. It was posible before, is easier now
- Auto detect an email while logging-in and use email and pass instead of username and pass
- Create ::debug boolean constant to globaly enable and disable the extra data loging for devs
- Merged ->check_sql and with ->check_sql_change function
- Created ->errorList to hold some errors strings for easier customization

v0.41 11/12/2010
- Add ->encode and ->decode functions
- Add the $encoder array variable to class
- Update ->uCofirm to create universal common hash
- Create function to sanitize the confirmation hash ->check_hash
- Update ->setCookie to use new hash
- Update ->login to use new hash for cookie login
- Update ->activate to use new hash
- Update ->register to use the new hash
- Update ->new_pass to use new hash
- Update ->pass_reset to use new hash
- update ->pass_reset to return an associative array with the user_id, username, email and the hash.
- update ->setCookie to use JS if headers are sent
- The ->uConfirm was renamed to ->make_hash
- Update ->validateAll to handle the the field matching
- Added option for custom users table
Date: 12 years ago
Size: 33,806 bytes

You need to be a registered user and login to get this file.

Login Immediately with your account on: