2024.8.23
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="' . Util::getWebsiteUrl( 'module/%s', '#releases' ) . '" target="_blank" title="' . $downloadTitle . '"><span class="float-end" style="margin-left:.5rem;"><i class="fa-solid fa-cloud-arrow-down"></i></span></a>'
 
global $downloadTitle
 
 $filezillaLabel = 'bg-secondary'
 
 $filezillaSslPort = $bearsamppBins->getFilezilla()->getSslPort()
 
 $mailhogLabel = 'bg-secondary'
 
 $mailpitLabel = 'bg-secondary'
 
 $mariadbLabel = 'bg-secondary'
 
 $memcachedLabel = 'bg-secondary'
 
 $mysqlLabel = 'bg-secondary'
 
 $postgresqlLabel = 'bg-secondary'
 
 $result
 
if( $bearsamppBins->getApache() ->isEnable()) $result ['binapache'] = sprintf( $dlMoreTpl, 'apache' )
 
 $result ['binapache'] = '<span class = " float-end badge ' . $apacheLabel . '">' . $bearsamppBins->getApache()->getVersion() . '</span>'
 
if( $bearsamppBins->getFilezilla() ->isEnable()) $result ['binfilezilla'] = sprintf( $dlMoreTpl, 'filezilla' )
 
 $result ['binfilezilla'] = '<span class = " float-end badge ' . $filezillaLabel . '">' . $bearsamppBins->getFilezilla()->getVersion() . '</span>'
 
if( $bearsamppBins->getMailhog() ->isEnable()) $result ['binmailhog'] = sprintf( $dlMoreTpl, 'mailhog' )
 
 $result ['binmailhog'] = '<span class = " float-end badge ' . $mailhogLabel . '">' . $bearsamppBins->getMailhog()->getVersion() . '</span>'
 
if( $bearsamppBins->getMailpit() ->isEnable()) $result ['binmailpit'] = sprintf( $dlMoreTpl, 'mailpit' )
 
 $result ['binmailpit'] = '<span class = " float-end badge ' . $mailpitLabel . '">' . $bearsamppBins->getMailpit()->getVersion() . '</span>'
 
if( $bearsamppBins->getMariadb() ->isEnable()) $result ['binmariadb'] = sprintf( $dlMoreTpl, 'mariadb' )
 
 $result ['binmariadb'] = '<span class = " float-end badge ' . $mariadbLabel . '">' . $bearsamppBins->getMariadb()->getVersion() . '</span>'
 
if( $bearsamppBins->getMemcached() ->isEnable()) $result ['binmemcached'] = sprintf( $dlMoreTpl, 'memcached' )
 
 $result ['binmemcached'] = '<span class = " float-end badge ' . $memcachedLabel . '">' . $bearsamppBins->getMemcached()->getVersion() . '</span>'
 
if( $bearsamppBins->getMysql() ->isEnable()) $result ['binmysql'] = sprintf( $dlMoreTpl, 'mysql' )
 
 $result ['binmysql'] = '<span class = " float-end badge ' . $mysqlLabel . '">' . $bearsamppBins->getMysql()->getVersion() . '</span>'
 
if( $bearsamppBins->getNodejs() ->isEnable()) $result ['binnodejs'] = sprintf( $dlMoreTpl, 'nodejs' )
 
 $result ['binnodejs'] = '<span class = " float-end badge ' . $nodejsLabel . '">' . $bearsamppBins->getNodejs()->getVersion() . '</span>'
 
if( $bearsamppBins->getPhp() ->isEnable()) $result ['binphp'] = sprintf( $dlMoreTpl, 'php' )
 
 $result ['binphp'] = '<span class = " float-end badge ' . $phpLabel . '">' . $bearsamppBins->getPhp()->getVersion() . '</span>'
 
if( $bearsamppBins->getPostgresql() ->isEnable()) $result ['binpostgresql'] = sprintf( $dlMoreTpl, 'postgresql' )
 
 $result ['binpostgresql'] = '<span class = " float-end badge ' . $postgresqlLabel . '">' . $bearsamppBins->getPostgresql()->getVersion() . '</span>'
 
if( $bearsamppBins->getXlight() ->isEnable()) $result ['binxlight'] = sprintf( $dlMoreTpl, 'xlight' )
 
 $result ['binxlight'] = '<span class = " float-end badge ' . $xlightLabel . '">' . $bearsamppBins->getXlight()->getVersion() . '</span>'
 
 $xlightLabel = 'bg-secondary'
 
 catch (Exception $e)
 
 try
 

Variable Documentation

◆ $apacheLabel

$apacheLabel = 'bg-secondary'

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

◆ $apacheSslPort

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

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

◆ $bearsamppBins

global $bearsamppBins

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

◆ $dlMoreTpl

$dlMoreTpl = '<a href="' . Util::getWebsiteUrl( 'module/%s', '#releases' ) . '" target="_blank" title="' . $downloadTitle . '"><span class="float-end" style="margin-left:.5rem;"><i class="fa-solid fa-cloud-arrow-down"></i></span></a>'

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

◆ $downloadTitle

global $downloadTitle

Generates a JSON output containing information about various bins such as Apache, Filezilla, MailHog, 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.

◆ $filezillaLabel

$filezillaLabel = 'bg-secondary'

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

◆ $filezillaSslPort

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

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

◆ $mailhogLabel

$mailhogLabel = 'bg-secondary'

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

◆ $mailpitLabel

$mailpitLabel = 'bg-secondary'

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

◆ $mariadbLabel

$mariadbLabel = 'bg-secondary'

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

◆ $memcachedLabel

$memcachedLabel = 'bg-secondary'

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

◆ $mysqlLabel

$mysqlLabel = 'bg-secondary'

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

◆ $postgresqlLabel

$postgresqlLabel = 'bg-secondary'

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

◆ $result [1/23]

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

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

◆ $result [2/23]

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

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

◆ $result [3/23]

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

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

◆ $result [4/23]

if ($bearsamppBins->getFilezilla() ->isEnable()) $result[ 'binfilezilla'] = sprintf( $dlMoreTpl, 'filezilla' )

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

◆ $result [5/23]

$result[ 'binfilezilla'] = '<span class = " float-end badge ' . $filezillaLabel . '">' . $bearsamppBins->getFilezilla()->getVersion() . '</span>'

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

◆ $result [6/23]

if ($bearsamppBins->getMailhog() ->isEnable()) $result[ 'binmailhog'] = sprintf( $dlMoreTpl, 'mailhog' )

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

◆ $result [7/23]

$result[ 'binmailhog'] = '<span class = " float-end badge ' . $mailhogLabel . '">' . $bearsamppBins->getMailhog()->getVersion() . '</span>'

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

◆ $result [8/23]

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

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

◆ $result [9/23]

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

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

◆ $result [10/23]

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

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

◆ $result [11/23]

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

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

◆ $result [12/23]

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

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

◆ $result [13/23]

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

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

◆ $result [14/23]

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

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

◆ $result [15/23]

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

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

◆ $result [16/23]

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

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

◆ $result [17/23]

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

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

◆ $result [18/23]

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

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

◆ $result [19/23]

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

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

◆ $result [20/23]

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

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

◆ $result [21/23]

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

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

◆ $result [22/23]

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

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

◆ $result [23/23]

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

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

◆ $xlightLabel

$xlightLabel = 'bg-secondary'

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

◆ catch

catch ( Exception $e)
Initial value:
{
$filezillaPort = $bearsamppBins->getFilezilla()->getPort()
global $bearsamppBins

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

◆ try

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

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