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!

PHP Accounting Functions

Discussion in 'General Discussion' started by jlimited, Dec 8, 2005.

  1. jlimited

    jlimited Well-Known Member

    Joined:
    Jun 4, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    Hello,

    I have not had much luck creating PHP scripts that can do the following:

    Suspend an Account
    Unspend an Account
    Terminate an Account

    Does anyone have some of these scripts that I can look at?

    Jlimited
     
  2. fikse

    fikse Well-Known Member

    Joined:
    May 10, 2003
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    166
    have you tried just passing commands to the existing whm scripts??

    like:

    scripts2/suspendacct?domain=www.whatever.com&user=whateverusers&suspend-domain=Suspend&reason=


    .
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jlimited

    jlimited Well-Known Member

    Joined:
    Jun 4, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    Did not work

    Nope.

    That did not work. I am most likely missing the content (what come before and after) of that code.

    The documentation states there are "suspend and unsuspend" commands, but does not give any variables that go with those commands or sample code, showing how to do it.

    Thanks
    Jlimited
     
  4. jlimited

    jlimited Well-Known Member

    Joined:
    Jun 4, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    Found some

    I was able to find some script samples that I can test.
     
  5. wzd

    wzd Well-Known Member

    Joined:
    Dec 16, 2005
    Messages:
    120
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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