Hi all,
I can't suspend account with api
i read some arctile:
1. http://www.directadmin.com/features.php?id=807
2. http://www.directadmin.com/api.html#suspend
3. http://files.directadmin.com/services/all/httpsocket/examples/example.suspend_user.php
This is my code:
//it worked with create new user but not with suspened or unsuspended
Please help me how to suspened user with php api
//sorry for my poor english.
Regard.
I can't suspend account with api
i read some arctile:
1. http://www.directadmin.com/features.php?id=807
2. http://www.directadmin.com/api.html#suspend
3. http://files.directadmin.com/services/all/httpsocket/examples/example.suspend_user.php
This is my code:
PHP:
$sock = new HTTPSocket;
$sock->connect('ip',2222);
$sock->set_login('reseller','{pass}');
$sock->query('/CMD_API_SELECT_USERS',
array(
'location' => 'CMD_SELECT_USERS',
'dosuspend' => 'username'
));
Please help me how to suspened user with php api
//sorry for my poor english.
Regard.