The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Suspend and UnSuspend an Accounts

Discussion in 'cPanel Developers' started by eugui, Mar 24, 2008.

  1. eugui

    eugui Member

    Joined:
    Dec 10, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Marília, SP, Brazil
    Hi, i'm using xml-api and i want to know if the UnSuspend function have more delay that Suspend function. I'm using:


    PHP:
    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;
    }
    []´z
     
Loading...

Share This Page