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 Module, Up/Downgrading accounts

Discussion in 'General Discussion' started by stoo2000, Nov 28, 2003.

  1. stoo2000

    stoo2000 Active Member

    Joined:
    Jul 26, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Leicestershire, UK
    cPanel Access Level:
    Root Administrator
    I am trying to create a remote file that can upgrade & downgrade accounts, problem is there isnt a function, so i made one. I cant get it to work though :(

    PHP:
    function upgradepkg ($host,$user,$accesshash,$usessl,$user,$pkg) {
        
    $result whmreq("/scripts2/upacct?user=${user}&pkg=${pkg}&nohtml=1",$host,$user,$accesshash,$usessl);
        if (
    $cpanelaccterr != "") { return; }
        return 
    $result;
    }
    I use this to call it :

    PHP:
    upgradepkg ($host,$user,$accesshash,$usessl,$user,$pkg);
    any one got any ideas ????
     
  2. h2oski

    h2oski Well-Known Member

    Joined:
    Dec 12, 2001
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    306
    were you able to get this working?
     
  3. stoo2000

    stoo2000 Active Member

    Joined:
    Jul 26, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Leicestershire, UK
    cPanel Access Level:
    Root Administrator
    Yeh, only just got it working, just went over it a few times and changes some var names, and it works :D
     
  4. h2oski

    h2oski Well-Known Member

    Joined:
    Dec 12, 2001
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    306
    can you post the working code :)
     
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