Hi, i'm using xml-api and i want to know if the UnSuspend function have more delay that Suspend function. I'm using:
[]´zPHP Code:function whmUnsuspendAccount($host, $user, $hash, $user_whm)
{
$retorno = array();
$reativacao = whmreq("/xml-api/unsuspendacct?user=$user_whm", $host, $user, $hash);
$XmlToArray = new XmlToArray($reativacao);
$retorno = $XmlToArray->createArray();
return $retorno;
}
function whmSuspendAccount($host, $user, $hash, $user_whm, $motivo)
{
$motivo = urlencode($motivo);
$suspensao = whmreq("/xml-api/suspendacct?user={$user_whm}&reason=$motivo", $host, $user, $hash);
$XmlToArray = new XmlToArray($suspensao);
$retorno = $XmlToArray->createArray();
return $retorno;
}



LinkBack URL
About LinkBacks

Reply With Quote




