View Single Post
  #4 (permalink)  
Old 17-12-2007, 19:41
Tricky Tricky is offline
new member
 
Join Date: Dec 2007
Posts: 4
Default

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

Last edited by Tricky : 18-12-2007 at 21:42.
Reply With Quote