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.

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:
    6
    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:
    16
    have you tried just passing commands to the existing whm scripts??

    like:

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


    .
     
  3. jlimited

    jlimited Well-Known Member

    Joined:
    Jun 4, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    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:
    6
    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:
    118
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page