Bearsampp 2026.7.11
Loading...
Searching...
No Matches
ajax.summary.php File Reference

Go to the source code of this file.

Variables

 $apacheLabel = 'bg-secondary'
 $apacheSslPort = $bearsamppBins->getApache()->getSslPort()
global $bearsamppBins
 $dlMoreTpl = '<a href="' . HttpClient::getWebsiteUrl( 'module/%s', '#releases' ) . '" target="_blank" title="' . $downloadTitle . '"><span class="float-end download-icon-wrapper"><i class="fa-solid fa-cloud-arrow-down"></i></span></a>'
global $downloadTitle
 $mailpitLabel = 'bg-secondary'
 $mariadbLabel = 'bg-secondary'
 $memcachedLabel = 'bg-secondary'
 $mysqlLabel = 'bg-secondary'
 $postgresqlLabel = 'bg-secondary'
 $result ['binapache'] = '<span class = " float-end badge ' . $apacheLabel . '">' . $bearsamppBins->getApache()->getVersion() . '</span>'
if( $bearsamppBins->getApache() ->isEnable()) $result ['binapache'] = sprintf( $dlMoreTpl, 'apache' )
 $result ['binmailpit'] = '<span class = " float-end badge ' . $mailpitLabel . '">' . $bearsamppBins->getMailpit()->getVersion() . '</span>'
if( $bearsamppBins->getMailpit() ->isEnable()) $result ['binmailpit'] = sprintf( $dlMoreTpl, 'mailpit' )
 $result ['binmariadb'] = '<span class = " float-end badge ' . $mariadbLabel . '">' . $bearsamppBins->getMariadb()->getVersion() . '</span>'
if( $bearsamppBins->getMariadb() ->isEnable()) $result ['binmariadb'] = sprintf( $dlMoreTpl, 'mariadb' )
 $result ['binmemcached'] = '<span class = " float-end badge ' . $memcachedLabel . '">' . $bearsamppBins->getMemcached()->getVersion() . '</span>'
if( $bearsamppBins->getMemcached() ->isEnable()) $result ['binmemcached'] = sprintf( $dlMoreTpl, 'memcached' )
 $result ['binmysql'] = '<span class = " float-end badge ' . $mysqlLabel . '">' . $bearsamppBins->getMysql()->getVersion() . '</span>'
if( $bearsamppBins->getMysql() ->isEnable()) $result ['binmysql'] = sprintf( $dlMoreTpl, 'mysql' )
 $result ['binnodejs'] = '<span class = " float-end badge ' . $nodejsLabel . '">' . $bearsamppBins->getNodejs()->getVersion() . '</span>'
if( $bearsamppBins->getNodejs() ->isEnable()) $result ['binnodejs'] = sprintf( $dlMoreTpl, 'nodejs' )
 $result ['binphp'] = '<span class = " float-end badge ' . $phpLabel . '">' . $bearsamppBins->getPhp()->getVersion() . '</span>'
if( $bearsamppBins->getPhp() ->isEnable()) $result ['binphp'] = sprintf( $dlMoreTpl, 'php' )
 $result ['binpostgresql'] = '<span class = " float-end badge ' . $postgresqlLabel . '">' . $bearsamppBins->getPostgresql()->getVersion() . '</span>'
if( $bearsamppBins->getPostgresql() ->isEnable()) $result ['binpostgresql'] = sprintf( $dlMoreTpl, 'postgresql' )
 $result ['binxlight'] = '<span class = " float-end badge ' . $xlightLabel . '">' . $bearsamppBins->getXlight()->getVersion() . '</span>'
if( $bearsamppBins->getXlight() ->isEnable()) $result ['binxlight'] = sprintf( $dlMoreTpl, 'xlight' )
 $result
 $xlightLabel = 'bg-secondary'
 catch (Exception $e)
 try

Variable Documentation

◆ $apacheLabel

$apacheLabel = 'bg-secondary'

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

◆ $apacheSslPort

$apacheSslPort = $bearsamppBins->getApache()->getSslPort()

Definition at line 41 of file ajax.summary.php.

◆ $bearsamppBins

global $bearsamppBins

Definition at line 16 of file ajax.summary.php.

◆ $dlMoreTpl

$dlMoreTpl = '<a href="' . HttpClient::getWebsiteUrl( 'module/%s', '#releases' ) . '" target="_blank" title="' . $downloadTitle . '"><span class="float-end download-icon-wrapper"><i class="fa-solid fa-cloud-arrow-down"></i></span></a>'

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

◆ $downloadTitle

global $downloadTitle

Generates a JSON output containing information about various bins such as Apache, Mailpit, MariaDB, MySQL, PostgreSQL, Memcached, Node.js, and PHP. The output includes download links, version numbers, and status labels for each bin.

Definition at line 16 of file ajax.summary.php.

◆ $mailpitLabel

$mailpitLabel = 'bg-secondary'

Definition at line 69 of file ajax.summary.php.

◆ $mariadbLabel

$mariadbLabel = 'bg-secondary'

Definition at line 113 of file ajax.summary.php.

◆ $memcachedLabel

$memcachedLabel = 'bg-secondary'

Definition at line 179 of file ajax.summary.php.

◆ $mysqlLabel

$mysqlLabel = 'bg-secondary'

Definition at line 135 of file ajax.summary.php.

