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.

Detect package to show or not a function

Discussion in 'General Discussion' started by equens, Sep 8, 2002.

  1. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    Hello, I need to detect the package for a domain when user access to cpanel, because I want to offer the addon domains only to the best plan that I offer.

    How can I do this?

    If the package is 450 Mb they will see this option and if the package is not 450 they will not see this option.

    I have tried to access to a .dat out the server to read this information but I can´t, p.ejem:

    $domain = &&cpanel print=\&DOMAIN\&&&;
    require &http://www.mydomain/cpanel/$domain.dat&;
    if $plan=&Enterprise& {} else {} ....

    I need to read this archive (domain.com.dat) from my web site because my plans are in various servers and I think this is the best option.

    So I will can add other information to this .dat like the name, company, plan, etc...

    Help! I think this would be great to all.
    Thanks!
     
Loading...

Share This Page