Description

This function checks whether BoxTrapper automatic whitelisting is enabled for an account.

Examples 




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$boxtrapper_auto_whitelist = $cpanel->api1('BoxTrapper', 'showautowhitelist', array('user@example.com') ); // Call the function.



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $boxtrapper_auto_whitelist = $cpliveapi->api1('BoxTrapper', 'showautowhitelist', ['user@example.com'] ); # Call the function.

 


<cpanel Module="BoxTrapper::showautowhitelist( $FORM('account') )">




cpapi1 --user=username BoxTrapper showautowhitelist user@example.com



checked="checked" 




Parameters

ParameterTypeDescriptionPossible valuesExample
accountstring

Required

The account's email address.

A valid email address on the server.user@example.com

Returns

  • If automatic whitelisting is enabled for the account, this function returns checked="checked".
  • If automatic whitelisting is disabled for the account, this function does not return output.