class functions:
//Class constructor - specify destination of login-password file
//if file not exists - it will be created automatically
//if file not specified - generates error message
function BAccess($pfile)
//Returns an user rights - [a or u]=[admin or user], if it not in list - returns FALSE
function check_access($login,$pass)
//Returns FALSE if user was added, Error message if not
function add_user($login,$pass,$rights)
//Returns FALSE if user was deleted. Error message if not
function remove_user($login)
No MySql needed. Class Saves a log of warnings in warn.log , and log of errors in err.log.
If any questions - you are welcome - wdayda@yahoo.com
|