Description

This function checks whether Horde is enabled.

Examples


https://hostname.example.com:2083/cpsess##########/execute/DAV/is_horde_enabled

$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Verify that the system has Horde enabled.
$DAV = $cpanel->uapi(
    'DAV', 'is_horde_enabled'
);

 

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
  
# Verify that the system has Horde enabled.
my $is_horde_enabled = $cpliveapi->uapi(
    'DAV', 'is_horde_enabled',
);

 

<!-- Verify that the system has Horde enabled. -->
[% data = execute( 'DAV', 'is_horde_enabled' ); %]
[% FOREACH q = data %]
     <p>
         [% q %]
     </p>
[% END %]

 

uapi --user=username DAV is_horde_enabled

{
    "messages": null,
    "errors": null,
    "status": 1,
    "metadata": {},
    "data": {
        "enabled": 1
    }
}

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
enabledBoolean

Whether Horde is enabled.

  • 1 — Enabled.
  • 0 — Disabled.
1