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.

quota tag

Discussion in 'User Experience' started by tsg247, Feb 11, 2004.

  1. tsg247

    tsg247 Active Member

    Joined:
    Feb 8, 2004
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Georgia
    I'm new here, obviously, however I've been searching for the last 30 mins for the tag that's used to display the account quota. I've got one for displaying the current usage and how much is left, but how do I display how much they're allowed? Thanks!
     
  2. oinkmedia

    oinkmedia Well-Known Member

    Joined:
    Jul 5, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    SW London (UK)
    I assume you mean Bandwidth? Try:

    $bandwidth = $Cpanel::CPDATA{'BWLIMIT'};
    print "Your monthly bandwidth allowance is: " . $bandwidth/1048576;
     
  3. tsg247

    tsg247 Active Member

    Joined:
    Feb 8, 2004
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Georgia
    Actually, I meant a tag to show the total available MB in webspace... but then I realized that there isn't one, so I wrote a php script to combine
    PHP:
    <cpanel Quota="showquotaused()">
    with
    PHP:
    <cpanel Quota="showquotaremain()">
    ... so all is well now! Thanks!
     
Loading...

Share This Page