Recommend this page to a friend! |
Download .zip |
Info | Documentation | Screenshots | View files (9) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2014-11-24 (1 year ago) | Not yet rated by the users | Total: 23 | All time: 8,605 This week: 901 |
Version | License | PHP version | Categories | |||
dbuser 1.0 | GNU General Publi... | 5.0.0 | PHP 5, Databases, Systems administration |
Description | Author | ||||||||||||||
This package can manage MySQL or PostgreSQL users using the reconfig package. |
|
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 |
Screenshots | ||
Files | / | sql |
File | Role | Description |
---|---|---|
class.mysql.php | Class | php class for mysql |
class.pgsql.php | Class | php class for postgresql |
Files | / | xml |
File | Role | Description |
---|---|---|
xml.mysql.php | Aux. | php class for mysql |
xml.pgsql.php | Aux. | php class for postgresql |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.