ON / OFF not working?

Compi-il

Verified User
Joined
May 29, 2005
Messages
6
Hii,
Whay the code alwayse set a unlimited in Bandwidth and Disk Usage.

PHP:
$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.
 
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
 
Does "u" prefix atand for "use" ?

Then ubandwidth mean use_bandwidth_limit

Does it work with 'ubandwidth' => 'ON' with 'bandwidth' => $value
 
u is the prefix for unlimited.

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

John
 
Back
Top