2024.8.23
|
Go to the source code of this file.
Variables | |
global | $bearsamppCore |
$bearsamppCurrentVersion = $bearsamppCore->getAppVersion() | |
global | $bearsamppLang |
$githubLatestVersion = $githubVersionData['version'] | |
$githubLatestVersionUrl = $githubVersionData['html_url'] | |
global | $githubVersionData = Util::getLatestVersion(APP_GITHUB_LATEST_URL) |
$githubVersionName = $githubVersionData['name'] | |
$result | |
if(!empty($githubVersionData)) | else |
if (version_compare( $bearsamppCurrentVersion, $githubLatestVersion, '<')) | |
global $bearsamppCore |
Definition at line 24 of file ajax.latestversion.php.
Referenced by ActionAbout\__construct(), ActionCheckVersion\__construct(), ActionClearFolders\__construct(), ActionExec\__construct(), ActionLoading\__construct(), ActionManualRestart\__construct(), ActionQuit\__construct(), ActionRebuildini\__construct(), ActionReload\__construct(), ActionStartup\__construct(), QuickPick\__construct(), WinBinder\__construct(), Util\changePath(), ActionStartup\checkPath(), ActionStartup\cleanTmpFolders(), OpenSsl\createCrt(), Vbs\createShortcut(), Batch\createSymlink(), WinBinder\createWindow(), Util\decryptFile(), Symlinks\deleteCurrentSymlinks(), Nssm\exec(), WinBinder\exec(), Batch\exitApp(), QuickPick\fetchAndUnzipModule(), TplApp\getActionRun(), Homepage\getHomepagePath(), Core\getIconsPath(), LangProc\getList(), TplAppTools\getMenuTools(), Util\getPathsToScan(), Homepage\getResourcesPath(), TplAestan\getSectionConfig(), TplConsoleZ\getTab(), Batch\getTmpFile(), Util\getWebsiteUrl(), ActionLoading\incrProgressBar(), Splash\incrProgressBar(), Splash\init(), LangProc\load(), Root\loadCore(), Util\log(), WinBinder\messageBox(), TplApp\process(), ActionStartup\processWindow(), ActionSwitchVersion\processWindow(), Batch\refreshEnvVars(), ActionStartup\rotationLogs(), ActionStartup\savePath(), Util\setupCurlHeaderWithToken(), Util\startLoading(), and Util\stopLoading().
$bearsamppCurrentVersion = $bearsamppCore->getAppVersion() |
Definition at line 32 of file ajax.latestversion.php.
global $bearsamppLang |
Constructs the download link for a new version if available.
This function compares the current application version with the latest available version. If the latest version is greater, it sets the display flag to true and constructs an HTML link for downloading the new version, appending it to the 'download' key in the result array.
array | $result | Holds the display flag and download link HTML. |
Definition at line 24 of file ajax.latestversion.php.
$githubLatestVersion = $githubVersionData['version'] |
Definition at line 65 of file ajax.latestversion.php.
Referenced by ActionCheckVersion\__construct(), and ActionCheckVersion\showVersionUpdateWindow().
$githubLatestVersionUrl = $githubVersionData['html_url'] |
Definition at line 66 of file ajax.latestversion.php.
$githubVersionData = Util::getLatestVersion(APP_GITHUB_LATEST_URL) |
Retrieves the latest version data from GitHub.
Definition at line 24 of file ajax.latestversion.php.
Referenced by ActionCheckVersion\__construct().
$githubVersionName = $githubVersionData['name'] |
Definition at line 67 of file ajax.latestversion.php.
$result |
Definition at line 26 of file ajax.latestversion.php.
if (!empty( $githubVersionData)) else |
Definition at line 44 of file ajax.latestversion.php.
if(version_compare($bearsamppCurrentVersion, $githubLatestVersion, '<')) | ( | version_compare( $bearsamppCurrentVersion, $githubLatestVersion, '<') | ) |
Compares the current version with the latest version.
If the latest version is greater, sets the display flag to true and constructs the download link.
string | $bearsamppCurrentVersion | The current version of the application. |
string | $githubLatestVersion | The latest version of the application. |
array | $result | The result array containing the display flag and download link. |
Definition at line 79 of file ajax.latestversion.php.