Bearsampp 2025.8.29
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
 $downloadTitle = $bearsamppLang->getValue( Lang::DOWNLOAD_MORE )
 $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 43 of file homepage.php.

◆ $bearsamppConfig

global $bearsamppConfig

Definition at line 27 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(), LangProc\load(), Root\loadConfig(), 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(), ToolConsoleZ\reload(), ToolGhostscript\reload(), ToolGit\reload(), ToolNgrok\reload(), ToolPerl\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(), ToolConsoleZ\setVersion(), ToolGhostscript\setVersion(), ToolGit\setVersion(), ToolNgrok\setVersion(), ToolPerl\setVersion(), ToolPython\setVersion(), ToolRuby\setVersion(), and ActionSwitchVersion\updateConfigVersion().

◆ $bearsamppCore

global $bearsamppCore

Definition at line 27 of file homepage.php.

◆ $bearsamppHomepage

global $bearsamppHomepage

◆ $bearsamppLang

global $bearsamppLang

This script sets up the homepage for the Bearsampp application, including loading necessary resources, setting up the navigation bar, and including dynamic content based on the application's state. It utilizes global variables to access application settings and paths. Include the main root.php file which initializes the application environment. Declare global variables to access various parts of the application such as language settings, core functionalities, homepage configurations, and more.

Definition at line 27 of file homepage.php.

◆ $bearsamppRoot

global $bearsamppRoot

Definition at line 27 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 49 of file homepage.php.

◆ $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 54 of file homepage.php.

◆ $iconsPath

$iconsPath = $bearsamppHomepage->getIconsPath()

Define paths for icons and images used in the homepage.

Definition at line 37 of file homepage.php.

◆ $imagesPath

$imagesPath = $bearsamppHomepage->getImagesPath()

Definition at line 38 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/_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 79 of file homepage.php.

◆ $pagePath

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

Definition at line 189 of file homepage.php.

◆ $quickPick

$quickPick = new QuickPick()

Definition at line 41 of file homepage.php.

◆ $resourcesPath

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

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

Definition at line 32 of file homepage.php.

◆ catch

catch(Exception $e) ( Exception $e)

Definition at line 148 of file homepage.php.

◆ else

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

Definition at line 192 of file homepage.php.

◆ foreach

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

Loop through CSS files and include them in the page.

Definition at line 102 of file homepage.php.

◆ scale

initial scale
Initial value:
=1.0">
<meta name = "description" content = "Localhost Dashboard">
<meta name = "author" content = "Bearsampp">
<?php
$cssFiles = [
"/css/app.css",
"/libs/bootstrap/css/bootstrap.min.css",
"/libs/fontawesome/css/all.min.css",
]

Definition at line 66 of file homepage.php.

◆ try

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

Definition at line 146 of file homepage.php.