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.

WHM and Accounts on server.

Discussion in 'General Discussion' started by dquinney, Aug 19, 2005.

  1. dquinney

    dquinney Member

    Joined:
    Mar 20, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Is there a script like the accounting.inc.php file to show how many accounts there are on a server through whm?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The simplest way would be to count the files in /var/cpanel/users/*, otherwise WHM > List Accounts gives you the total.
     
  3. dquinney

    dquinney Member

    Joined:
    Mar 20, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    So it cannot be done through a function like:
    PHP:
    function showaccts ($host,$user,$accesshash,$usessl) {
        
    $result whmreq("/scripts2/showaccts",$host,$user,$accesshash,$usessl);
        if (
    $cpanelaccterr != "") { return; }
        return 
    $result;
    }
    btw that exact code doesn't work :(
     
  4. dquinney

    dquinney Member

    Joined:
    Mar 20, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Bump......
     
Loading...

Share This Page