2024.8.23
Loading...
Searching...
No Matches
ajax.filezilla.php File Reference

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)
 

Variable Documentation

◆ $bearsamppBins

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.

◆ $bearsamppLang

global $bearsamppLang

Definition at line 17 of file ajax.filezilla.php.

◆ $port

$port = $bearsamppBins->getFilezilla()->getPort()

Definition at line 26 of file ajax.filezilla.php.

◆ $result

$result
Initial value:
= array(
'checkport' => '',
'versions' => '',
)

Definition at line 20 of file ajax.filezilla.php.

◆ $sslPort

$sslPort = $bearsamppBins->getFilezilla()->getSslPort()

Definition at line 27 of file ajax.filezilla.php.

◆ $textDisabled

$textDisabled = $bearsamppLang->getValue(Lang::DISABLED)

Definition at line 32 of file ajax.filezilla.php.

◆ $textServiceStarted

$textServiceStarted = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STARTED)

Definition at line 30 of file ajax.filezilla.php.

◆ $textServiceStopped

$textServiceStopped = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STOPPED)

Definition at line 31 of file ajax.filezilla.php.

◆ else

if ( $bearsamppBins->getFilezilla() ->isEnable()) else
Initial value:
{
$result['checkport'] = '<span class="float-end m-1 badge text-bg-secondary">' . $textDisabled . '</span>'
$textDisabled

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

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.