Login   Register  
PHP Classes
elePHPant
Icontem

File: description.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2003-04-08 08:39
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