Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    2

    Default Forwarders and Domain Forwarders in applist

    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.

    Code:
    <items>
      <description>$LANG{'TForwarders'}</description> 
      <feature>forwarders || emaildomainfwd</feature> 
      <file>forwardersemail</file> 
      <group>mail</group> 
      <height>32</height>
      <imgtype>icon</imgtype> 
      <itemdesc>$LANG{'NavForwarders'}</itemdesc> 
      <itemorder>5</itemorder> 
      <origin>x3 (System)</origin> 
      <searchtext>$LANG{'forwarders-searchtxt'}</searchtext> 
      <subtype>img</subtype> 
      <type>image</type> 
      <url>mail/fwds.html</url> 
      <width>32</width>
    </items>
    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. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by intrwrks View Post
    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.

    Code:
    <items>
      <description>$LANG{'TForwarders'}</description> 
      <feature>forwarders || emaildomainfwd</feature> 
      <file>forwardersemail</file> 
      <group>mail</group> 
      <height>32</height>
      <imgtype>icon</imgtype> 
      <itemdesc>$LANG{'NavForwarders'}</itemdesc> 
      <itemorder>5</itemorder> 
      <origin>x3 (System)</origin> 
      <searchtext>$LANG{'forwarders-searchtxt'}</searchtext> 
      <subtype>img</subtype> 
      <type>image</type> 
      <url>mail/fwds.html</url> 
      <width>32</width>
    </items>
    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?
    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.

Similar Threads & Tags
Similar threads

  1. how to remove / deleted all email forwarders from particular domain ??
    By crazyaboutlinux in forum E-mail Discussions
    Replies: 7
    Last Post: 02-04-2011, 05:31 PM
  2. Email Domain Forwarders
    By soisix in forum E-mail Discussions
    Replies: 5
    Last Post: 12-30-2009, 05:08 PM
  3. Where are domain forwarders stored
    By CoolMike in forum New User Questions
    Replies: 3
    Last Post: 12-07-2009, 08:54 PM
  4. Where are domain forwarders stored
    By CoolMike in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-07-2009, 08:54 PM
  5. Domain missing from EMail forwarders
    By DigitalSurgeon in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-05-2005, 05:58 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube