Description
This function checks whether Horde is enabled.
Examples
cPanel or Webmail Session URL
https://hostname.example.com:2083/cpsess##########/execute/DAV/is_horde_enabled
LiveAPI PHP Class
$cpanel
=
new
CPANEL();
$DAV
=
$cpanel
->uapi(
'DAV'
,
'is_horde_enabled'
);
LiveAPI Perl Module
my
$cpliveapi
= Cpanel::LiveAPI->new();
my
$is_horde_enabled
=
$cpliveapi
->uapi(
'DAV'
,
'is_horde_enabled'
,
);
cPanel Template Toolkit
[% data = execute( 'DAV', 'is_horde_enabled' ); %]
[% FOREACH q = data %]
<
p
>
[% q %]
</
p
>
[% END %]
Command Line
uapi --user=username DAV is_horde_enabled
|
Output (JSON)
{
"messages": null,
"errors": null,
"status": 1,
"metadata": {},
"data": {
"enabled": 1
}
}
Parameters
This function does not accept parameters.
Returns
Return
|
Type
|
Description
|
Possible values
|
Example
|
enabled
|
Boolean
|
Whether Horde is enabled.
|
- 1 — Enabled.
- 0 — Disabled.
|
1
|