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.

total bandwidtch

Discussion in 'User Experience' started by jarek, Dec 4, 2003.

  1. jarek

    jarek Member

    Joined:
    Jul 19, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    how to show total bandwidth in cpanel?

    shows nothing.

    any ideas?
     
  2. ssilvius

    ssilvius Active Member

    Joined:
    May 20, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    <cpanel print="$CPDATA{'BWLIMIT'}"> shows the bytes that the package / user is limited too. if it's unlimitied it shows nothing. You'll need to wrap it in javascript for it to be of use. Like:

    Code:
    <SCRIPT>
    bwl = <cpanel print="$CPDATA{'BWLIMIT'}"> / 1048576;
    document.write ( String(bwl));
    </SCRIPT>
    
    
    Took me a good long time to figure that one out. I though it was brokenjunk also.
     
    #2 ssilvius, Dec 10, 2003
    Last edited: Dec 10, 2003
  3. C3W

    C3W Member

    Joined:
    Jun 10, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    hello,

    this information helped me.

    just wanted to say thx.
     

Share This Page