Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Api Addition Request Killpkg

Discussion in 'General Discussion' started by rapta, Jun 18, 2004.

  1. rapta

    rapta Active Member

    Joined:
    Aug 20, 2003
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    156
    I am writing software and using cpanels api system. Accounting.pm has no way of 'removing packages'.

    Can the following be added to Accounting.pm.

    sub killpkg {
    my($self,$pkg) = @_;
    my($response);
    my (@PAGE) = $self->whmreq("/scripts/killpkg?pkg=${pkg}&nohtml=1");

    if ($self->{error} ne "") { return(); }

    foreach $_ (@PAGE) {
    s/\n//g;
    $response .= $_ . "\n";
    }
    return($response);
    }


    Thank you,
    Dave Bushea
     
  2. rapta

    rapta Active Member

    Joined:
    Aug 20, 2003
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    156
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice