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.

cPanel API2

Discussion in 'cPanel Developers' started by DevBreak, Jun 12, 2007.

  1. DevBreak

    DevBreak Active Member

    Joined:
    Jun 26, 2006
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    0
    When i use function Cpanel::StatsBar::stat this not show all statistics

    Disk Space Usage *
    Monthly Bandwidth Transfer *
    MySQL Disk Space *
    Postgresql Disk Space *
    Email Accounts *
    Subdomains *
    Parked Domains *
    Addon Domains *
    Ftp Accounts *
    SQL Databases *
    Mailing Lists *
    Hosting package hostpack
    cPanel Version 11.4.6-RELEASE
    Theme x3
    Apache version 1.3.37 (Unix)
    PHP version 5.2.1
    MySQL version 4.1.22-standard
    Architecture i686
    Operating system Linux
    Shared Ip Address 212.146.x.x
    Path to sendmail /usr/sbin/sendmail
    Path to PERL /usr/bin/perl
    Kernel version 2.6.x

    the script used is the follow
    <table>
    <?cp StatsBar::stat(%%,item,value) display=diskusage|bandwidthusage|mysqldiskusage|postgresdiskusage|emailac_counts|subdomains|parkeddomains|addondomains|ftpaccounts|sqldatabases|mailinglists|hostingpackage|cpanelversion|theme|apacheversion|phpversion|mysqlversion|machinetype|operatingsystem|sharedip|dedicatedip|sendmailpath|perlpath|kernelversion| ?>
    </table>
     
  2. smilesinblues

    smilesinblues Member

    Joined:
    Nov 20, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    can you please assist me with how to make those calls. I only know how to make a call from the URL but these <?cp tags have got my head spinning.

    Regards,
    Jaunty
     
  3. 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
    I'll be glad to assist you.

    Are you trying to change this API call (such as via the Branding Editor to hide certain statistics) or are you trying to call this from a remote script (such as a PHP script on a website)?
     
  4. 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
    ** I've moved this thread to Developer Corner since this entire thread is a discussion about our APIs so far. **
     
Loading...

Share This Page