Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setresellersips function broken #6

Closed
ghost opened this issue Jun 14, 2012 · 0 comments
Closed

setresellersips function broken #6

ghost opened this issue Jun 14, 2012 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 14, 2012

Hi there,

This is technically a cPanel bug, but something that can be addressed in the xmlapi-php code in the meantime.

Attempting the following code seems to work, doesn't return an error or invalid code, but does not work correctly:

$xmlapi->setresellerips($reseller, $ipaddress);

That is, if you verify the result in WHM by selecting the reseller and their IP allocation, it is incorrect. The API documentation mentions that the IP addresses must be separated by a comma. Even if you are only passing a single value, the API seems to want this to end in a comma. Our workaround is as follows:

$xmlapi->setresellerips($reseller, $ipaddress . ",");

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant