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.

reason at suspend an account

Discussion in 'cPanel Developers' started by eugui, Feb 25, 2008.

Thread Status:
Not open for further replies.
  1. eugui

    eugui Member

    Joined:
    Dec 10, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    MarĂ­lia, SP, Brazil
    Hi,

    I have a class that have this function:

    function suspend($acctUser, $reason)
    {
    // connect using prpoer xml api address
    $this->connect("/xml-api/suspendacct?user=$acctUser&reason=$reason");

    if i use:
    $suspensao = $xwhm->suspend($contas[$i]['user'], 'Atraso no Pagamento');

    the domain will be suspend but the reason at WHM is only 'Atraso' and not ''Atraso no Pagamento' if i suspend using my whm and not xml-api whith the reason 'Atraso no Pagamento' th e domain will be suspend whith the reason 'Atraso no Pagamento'


    thanks

    ====

    i have the solution

    $reason = 'Atraso no Pagamento';
    $reason = urlencode($reason);

    Thanks

    close this topic
     
    #1 eugui, Feb 25, 2008
    Last edited: Feb 25, 2008
Loading...
Thread Status:
Not open for further replies.

Share This Page