2024.8.23
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
 
 $quickPick = new QuickPick()
 
 $resourcesPath = rtrim( $bearsamppHomepage->getResourcesPath(), '/' ) . '/'
 
foreach($cssFiles as $file) foreach ($jsFiles as $file)
 
initial scale
 

Variable Documentation

◆ $ajaxUrl

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

Definition at line 42 of file homepage.php.

◆ $bearsamppConfig

global $bearsamppConfig

Definition at line 26 of file homepage.php.

Referenced by ActionChangeBrowser\__construct(), ActionLaunchStartup\__construct(), ActionReload\__construct(), ActionSwitchLang\__construct(), ActionSwitchLogsVerbose\__construct(), ActionSwitchOnline\__construct(), ActionStartup\checkBrowser(), QuickPick\checkDownloadId(), ActionStartup\checkLaunchStartup(), Batch\exec(), TplAestan\getItemLink(), TplAestan\getItemNotepad(), TplAppLogsVerbose\getMenuLogsVerbose(), TplAppMailhog\getMenuMailhog(), TplAppMailpit\getMenuMailpit(), TplAppXlight\getMenuXlight(), BinApache\getRequiredContent(), LangProc\load(), Root\loadConfig(), Util\log(), Util\openFileContent(), TplAppOnline\process(), ActionAbout\processWindow(), ActionChangeBrowser\processWindow(), ActionCheckVersion\processWindow(), ActionStartup\refreshAliases(), ActionStartup\refreshHostname(), ActionStartup\refreshVhosts(), AppAdminer\reload(), AppPhpmyadmin\reload(), AppPhppgadmin\reload(), AppWebgrind\reload(), BinApache\reload(), BinFilezilla\reload(), BinMailhog\reload(), BinMailpit\reload(), BinMariadb\reload(), BinMemcached\reload(), BinMysql\reload(), BinNodejs\reload(), BinPhp\reload(), BinPostgresql\reload(), BinXlight\reload(), ToolComposer\reload(), ToolConsoleZ\reload(), ToolGhostscript\reload(), ToolGit\reload(), ToolNgrok\reload(), ToolPerl\reload(), ToolPython\reload(), ToolRuby\reload(), ToolXdc\reload(), ToolYarn\reload(), ActionStartup\rotationLogs(), BinApache\setEnable(), BinFilezilla\setEnable(), BinMailhog\setEnable(), BinMailpit\setEnable(), BinMariadb\setEnable(), BinMemcached\setEnable(), BinMysql\setEnable(), BinNodejs\setEnable(), BinPhp\setEnable(), BinPostgresql\setEnable(), BinXlight\setEnable(), Util\setupCurlHeaderWithToken(), AppWebgrind\setVersion(), BinApache\setVersion(), BinFilezilla\setVersion(), BinMailhog\setVersion(), BinMailpit\setVersion(), BinMariadb\setVersion(), BinMemcached\setVersion(), BinMysql\setVersion(), BinNodejs\setVersion(), BinPhp\setVersion(), BinPostgresql\setVersion(), BinXlight\setVersion(), ToolComposer\setVersion(), ToolConsoleZ\setVersion(), ToolGhostscript\setVersion(), ToolGit\setVersion(), ToolNgrok\setVersion(), ToolPerl\setVersion(), ToolPython\setVersion(), ToolRuby\setVersion(), ToolXdc\setVersion(), and ToolYarn\setVersion().

◆ $bearsamppCore

global $bearsamppCore

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

◆ $bearsamppRoot

global $bearsamppRoot

Definition at line 26 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 48 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 53 of file homepage.php.

◆ $iconsPath

$iconsPath = $bearsamppHomepage->getIconsPath()

Define paths for icons and images used in the homepage.

Definition at line 36 of file homepage.php.

◆ $imagesPath

$imagesPath = $bearsamppHomepage->getImagesPath()

Definition at line 37 of file homepage.php.

Referenced by QuickPick\getQuickpickMenu().

◆ $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/filezilla.js",
"/js/mailhog.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"
]

Definition at line 78 of file homepage.php.

◆ $quickPick

$quickPick = new QuickPick()

Definition at line 40 of file homepage.php.

◆ $resourcesPath

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

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

Definition at line 31 of file homepage.php.

◆ foreach

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

Loop through CSS files and include them in the page. Loop through JS files and include them in the page.

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