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

Go to the source code of this file.

Variables

global $bearsamppBins
 
global $bearsamppLang
 
 $port = $bearsamppBins->getXlight()->getPort()
 
 $result
 
 $textDisabled = $bearsamppLang->getValue(Lang::DISABLED)
 
 $textServiceStarted = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STARTED)
 
 $textServiceStopped = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STOPPED)
 
if($bearsamppBins->getXlight() ->checkPort($port)) else
 
 foreach ( $bearsamppBins->getXlight() ->getVersionList() as $version)
 

Variable Documentation

◆ $bearsamppBins

global $bearsamppBins

Definition at line 9 of file ajax.xlight.php.

◆ $bearsamppLang

global $bearsamppLang

Definition at line 9 of file ajax.xlight.php.

◆ $port

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

Definition at line 24 of file ajax.xlight.php.

◆ $result

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

This script retrieves information about the Xlight service status and versions. It checks the SMTP port status and retrieves the list of available versions. The results are returned as a JSON-encoded array.

Definition at line 18 of file ajax.xlight.php.

◆ $textDisabled

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

Definition at line 28 of file ajax.xlight.php.

◆ $textServiceStarted

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

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

◆ $textServiceStopped

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

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

◆ else

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

Check if the Xlight service is running on the specified port. If the port is open, indicate that the service is started. If the port is closed, indicate that the service is stopped. If the service is disabled, indicate that it is disabled.

Definition at line 42 of file ajax.xlight.php.

◆ foreach

foreach($bearsamppBins->getXlight() ->getVersionList() as $version) ( $bearsamppBins->getXlight() ->getVersionList() as)

Retrieve the list of available Xlight versions. Highlight the current version with a primary badge. Other versions are displayed with a secondary badge.

Definition at line 51 of file ajax.xlight.php.