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 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:
    6
    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:
    6
    were you able to get this working?
     
  3. stoo2000

    stoo2000 Active Member

    Joined:
    Jul 26, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    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:
    6
    can you post the working code :)
     
Loading...

Share This Page