|
Bearsampp 2026.3.26
API documentation
|
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 | |
| $ajaxUrl = $bearsamppCore->getAjaxPath() . '/ajax.getmodule_versions.php' |
Definition at line 57 of file homepage.php.
| 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().
| global $bearsamppCore |
Definition at line 41 of file homepage.php.
| global $bearsamppHomepage |
Definition at line 41 of file homepage.php.
Referenced by ActionReload\__construct(), BinApache\checkPort(), Root\loadHomepage(), and BinApache\refreshAlias().
| 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.
| global $bearsamppRoot |
Definition at line 41 of file homepage.php.
| $cssFiles |
Arrays of CSS and JS files to be included in the page.
Definition at line 89 of file homepage.php.
| $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 = $bearsamppConfig->getEnhancedQuickPick() |
Definition at line 169 of file homepage.php.
Referenced by QuickPick\getQuickpickMenu(), and QuickPick\installModule().
| $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 = $bearsamppHomepage->getIconsPath() |
Define paths for icons and images used in the homepage.
Definition at line 51 of file homepage.php.
| $imagesPath = $bearsamppHomepage->getImagesPath() |
Definition at line 52 of file homepage.php.
Referenced by QuickPick\getQuickpickMenu(), and QuickPick\loadQuickpick().
| $jsFiles |
Definition at line 94 of file homepage.php.
| $pagePath = __DIR__ . '/tpls/hp.' . $page . '.html' |
Definition at line 228 of file homepage.php.
| $quickPick = new QuickPick() |
Definition at line 55 of file homepage.php.
| $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(Exception $e) | ( | Exception | $e | ) |
Definition at line 185 of file homepage.php.
| if (is_file( $pagePath)) else |
Definition at line 231 of file homepage.php.
| foreach( $cssFiles as $file) | ( | $cssFiles as | ) |
Loop through CSS files and include them in the page.
Definition at line 118 of file homepage.php.
| initial scale |
Definition at line 80 of file homepage.php.
| catch (Exception $e) try |
Definition at line 183 of file homepage.php.