ThermoDust

Member
Oct 27, 2002
7
0
151
Is there any place to explain how each command for remote access should be setup. Like suspend, killacct, ect.. Like a place to show me how the uername should be in there. How to idenfiy the account I want to suspend, killacct, ect...?
 

ansigo

Registered
Feb 26, 2003
1
0
151
hi,

if u look at the accounting.php.inc file you will see the definition of each function there.

in case you don't have direct access to that file, here's the Grand List

function suspend (host,$user,$accesshash,$usessl,$suspenduser)

function unsuspend ($host,$user,$accesshash,$usessl,$suspenduser)

function killacct ($host,$user,$accesshash,$usessl,$killuser)

function showversion ($host,$user,$accesshash,$usessl)

function createacct ($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan)

function listaccts ($host,$user,$accesshash,$usessl)

function listpkgs ($host,$user,$accesshash,$usessl)

Key
----
$host will be 'localhost' or the ip address of the remote system
$user will be 'root'
$accesshash will ge in your WHM.
set $usessl to 0 if accessing from remote system else 1;
 

zopinidi

Registered
Mar 27, 2005
2
0
151
i think;
createacct ($host,$user,$accesshash,$usessl,$acctdomain,$acct user,$acctpass,$acctplan,$contactmail);
 

Tapan

Well-Known Member
Dec 4, 2004
108
0
166
Chandigarh
Hi,

According to this function: function killacct ($host,$user,$accesshash,$usessl,$killuser)

$killuser is the username of account that is going to get killed ?

Thanks.
 

bhznat

Active Member
Jun 2, 2004
29
0
151
$accts = listaccounts($host,$user,$accesshash,0);
print_r($accts);

This will print WHM List Accounts page.
Is there any solution to get accounts info as an array?
 

bhznat

Active Member
Jun 2, 2004
29
0
151
I found:

$accts = listaccts($host,$user,$accesshash,0);
print_r($accts);

But it will only return username, domain, plan and owner.
How to get Email, Setup Date or even IP???