PHP Classes

File: mysqlUserManager.php

Recommend this page to a friend!
  Classes of Garefild   PHP MySQL User Manager   mysqlUserManager.php  
File: mysqlUserManager.php
Role: Class source
Content type: text/plain
Description: Class
Class: PHP MySQL User Manager
Manage users that access a MySQL database server
Author: By
Last change:
#fix __iseet bug #


This class allows you to edit, delete, add a user to mysql.
A convenient and simple.

Class has a number of basic functions.

1. setPassword => Add, change user password. Returns the class object (this).
2. setPrivileges => adding user permissions. Returns the class object (this).
3. removePrivileges => Deleting user permissions. Returns the class object (this).
4. delete => Delete User. Returns the class object (this).
5. getPrivileges => user's privileges. Returns an array of privileges.
6. setHost => set or update user host. Returns the class object (this).

Create Account.
$ class -> usernameToCerateOrEdit

Then functions as needed, for example.

$ users -> administrator -> setPassword ('123') -> setHost ('192.168.1.1') -> setPrivileges ('CREATE, DROP', 'db', 'members');

OR

$users -> administrator('password', '192.168.1.1') -> setPrivileges('CREATE, DROP', 'db', 'members');
Date: 9 years ago
Size: 7,855 bytes

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

Login Immediately with your account on: