Child pages
  • cPanel API 1 Functions - StatManager::updateUserConfig

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

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

Include Page
LIB:_cPanelAPI1NoEquivalent
LIB:_cPanelAPI1NoEquivalent

Multiexcerpt include
SpaceWithExcerptcom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@12665
MultiExcerptNameAPIDisabledWebServerRole
PageWithExcerptLIB:_ServerRoleDisabledAPI

Panel
bgColor#F2F2F2
borderStylenone

Examples 


Panel
bgColor#FFFFFF
borderStylenone


Expand
titleLiveAPI PHP Class


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

Include Page
LIB:_LiveAPIPHPLink
LIB:_LiveAPIPHPLink


Expand
titleLiveAPI Perl Module


Code Block
languageperl
linenumberstrue
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.

Include Page
LIB:_LiveAPIPerlLink
LIB:_LiveAPIPerlLink

 


Expand
titlecPanel Tag System (deprecated)

Include Page
LIB:_cPanelTagsWarning
LIB:_cPanelTagsWarning

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



Expand
titleCommand Line


Code Block
languagebash
cpapi1 --user=username StatManager updateUserConfig yes

Include Page
LIB:_WHMAPI1CLINote
LIB:_WHMAPI1CLINote


Expand
titleOutput (none)
This function does not return output.



Parameters

ParameterTypeDescriptionPossible valuesExample

STATSPROGRAM-DOMAIN.COM

 

string

Required

The statistics program and its domain.

Note
titleNote:

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.