Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    32

    Angry cPanel API2

    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([tr][td]%[/td][td]%[/td][/tr],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>
    Marian Cursaru

  2. #2
    Member
    Join Date
    Nov 2005
    Posts
    12

    Default

    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. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by smilesinblues View Post
    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
    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. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    ** I've moved this thread to Developer Corner since this entire thread is a discussion about our APIs so far. **

Similar Threads & Tags
Similar threads

  1. How to get SSH port from cPanel (API2)
    By mberchtold in forum cPanel Developers
    Replies: 2
    Last Post: 04-02-2009, 11:32 AM
  2. minimum cpanel verion for api2
    By sllik in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-25-2007, 09:12 PM
  3. What about the cPanel API2 tags?
    By orware in forum cPanel Developers
    Replies: 0
    Last Post: 05-08-2007, 11:29 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube