
Originally Posted by
Claus
Hello,
can this function return other fields than domain and user?
function listaccts ($host,$user,$accesshash,$usessl,$dom) {
$result = whmreq("/scripts2/listaccts?nohtml=1&searchtype=domain&search=$dom&viewall=1",$host,$user,$accesshash,$usessl);
if ($cpanelaccterr != "") { return; }
$page = split("\n",$result);
foreach ($page as $line) {
list($acct,$contents) = split("=", $line);
if ($acct != "") {
$allc = split(",", $contents);
$accts[$acct] = $allc;
}
}
return($accts);
}