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 Garefild |
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: |
10 years ago |
Size: |
7,855 bytes |
|
|
|