|
|||
|
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>
Is there any way to determine if one or the other is not selected in the feature package through the CPanel api? |
|
||||
|
Quote:
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 |
![]() |
| Tags |
| applist forwarders xmlapi |
| Thread Tools | |
| Display Modes | |
|
|
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 |