Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    153

    Default Accounting php module

    Hi guys,

    is it possible to create an account with php automatically?
    Yes, it is.

    But how can I state the max-ftp accounts or max databases??

    It is impossible for me to handle this issue with packages because every customer has different and individual figures so I'd have to create a package for every customer.

    I'm searching for a solution like this one:

    createacc(....,$max_mail, $max_ftp, $skin, ...) It would be also ok to handle the data with an array or something...

    Thank you so much!!!

    Strauberry

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    153

    Default

    nobody???

    S**T

  3. #3
    Member
    Join Date
    Feb 2002
    Location
    UK
    Posts
    461

    Default

    There have been some modifications to the accounting php module to do various things, i dont see why you cant change it to do what you want... do a searcg on the forum.

  4. #4
    Member
    Join Date
    Mar 2003
    Posts
    153

    Default

    Hi,

    before I post a message I always search the forum!

    Ok then, I have to find my own way to handle (again )

    Thank you!
    strauberry

  5. #5
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

  6. #6
    Member
    Join Date
    Feb 2002
    Location
    UK
    Posts
    461

    Default

    Try adding something like this to your accounting.php.inc on your server (but put all the bits you want in!):


    function createcustom ($host,$user,$accesshash,$lotsofvars,$morevars) {
    $result = whmreq("/scripts/wwwacct?var=${var}",$host,$user,$accesshash,$usessl);
    if ($cpanelaccterr != "") { return; }
    return $result;
    }
    Last edited by SoftmegUK; 04-14-2003 at 05:49 AM.

  7. #7
    Member
    Join Date
    Mar 2003
    Posts
    153

    Default

    Hi,
    thank you for your answers, they look quite good!

    Now there's another problem! The simplest example doesn't work I found various posting concerning this issue but there aren't any answers
    I use the example from the doc on the cpanel-website but there is no output

    PHP Code:
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';


       
    $host "IP-Adresse";
       
    $user "root";
       
    $accesshash 'HASH';

       
    $accts listaccts($host,$user,$accesshash,1);
       
    print_r($accts);
       
    $pkgs listpkgs($host,$user,$accesshash,1);
       
    print_r($pkgs); 
    Thank you so much again!

    Best regards
    Strauberry

  8. #8
    Member
    Join Date
    Feb 2002
    Location
    UK
    Posts
    461

    Default

    Do you have curl support on your server?

  9. #9
    Member
    Join Date
    Mar 2003
    Posts
    153

    Default

    Hi,

    yes curl is installed and I think that the curl should support the accounting.

    Thank you!
    strauberry

Similar Threads & Tags
Similar threads

  1. Accounting php module
    By pronisis in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-22-2005, 04:33 AM
  2. Using the Cpanel Accounting PHP module
    By easyhttp in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-14-2004, 12:01 PM
  3. Accounting PHP module
    By InSite in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-21-2003, 07:52 AM
  4. cPanel Accounting PHP module
    By iHost in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-20-2003, 08:20 AM
  5. Accounting php module
    By pronisis in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-15-2003, 06:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube