PHP Classes

File: README

Recommend this page to a friend!
  Classes of giuseppe lucarelli   dbuser   README   Download  
File: README
Role: Documentation
Content type: text/plain
Description: documentation file
Class: dbuser
Manage MySQL or PostgreSQL users using reconfig
Author: By
Last change: changed visibility
Date: 8 years ago
Size: 1,102 bytes
 

Contents

Class file image Download
DBUser is a "reconfig" module to manage mysql/postgresql users. Pay attention to postgresql, the script doesn't remove users but revoke privileges only. Use "dropuser" to do that. INSTALL download "reconfig" at: http://www.phpclasses.org/package/8572-PHP-Get-configuration-from-files-pages-and-databases.html install DBuser files into the same directory if you want user authentication enable the rows below (user.php): $REC->auth_type='httpHeader'; $REC->auth_passwd='.htpasswd'; $REC->auth_script = 'validate.php'; $REC->auth_func = 'ValidateUser'; $REC->auth_driver = __DRIVER__; $REC->auth_host = @$_POST['auth_host']; $REC->auth_user = @$_POST['auth_user']; $REC->auth_pass = @$_POST['auth_pass']; create youw .htpasswd file and change 'exec' with 'login' (js/user.js): $('#building').reconfig({action: ['exec','build']}); to: $('#building').reconfig({action: ['login','build']}); USAGE for mysql: http://host/user.php http://host/user.php?driver=mysql for postgresql: http://host/user.php?driver=pgsql enjoy