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!

Forwarders and Domain Forwarders in applist

Discussion in 'cPanel Developers' started by intrwrks, Jun 30, 2009.

  1. intrwrks

    intrwrks Registered

    Aug 9, 2004
    Likes Received:
    Trophy Points:
    I am calling the CPanel Branding::applist function through the xmlapi to determine which features can be utilized in my program. The application requires that Forwarders and Domain Forwarders be on separate screens, but in the xml returned it will always return the forwarders feature as long as one of the two are still selected as an allowed feature in the package.

      <feature>forwarders || emaildomainfwd</feature> 
      <origin>x3 (System)</origin> 
    The code above shows the section of xml I am referring. The feature tag will always show both even if you have one or the other unselected.

    Is there any way to determine if one or the other is not selected in the feature package through the CPanel api?
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    At this time, there's no equivalent to the <cpanelfeature ...> tag that is available in our XML API.

    If you have root access to the server and the script is running server-side, what you could do is fetch the package associated with that account, then list packages to see which feature list is associated with that package. Then you can compare that with the contents of the file (which has the same name as the name of the feature list) in /var/cpanel/features/ to see if that feature is enabled.

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