Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    156
    <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:
    151
    hello,

    this information helped me.

    just wanted to say thx.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice