Results 1 to 6 of 6

Thread: [Q]:showing bandwidth in the homepage?

  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    25

    Default [Q]:showing bandwidth in the homepage?

    Hi
    I thook about this a lot
    When I login in my cpanel I see the Bandwidth usage and I allows wandered
    Can it show by php code in the homepage of my website?

  2. #2
    Member
    Join Date
    Mar 2004
    Location
    Ayr, North Queensland, Australia
    Posts
    328

    Default

    There are ways, but they are tricky. I'd try using it via perl, it works a LOT better. Check out the cPanel API for the full listing of tags you can use to get some info outta cpanel .

    Regards,
    Brent

    Talk at cPanel IRC
    cPanel IRC Logs (Publicly available) @ My Site

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    25

    Default

    tricky is better
    It makes me feel that I’m doing something special

    I will see the API you refer to me

  4. #4
    Member
    Join Date
    Jan 2005
    Posts
    25

    Default

    Hay
    It’s a wide section
    I don’t know what they are talking about there
    Ok I have a cpanel and whm but I am an only user for them not a developer as I saw there
    So could you guide me to the one that I need it to do the job

  5. #5
    Member
    Join Date
    Jan 2005
    Posts
    25

    Default

    I’m starting to read the documentation in this website and i found this
    http://cpanel.net/remoteaccess-php.html
    And
    http://www.cpanel.net/Modules-HOWTO.txt

    The first one is about php, and it is not useful to understand the story here by php

    The second one is by perl and I found in line 179
    "stats" = "View Account Statistics";

    I don’t know about this stuff but I think that it is related to what I’m searching for
    I will see that I can find out, but if you have any information will help me please let me know

  6. #6
    Member
    Join Date
    Jan 2005
    Posts
    25

    Default

    this is what i feger out
    Code:
    #!/usr/bin/perl
    BEGIN {
            push(@INC,"/usr/local/cpanel");
            push(@INC,"/usr/local/cpanel/whostmgr/docroot/cgi");
    }
    use 'whmlib';
    require 'parseform.pl';
    
    use Cpanel::Accounting;
    
    if (!($ACL{'stats'} || $ACL{'all'})) {
    	print "Sorry permission denied to remove user";
    	exit();
    }
    "stats" = "View Account Statistics";
    i know that it's not complate but this is what i can do according to my zero understanding to perl

Similar Threads

  1. All domains showing 0 bandwidth.
    By bmurphy in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 08-15-2008, 08:51 AM
  2. Index page showing up instead of homepage
    By acommisso in forum Data Protection
    Replies: 4
    Last Post: 03-14-2008, 12:40 PM
  3. bandwidth showing as Zero used
    By shann in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 11-17-2005, 09:41 AM
  4. Showing Bandwidth/Diskspace
    By robjones2005@bl in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 07-01-2005, 03:58 PM
  5. Bandwidth not showing up
    By Sutre24 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-25-2005, 02:33 AM