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.

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:
    6
    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:
    6
Loading...

Share This Page