2024.8.23
|
Go to the source code of this file.
Variables | |
global | $bearsamppBins |
global | $bearsamppLang |
$port = $bearsamppBins->getFilezilla()->getPort() | |
$result | |
$sslPort = $bearsamppBins->getFilezilla()->getSslPort() | |
$textDisabled = $bearsamppLang->getValue(Lang::DISABLED) | |
$textServiceStarted = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STARTED) | |
$textServiceStopped = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STOPPED) | |
if($bearsamppBins->getFilezilla() ->isEnable()) | else |
foreach ( $bearsamppBins->getFilezilla() ->getVersionList() as $version) | |
global $bearsamppBins |
This script retrieves information about the status of the FileZilla service and its versions. It checks if the FileZilla service is enabled, verifies the ports it is running on, and lists available versions. The output is encoded in JSON format and includes 'checkport' and 'versions' keys with corresponding information.
Definition at line 17 of file ajax.filezilla.php.
global $bearsamppLang |
Definition at line 17 of file ajax.filezilla.php.
$port = $bearsamppBins->getFilezilla()->getPort() |
Definition at line 26 of file ajax.filezilla.php.
$result |
Definition at line 20 of file ajax.filezilla.php.
$sslPort = $bearsamppBins->getFilezilla()->getSslPort() |
Definition at line 27 of file ajax.filezilla.php.
$textDisabled = $bearsamppLang->getValue(Lang::DISABLED) |
Definition at line 32 of file ajax.filezilla.php.
$textServiceStarted = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STARTED) |
Definition at line 30 of file ajax.filezilla.php.
$textServiceStopped = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STOPPED) |
Definition at line 31 of file ajax.filezilla.php.
if ( $bearsamppBins->getFilezilla() ->isEnable()) else |
Check if the FileZilla service is enabled. If enabled, check the status of the ports and update the 'checkport' key in the result array accordingly. If not enabled, set the 'checkport' key to indicate that the service is disabled.
Definition at line 50 of file ajax.filezilla.php.
foreach($bearsamppBins->getFilezilla() ->getVersionList() as $version) | ( | $bearsamppBins->getFilezilla() ->getVersionList() as | ) |
Retrieve the list of available versions for the FileZilla service. Update the 'versions' key in the result array with the version information. Highlight the current version with a primary badge and other versions with a secondary badge.
Definition at line 59 of file ajax.filezilla.php.