Guide to the LiveAPI System - The cpanelfeature() Method

Description

The cpanelfeature() method is a wrapper for the feature tag, which checks whether the authenticated user has access to a feature.  

Example  


LiveAPI PHP Class

1
2
// Check whether the cPanel user has access to the SSL Manager.
$cpanel->cpanelfeature (sslmanager);



LiveAPI Perl Module

1
2
# Check whether the cPanel user has access to the SSL Manager.
$cpliveapi->cpanelfeature(sslmanager);



Parameters

 Parameter 

Type

Description

Possible values

Example

feature

 string 

 The feature to query. 

A valid cPanel & WHM feature name.

Note:

 You can use WHM API 1's get_feature_names function to access a list of available feature names. 

 sslmanager 

 

Returns

This method returns a boolean value:

  • 1 — The cPanel user has access to the feature.
  • 0 — The cPanel user does not have access to the feature.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

The cPanel Interface

For  cPanel  &  WHM  version  58 Overview The cPanel interface is...

User Preferences

For cPanel & WHM version 58 Overview This document outlines how to access your cPanel...

Manage External Authentications

For cPanel & WHM version 58 Overview Manage credentials Additional documentation...

What is cPanelID?

In This Article:  Overview ServicesHow to get a cPanelID cPanelID External...

Guide to cPanel Interface Customization - cPanel Style Development

Introduction You can develop custom styles that modify the appearance of the cPanel interface....