Bearsampp 2026.3.26
API documentation
Loading...
Searching...
No Matches
homepage.php File Reference

Go to the source code of this file.

Variables

 $ajaxUrl = $bearsamppCore->getAjaxPath() . '/ajax.getmodule_versions.php'
global $bearsamppConfig
global $bearsamppCore
global $bearsamppHomepage
global $bearsamppLang
global $bearsamppRoot
 $cssFiles
 $downloadTitle = $bearsamppLang->getValue( Lang::DOWNLOAD_MORE )
 $enhancedMode = $bearsamppConfig->getEnhancedQuickPick()
 $getLoader = '<span class = "loader float-end"><img src = "' . $imagesPath . 'loader.gif" alt="spinner"></span>'
 $iconsPath = $bearsamppHomepage->getIconsPath()
 $imagesPath = $bearsamppHomepage->getImagesPath()
 $jsFiles
 $pagePath = __DIR__ . '/tpls/hp.' . $page . '.html'
 $quickPick = new QuickPick()
 $resourcesPath = rtrim( $bearsamppHomepage->getResourcesPath(), '/' ) . '/'
 catch (Exception $e)
if(is_file($pagePath)) else
 foreach ($cssFiles as $file)
initial scale
 try

Variable Documentation

◆ $ajaxUrl

$ajaxUrl = $bearsamppCore->getAjaxPath() . '/ajax.getmodule_versions.php'

Definition at line 57 of file homepage.php.

◆ $bearsamppConfig

global $bearsamppConfig

Definition at line 41 of file homepage.php.

Referenced by ActionChangeBrowser\__construct(), ActionLaunchStartup\__construct(), ActionReload\__construct(), ActionSwitchLang\__construct(), ActionSwitchLogsVerbose\__construct(), ActionSwitchOnline\__construct(), ActionStartup\checkBrowser(), QuickPick\checkDownloadId(), ActionStartup\checkLaunchStartup(), QuickPick\checkQuickpickJson(), Util\decryptFile(), Batch\exec(), QuickPick\formatVersionLabel(), TplAestan\getItemLink(), TplAestan\getItemNotepad(), TplAppLogsVerbose\getMenuLogsVerbose(), TplAppMailpit\getMenuMailpit(), TplAppXlight\getMenuXlight(), QuickPick\getQuickpickMenu(), BinApache\getRequiredContent(), QuickPick\installModule(), LangProc\load(), Root\loadConfig(), QuickPick\loadQuickpick(), Util\log(), QuickPick\logHeaders(), Util\openFileContent(), TplAppOnline\process(), ActionAbout\processWindow(), ActionChangeBrowser\processWindow(), ActionCheckVersion\processWindow(), ActionStartup\refreshAliases(), ActionStartup\refreshHostname(), ActionStartup\refreshVhosts(), AppPhpmyadmin\reload(), AppPhppgadmin\reload(), BinApache\reload(), BinMailpit\reload(), BinMariadb\reload(), BinMemcached\reload(), BinMysql\reload(), BinNodejs\reload(), BinPhp\reload(), BinPostgresql\reload(), BinXlight\reload(), ToolBruno\reload(), ToolComposer\reload(), ToolGhostscript\reload(), ToolGit\reload(), ToolNgrok\reload(), ToolPerl\reload(), ToolPowerShell\reload(), ToolPython\reload(), ToolRuby\reload(), ActionStartup\rotationLogs(), BinApache\setEnable(), BinMailpit\setEnable(), BinMariadb\setEnable(), BinMemcached\setEnable(), BinMysql\setEnable(), BinNodejs\setEnable(), BinPhp\setEnable(), BinPostgresql\setEnable(), BinXlight\setEnable(), Util\setupCurlHeaderWithToken(), BinApache\setVersion(), BinMailpit\setVersion(), BinMariadb\setVersion(), BinMemcached\setVersion(), BinMysql\setVersion(), BinNodejs\setVersion(), BinPhp\setVersion(), BinPostgresql\setVersion(), BinXlight\setVersion(), ToolBruno\setVersion(), ToolComposer\setVersion(), ToolGhostscript\setVersion(), ToolGit\setVersion(), ToolNgrok\setVersion(), ToolPerl\setVersion(), ToolPowerShell\setVersion(), ToolPython\setVersion(), ToolRuby\setVersion(), ActionSwitchVersion\updateConfigVersion(), and QuickPick\updateModuleConfig().

