Community Forums
Connect with us on LinkedIn
Closed Thread
Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    Dec 2007
    Location
    Marília, SP, Brazil
    Posts
    18

    Default reason at suspend an account

    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
    Last edited by eugui; 02-25-2008 at 09:11 AM.

Similar Threads & Tags
Similar threads

  1. Filed with Developers Search for Suspend / Unsuspend an Account function in WHM [Case 57215]
    By DjiXas in forum Feature Requests for cPanel/WHM
    Replies: 8
    Last Post: 02-22-2012, 09:10 AM
  2. Enlarge suspend reason box
    By jsnape in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 10-08-2010, 10:55 AM
  3. suspendacct to suspend account, what command to suspend reseller?
    By sodapopinski in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-06-2009, 10:06 AM
  4. help me how to suspend an account
    By hamed23100 in forum cPanel Developers
    Replies: 4
    Last Post: 01-31-2009, 01:13 PM
  5. Cant suspend account?
    By Daemon1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-13-2007, 09:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube