Description

This function enables or disables a statistics program for a domain.

Examples 




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$doform_statmanager = $cpanel->api1('StatManager','updateUserConfig', array('WEBALIZER-EXAMPLE.COM') ); // Call the function.



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $doform_statmanager = $cpliveapi->api1('StatManager','updateUserConfig', ['WEBALIZER-EXAMPLE.COM'] ); # Call the function.

 


<cpanel Module="SubDomain::updateUserConfig( $FORM('WEBALIZER-EXAMPLE.COM') )">




cpapi1 --user=username StatManager updateUserConfig yes


This function does not return output.



Parameters

ParameterTypeDescriptionPossible valuesExample

STATSPROGRAM-DOMAIN.COM

 

string

Required

The statistics program and its domain.

The parameter's name is the statistics program's name in capital letters, a hyphen (- ), the domain name in capital letters.


  • yes — Enabled.
  • no — Disabled.
WEBALIZER-EXAMPLE.COM=yes

Returns

This function does not return output.