◆ $postgresqlLabel

$postgresqlLabel = 'bg-secondary'

Definition at line 157 of file ajax.summary.php.

◆ $result [1/19]

$result[ 'binapache'] = '<span class = " float-end badge ' . $apacheLabel . '">' . $bearsamppBins->getApache()->getVersion() . '</span>'

Definition at line 55 of file ajax.summary.php.

◆ $result [2/19]

if ($bearsamppBins->getApache() ->isEnable()) $result[ 'binapache'] = sprintf( $dlMoreTpl, 'apache' )

Definition at line 54 of file ajax.summary.php.

◆ $result [3/19]

$result[ 'binmailpit'] = '<span class = " float-end badge ' . $mailpitLabel . '">' . $bearsamppBins->getMailpit()->getVersion() . '</span>'

Definition at line 77 of file ajax.summary.php.

◆ $result [4/19]

if ($bearsamppBins->getMailpit() ->isEnable()) $result[ 'binmailpit'] = sprintf( $dlMoreTpl, 'mailpit' )

Definition at line 76 of file ajax.summary.php.

◆ $result [5/19]

$result[ 'binmariadb'] = '<span class = " float-end badge ' . $mariadbLabel . '">' . $bearsamppBins->getMariadb()->getVersion() . '</span>'

Definition at line 121 of file ajax.summary.php.

◆ $result [6/19]

if ($bearsamppBins->getMariadb() ->isEnable()) $result[ 'binmariadb'] = sprintf( $dlMoreTpl, 'mariadb' )

Definition at line 120 of file ajax.summary.php.

◆ $result [7/19]

$result[ 'binmemcached'] = '<span class = " float-end badge ' . $memcachedLabel . '">' . $bearsamppBins->getMemcached()->getVersion() . '</span>'

Definition at line 187 of file ajax.summary.php.

◆ $result [8/19]

if ($bearsamppBins->getMemcached() ->isEnable()) $result[ 'binmemcached'] = sprintf( $dlMoreTpl, 'memcached' )

Definition at line 186 of file ajax.summary.php.

◆ $result [9/19]

$result[ 'binmysql'] = '<span class = " float-end badge ' . $mysqlLabel . '">' . $bearsamppBins->getMysql()->getVersion() . '</span>'

Definition at line 143 of file ajax.summary.php.

◆ $result [10/19]

if ($bearsamppBins->getMysql() ->isEnable()) $result[ 'binmysql'] = sprintf( $dlMoreTpl, 'mysql' )

Definition at line 142 of file ajax.summary.php.

◆ $result [11/19]

$result[ 'binnodejs'] = '<span class = " float-end badge ' . $nodejsLabel . '">' . $bearsamppBins->getNodejs()->getVersion() . '</span>'

Definition at line 205 of file ajax.summary.php.

◆ $result [12/19]

if ($bearsamppBins->getNodejs() ->isEnable()) $result[ 'binnodejs'] = sprintf( $dlMoreTpl, 'nodejs' )

Definition at line 204 of file ajax.summary.php.

◆ $result [13/19]

$result[ 'binphp'] = '<span class = " float-end badge ' . $phpLabel . '">' . $bearsamppBins->getPhp()->getVersion() . '</span>'

Definition at line 223 of file ajax.summary.php.

◆ $result [14/19]

if ($bearsamppBins->getPhp() ->isEnable()) $result[ 'binphp'] = sprintf( $dlMoreTpl, 'php' )

Definition at line 222 of file ajax.summary.php.

◆ $result [15/19]

$result[ 'binpostgresql'] = '<span class = " float-end badge ' . $postgresqlLabel . '">' . $bearsamppBins->getPostgresql()->getVersion() . '</span>'

Definition at line 165 of file ajax.summary.php.

◆ $result [16/19]

if ($bearsamppBins->getPostgresql() ->isEnable()) $result[ 'binpostgresql'] = sprintf( $dlMoreTpl, 'postgresql' )

Definition at line 164 of file ajax.summary.php.

◆ $result [17/19]

$result[ 'binxlight'] = '<span class = " float-end badge ' . $xlightLabel . '">' . $bearsamppBins->getXlight()->getVersion() . '</span>'

Definition at line 99 of file ajax.summary.php.

◆ $result [18/19]

if ($bearsamppBins->getXlight() ->isEnable()) $result[ 'binxlight'] = sprintf( $dlMoreTpl, 'xlight' )

Definition at line 98 of file ajax.summary.php.

◆ $result [19/19]

$result
Initial value:
= array(
'binapache' => '',
'binmailpit' => '',
'binmariadb' => '',
'binmysql' => '',
'binpostgresql' => '',
'binmemcached' => '',
'binnodejs' => '',
'binphp' => '',
'binxlight' => '',
)

Definition at line 19 of file ajax.summary.php.

◆ $xlightLabel

$xlightLabel = 'bg-secondary'

Definition at line 91 of file ajax.summary.php.

◆ catch

catch ( Exception $e)
Initial value:
{
$mailpitPort = $bearsamppBins->getMailpit()->getSmtpPort()
global $bearsamppBins

Definition at line 225 of file ajax.summary.php.

◆ try

catch (Exception $e) try
Initial value:
{
$apachePort = $bearsamppBins->getApache()->getPort()

Definition at line 34 of file ajax.summary.php.