PHP Code:
<?php
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "localhost";
$user = "my username in here";
$accesshash = 'my hash key is in here';
$accts = listaccts($host,$user,$accesshash,0);
print_r($accts);
$pkgs = listpkgs($host,$user,$accesshash,0);
print_r($pkgs);
?>
My code looks like the above - I want to be able to add new accounts under my reseller account, but allow someone to purchase an account online and have this created without manual intervention from me.
Some of the functions I'll be looking to use will include : Showversion, listaccts, createacct, suspend
I believe the issue is that we have not been granted read access to the common Accounting.php.inc file ???
Regards