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.

Plan Edit whmreq function

Discussion in 'General Discussion' started by DanielJay, Mar 4, 2004.

  1. DanielJay

    DanielJay Member

    Joined:
    Apr 3, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    In a house in the USA!
    I have been trying to figure out all of the fields in the whmreq plan function and I have most of them figured out. Could somebody that knows for sure tell me if what I have is correct and what the missing one is? Thanks in advance.

    Values of each package array
    0 = own ip (possibly
    1 = cgi access
    2 = quota
    3 =
    4 = theme
    5 = ftp
    6 = sql
    7 - email
    8 - email lists
    9 - sub domains
    10 - bandwidth
    11 - shell
    12 - parked domains
    13 - addon domains
    14 = featur list

    I am using the following to show what I am getting:
    PHP:
    $list_packages listpkgs($host,$user,$accesshash,0);
    while(list(
    $key,$value) = @each($list_packages)) {
    echo <<<END
    <font color="red">$key</font><br>
    END;
    while(list(
    $key2,$value2) = @each($value)) {
    echo <<<END
    &nbsp;&nbsp;&nbsp;- <font color="red">$key2</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value2<br>
    END;
    }
    }
     
Loading...

Share This Page