I'm having some trouble with CMD_API_ACCOUNT_USER. Seems no matter what I try it still assigns "unlimited" values and doesn't recognize the ON OFF states.
Any ideas?
Any ideas?
PHP:
$socket = new HTTPSocket;
$socket->connect($server,"$daPort");
$socket->set_login("$daUsername","$daPasswd");
$socket->set_method('POST');
// {admin_username} and {admin_password} are not specifically your administrative DA user,
// but rather the user that you want to own this new user.
$socket->query('/CMD_API_ACCOUNT_USER',
array(
'username' => $db[userName],
'email' => $db[email],
'passwd' => 'abc123',
'passwd2' => 'abc123',
'domain' => $db[domainName],
'bandwidth' => $db[bandwidth],
'ubandwidth' => 'OFF',
'quota' => $db[webspace],
'uquota' => 'OFF',
'vdomains' => $db[domains],
'uvdomains' => 'OFF',
'nsubdomains' => '10',
'unsubdomains' => 'OFF',
'ips' => '1',
'nemails' => $db[emailaccts],
'unemails' => 'OFF',
'nemailf' => '0',
'unemailf' => 'ON',
'nemailml' => '0',
'unemailml' => 'OFF',
'nemailr' => '0',
'unemailr' => 'OFF',
'mysql' => $db[mysql],
'umysql' => 'OFF',
'domainptr' => '0',
'udomainptr' => 'OFF',
'ftp' => '0',
'uftp' => 'ON',
'aftp' => 'OFF',
'cgi' => 'ON',
'ssl' => 'OFF',
'ssh' => 'OFF',
'php' => 'ON',
'cron' => 'OFF',
'sysinfo' => 'OFF',
'suspend_at_limit' => 'ON',
'skin' => 'enhanced',
'spam' => 'YES',
'dnscontrol' => 'ON',
'dns' => 'OFF',
'ip' => $ipaddress,
'add' => 'Submit',
'action' => 'create',
'notify' => 'YES'
));