Description
This function checks whether the account allows inbound anonymous FTP transfers.
Examples
cPanel or Webmail Session URL
https://hostname.example.com:2083/cpsess##########/execute/Ftp/allows_anonymous_ftp_incoming
LiveAPI PHP Class
$cpanel = new CPANEL();
$anon_ftp_enabled = $cpanel->uapi(
'Ftp', 'allows_anonymous_ftp_incoming'
);
LiveAPI Perl Module
my $cpliveapi = Cpanel::LiveAPI->new();
my $anon_ftp_enabled = $cpliveapi->uapi(
'Ftp', 'allows_anonymous_ftp_incoming',
);
cPanel Template Toolkit
[% execute( 'Ftp', 'allows_anonymous_ftp_incoming' ); %]
Command Line
uapi --user=username Ftp allows_anonymous_ftp_incoming
|
Output (JSON)
{
"messages": null,
"errors": null,
"status": 1,
"data": {
"allows": 0
}
}
Parameters
This function does not accept parameters.
Returns
|
Return
|
Type
|
Description
|
Possible values
|
Example
|
|
allows
|
Boolean
|
Whether the cPanel account allows inbound anonymous FTP transfers.
|
- 1 — Allowed.
- 0 — Not allowed.
|
1
|