Posted on November 26th, 2008
3822 views
This tutorial will show you how to list all packages that are in your WHM (Web Host Manager)
#!/usr/local/cpanel/3rdparty/bin/php The first line checks if you are connecting to the whm on the same server as the script then the username/accesshash and usessl are there to actually connect to the WHM. The Accesshash can be found by logging into your WHM and clicking Remote Access Hash. The next line retrieves the accounting file which is already installed by cPanel. $pkgs is a variable for the function listpkgs which go listpkgs(hostname, whmusername, whmaccesshash, usingssl); next it will split the array up from the function and will do so for all accounts. And finally it will echo the details. These ids are the ones that are in $value[id] 1-CGI Access 2-Quota 3-Frontpage 4-Theme 5-FTP Accts 6-Databases 7-Email Accts 8-Email Lists 9-SubDomains 10-Bandwidths 11-Dedi IP 12-Parked Domains 13-Addon Domains 14-Featurelist 15-Language Thanks for reading and if your interested i am posting another tutorial on how to list accounts well this is all on pixel2life.com and check out my site www.pk-scripts.co.uk |