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.

script to see info of cpanel

Discussion in 'cPanel Developers' started by fpr, Mar 24, 2009.

  1. fpr

    fpr Active Member

    Joined:
    Oct 15, 2006
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    I need script to custumer see

    Quota limit and in use
    Bandwidth limit and in use
    FTP Accounts limit and in use
    mysql data base limit and in use
    email accounts limit and in use
    subdomain limit and in use

    I would like someone send me some information about this.

    how i get this info of cpanel. :)
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Here's a URL to call from our XML API where username is the cPanel username:

    Code:
    https://[Color="RoyalBlue"]SERVER[/Color]:2083/xml-api/cpanel?user=[COLOR="RoyalBlue"]username[/COLOR]&xmlin=<cpanelaction><module>StatsBar</module><func>stat</func><apiversion>2</apiversion><args><display>[COLOR="RoyalBlue"]diskusage|bandwidthusage|ftpaccounts|sqldatabases|emailac_counts|subdomains[/COLOR]</display></args></cpanelaction>
    You can find the content for <display>..</display> can be found in index.html within the Branding Editor.

    You can substitute https and 2083 with http and 2082 if you desire.
     
  3. fpr

    fpr Active Member

    Joined:
    Oct 15, 2006
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    how to insert it in my code php? i'm newbie of this.
     
  4. fpr

    fpr Active Member

    Joined:
    Oct 15, 2006
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    if u can, u send one exemple for me?
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page