PDA

View Full Version : ON / OFF not working?



Compi-il
06-27-2006, 01:54 AM
Hii,
Whay the code alwayse set a unlimited in Bandwidth and Disk Usage.



$sock->query('/CMD_ACCOUNT_RESELLER',
array(
'action' => 'create',
'add' => 'Submit',
'username' => $username,
'email' => $email,
'passwd' => $password,
'passwd2' => $password2,
'domain' => $domain,
'bandwidth' => $v1,
'ubandwidth' => 'OFF',
'quota' => $v2,
'uquota' => 'OFF',
'vdomains' => '0',
'uvdomains' => 'ON',
'nsubdomains' => '0',
'unsubdomains' => 'ON',
'ips' => '1',
'nemails' => '0',
'unemails' => 'ON',
'nemailf' => '0',
'unemailf' => 'ON',
'nemailml' => '0',
'unemailml' => 'ON',
'nemailr' => '0',
'unemailr' => 'ON',
'mysql' => '0',
'umysql' => 'ON',
'domainptr' => '0',
'udomainptr' => 'ON',
'ftp' => '0',
'uftp' => 'ON',
'aftp' => 'OFF',
'php' => 'ON',
'cgi' => 'ON',
'ssl' => 'ON',
'ssh' => 'ON',
'userssh' => 'OFF',
'dnscontrol' => 'ON',
'dns' => 'OFF',
'serverip' => 'ON',
'ip' => 'shared',
'notify' => $send
));


Thank You,
Meni.

Compi-il
07-12-2006, 10:49 AM
any?

DirectAdmin Support
08-15-2006, 10:36 AM
don't add:

'ubandwidth' => 'OFF',

The checkbox is only check for prescence, not value.. so if it's passed, it's unlimited. Don't pass ubandwidth at all if you want to use your numerical value.

John

kke
08-15-2006, 10:25 PM
Does "u" prefix atand for "use" ?

Then ubandwidth mean use_bandwidth_limit

Does it work with 'ubandwidth' => 'ON' with 'bandwidth' => $value

DirectAdmin Support
08-15-2006, 10:28 PM
u is the prefix for unlimited.

so ubanwidth=ON mean it will ignore "bandwidth=anything you set" and set it to unlimited.

John

Compi-il
08-15-2006, 10:32 PM
Thank You John!

Its Working.

Meni.