#1 (permalink)  
Old 06-30-2009, 08:59 PM
Registered User
 
Join Date: Aug 2004
Posts: 1
intrwrks is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-01-2009, 05:01 PM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
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.
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
applist forwarders xmlapi

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
forwarders for particular domains krava cPanel and WHM Discussions 0 03-07-2007 12:22 PM
Forwarders And Catchall anup123 cPanel and WHM Discussions 0 01-16-2006 09:14 AM
Domain missing from EMail forwarders DigitalSurgeon cPanel and WHM Discussions 1 09-05-2005 05:58 AM
Adding Forwarders atony34 cPanel Newbies 2 08-29-2004 09:53 PM
Where are forwarders stored? mrbaseball34 cPanel and WHM Discussions 2 08-27-2004 09:58 AM


All times are GMT -5. The time now is 07:52 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc