I am trying to disable an account through HTTPSocket. I have this:
Variables used:
$serveraddy = server address (ns1.atomicrax.net)
$qusername = user I want to disable
It doesn't work. I don't know if that's how I'm supposed to do it, I just tried it....
Anyone know how to fix this?
PHP:
include ($DOCUMENT_ROOT . '/directadmin.php');
$sock = new HTTPSocket;
$sock->connect('$serveraddy',2222);
$sock->set_login("admin|webadmin","******");
$sock->set_method('GET');
$sock->query('/CMD_SELECT_USERS',array( 'select0' => '$qusername', 'suspend' => 'Suspend/Unsuspend'));
$result = $sock->fetch_result();
$html = $result;
Variables used:
$serveraddy = server address (ns1.atomicrax.net)
$qusername = user I want to disable
It doesn't work. I don't know if that's how I'm supposed to do it, I just tried it....
Anyone know how to fix this?