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.

List Packages PHP

Discussion in 'General Discussion' started by thekidscareya, Jul 16, 2005.

  1. thekidscareya

    thekidscareya Member

    Joined:
    Aug 11, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    I have the following script:
    PHP:
    $package $_GET['package'];
    $pkgs listpkgs($whm_host,$whm_username,$whm_hash,$whm_ssl);

            foreach(
    $pkgs as $name=>$value)
                {
                if(
    $name == $package)
                    {
                    echo 
    "<p>Package: $package<br>";
                    echo 
    "Space: $value[2] MB<br>";
                    echo 
    "Shell Access: <br>";
                    echo 
    "FTP Accounts: <br>";
                    echo 
    "MySQL Databases: <br>";
                    echo 
    "Email Accounts: <br>";
                    echo 
    "Email Lists: <br>";
                    echo 
    "Subdomains: <br>";
                    echo 
    "Addon Domains: <br>";
                    echo 
    "Parked Domains: <br>";
                    echo 
    "Dedicated IP: <br>";
                    echo 
    "CGI: <br>";
                    echo 
    "Front Page Extensions: <br>";
                    echo 
    "cPanel Theme: $value[5] <br>";
                    echo 
    "Bandwidth: $value[10] MB<br>";
                    echo 
    "Features: $value[14] </p>";
                    }
    }

    Here's my problem: I don't know what $value[3], $value[4], $value[6]...$value[9], $value[11]...$value[13] will give me. I know that the boolean ones (CGI access, IP, Shell) will give me a Y or N, but there are multiple Y and N in the array...I don't know which ones they are for. Can someone help me in this regard?

    Thanks.
     
Loading...

Share This Page