Fist of all, this package is based on the authentication used in mambo/joomla, also including the database
object of this premium CMS (www.joomla.org) . The files are altered to ensure stand-alone functioning of the classes.
Mostly i worked on auth.class.php, in database.php i just got out some code that dd not make sense outside the
joomla framework
Installing
=============
1. Import the "script.sql" in your MySQL Database (It adds a default user "Testman", password "t")
2. Alter the db.inc.php accourding to your system setup.
Please adjust the SESSION timeout since it is maybe to high for you.
3. Build a login page similar to my example "login.php". you should include the two files
require_once('auth.class.php');
require_once('db.inc.php');
4. in all the "registered only" pages include "require_once('auth.php')" on top. Please check "index.php"
Please write me if you find some bugs or problems
Enjoy
Andrei
gringo696@yahoo.com
|