phpDirectAdmin Class
This class can be used to communicate with DirectAdmin (http://www.directadmin.com) Hosting Panel.
The class includes emails management, creating and modifying account, disk and bandwidth usage and some more.
The function uses cURL lib for communication.
Function inside:
----------------
The functions that can be used are:
getStats() - get stats array (diskspace, bandwidth, emails, ftp, databases) - both used and max
createUserAccount() - create a new directadmin account
modifyUserAccountPackage() - modify account to auto package
customizeUserAccountPackage() - customize account package
createDatabase - creates a new mysql database
createBackup() - creates a account backup
chmodBackup() - chmod a account backup for downloading
getBackupsList() - returns backups array list
getEmailList() - returns email accounts array list
getEmail() - returns email account information
createEmail() - creates new email account
updateEmail() - updates emailbox password
deleteEmail() - deletes email account
Cookies:
--------
The class uses cookies to store the username and password.
These files should not be accessed by htdocs or public html.
The cookies files don't get deleted, so if you change the username and password in the scripts,
try deleting the cookies files.
Error Reporting:
----------------
There is no error reporting in this class.
If someone can help with that, I will gladly add it to the function...
|