PHP Classes

File: description.txt

Recommend this page to a friend!
  Classes of Alexey Baranov   BAccess   description.txt   Download  
File: description.txt
Role: Documentation
Content type: text/plain
Description: description
Class: BAccess
Site access control class
Author: By
Last change:
Date: 21 years ago
Size: 709 bytes
 

Contents

Class file image Download
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