◆ $bearsamppCore

global $bearsamppCore

Definition at line 41 of file homepage.php.

◆ $bearsamppHomepage

global $bearsamppHomepage

◆ $bearsamppLang

global $bearsamppLang

Declare global variables to access various parts of the application such as language settings, core functionalities, homepage configurations, and more.

Definition at line 41 of file homepage.php.

◆ $bearsamppRoot

global $bearsamppRoot

Definition at line 41 of file homepage.php.

◆ $cssFiles

$cssFiles
Initial value:
= [
"/css/app.css",
"/libs/bootstrap/css/bootstrap.min.css",
"/libs/fontawesome/css/all.min.css",
]

Arrays of CSS and JS files to be included in the page.

Definition at line 89 of file homepage.php.

◆ $downloadTitle

$downloadTitle = $bearsamppLang->getValue( Lang::DOWNLOAD_MORE )

Retrieve and store the localized string for the 'Download More' label.

Definition at line 63 of file homepage.php.

◆ $enhancedMode

$enhancedMode = $bearsamppConfig->getEnhancedQuickPick()

Definition at line 169 of file homepage.php.

Referenced by QuickPick\getQuickpickMenu(), and QuickPick\installModule().

◆ $getLoader

$getLoader = '<span class = "loader float-end"><img src = "' . $imagesPath . 'loader.gif" alt="spinner"></span>'

HTML snippet for a loading spinner image.

Definition at line 68 of file homepage.php.

◆ $iconsPath

$iconsPath = $bearsamppHomepage->getIconsPath()

Define paths for icons and images used in the homepage.

Definition at line 51 of file homepage.php.

◆ $imagesPath

$imagesPath = $bearsamppHomepage->getImagesPath()

Definition at line 52 of file homepage.php.

Referenced by QuickPick\getQuickpickMenu(), and QuickPick\loadQuickpick().

◆ $jsFiles

$jsFiles
Initial value:
= [
"/libs/bootstrap/js/bootstrap.bundle.min.js",
"/libs/fontawesome/js/all.min.js",
"/js/csrf.js",
"/js/_commons.js",
"/js/latestversion.js",
"/js/summary.js",
"/js/apache.js",
'/js/mailpit.js',
"/js/mariadb.js",
"/js/memcached.js",
"/js/mysql.js",
"/js/nodejs.js",
"/js/php.js",
"/js/postgresql.js",
"/js/xlight.js",
"/js/quickpick.js",
"/js/loading-cursor.js"
]

Definition at line 94 of file homepage.php.

◆ $pagePath

$pagePath = __DIR__ . '/tpls/hp.' . $page . '.html'

Definition at line 228 of file homepage.php.

◆ $quickPick

$quickPick = new QuickPick()

Definition at line 55 of file homepage.php.

◆ $resourcesPath

$resourcesPath = rtrim( $bearsamppHomepage->getResourcesPath(), '/' ) . '/'

Set the base path for resources, ensuring there is a trailing slash.

Definition at line 46 of file homepage.php.

◆ catch

catch(Exception $e) ( Exception $e)

Definition at line 185 of file homepage.php.

◆ else

if (is_file( $pagePath)) else
Initial value:
{
include __DIR__ . '/tpls/hp.index.html'

Definition at line 231 of file homepage.php.

◆ foreach

foreach( $cssFiles as $file) ( $cssFiles as)

Loop through CSS files and include them in the page.

Definition at line 118 of file homepage.php.

◆ scale

initial scale
Initial value:
=1.0">
<meta name = "description" content = "Localhost Dashboard">
<meta name = "author" content = "Bearsampp">
<?php echo Csrf::getTokenMeta()

Definition at line 80 of file homepage.php.

◆ try

catch (Exception $e) try
Initial value:
{
echo $quickPick->loadQuickpick($imagesPath)
$quickPick
Definition homepage.php:55
$imagesPath
Definition homepage.php:52

Definition at line 183 of file homepage.php.