2024.8.23
|
Go to the source code of this file.
Variables | |
global | $bearsamppBins |
global | $bearsamppLang |
$port = $bearsamppBins->getMysql()->getPort() | |
$result | |
$textDisabled = $bearsamppLang->getValue(Lang::DISABLED) | |
$textServiceStarted = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STARTED) | |
$textServiceStopped = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STOPPED) | |
if($bearsamppBins->getMysql() ->isEnable()) | else |
foreach ( $bearsamppBins->getMysql() ->getVersionList() as $version) | |
global $bearsamppBins |
Definition at line 10 of file ajax.mysql.php.
global $bearsamppLang |
Definition at line 10 of file ajax.mysql.php.
$port = $bearsamppBins->getMysql()->getPort() |
Definition at line 26 of file ajax.mysql.php.
$result |
This script checks the status of the MySQL service and retrieves its versions. It creates an array with keys 'checkport' and 'versions', which are populated with HTML strings indicating the status of the MySQL service and its available versions, respectively. The final result is encoded in JSON format and echoed out.
Definition at line 20 of file ajax.mysql.php.
$textDisabled = $bearsamppLang->getValue(Lang::DISABLED) |
Definition at line 30 of file ajax.mysql.php.
$textServiceStarted = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STARTED) |
Definition at line 28 of file ajax.mysql.php.
$textServiceStopped = $bearsamppLang->getValue(Lang::HOMEPAGE_SERVICE_STOPPED) |
Definition at line 29 of file ajax.mysql.php.
if ( $bearsamppBins->getMysql() ->isEnable()) else |
Check if MySQL service is enabled and its port status. If enabled, check if the port is open and set the appropriate status message. If disabled, set the status message to indicate that the service is disabled.
Definition at line 43 of file ajax.mysql.php.
foreach($bearsamppBins->getMysql() ->getVersionList() as $version) | ( | $bearsamppBins->getMysql() ->getVersionList() as | ) |
Retrieve the list of MySQL versions and highlight the current version. Add each version to the 'versions' key in the result array, using different badge styles to indicate the current version and other versions.
Definition at line 52 of file ajax.mysql.php.