This article documents the usage of the Cpanel::Ftp::listftpsessions function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::Ftp::listftpsessions
This function will list information about active FTP sessions for a domain.
<?cp Ftp::listftpsessions(% % % % %,user,host,login,status,pid) || 'No active FTP sessions' ?>
This example will list the username, host, login time, connection status, and process id for each active FTP session for the domain, or output ``No active FTP sessions'' if none are active.
Copyright 2007 cPanel Inc.