#1 (permalink)  
Old 06-12-2007, 10:14 AM
Registered User
 
Join Date: Jun 2006
Posts: 32
DevBreak is on a distinguished road
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|po stgresdiskusage|emailac_counts|subdomains|parkeddo mains|addondomains|ftpaccounts|sqldatabases|mailin glists|hostingpackage|cpanelversion|theme|apacheve rsion|phpversion|mysqlversion|machinetype|operatin gsystem|sharedip|dedicatedip|sendmailpath|perlpath |kernelversion| ?>
</table>
__________________
Marian Cursaru
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-09-2009, 09:30 PM
Registered User
 
Join Date: Nov 2005
Posts: 12
smilesinblues is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-10-2009, 10:44 AM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
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)?
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-10-2009, 10:45 AM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
** I've moved this thread to Developer Corner since this entire thread is a discussion about our APIs so far. **
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:23 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc