diff options
author | Phil Davis <phil.davis@inf.org> | 2015-08-26 12:42:19 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-08-26 12:42:19 +0545 |
commit | 28bb42144df4a9001a8d988ed56f0f0672537706 (patch) | |
tree | 09e26bbd8454438aa3075afaf0bae6309cef583d /src/usr/local/www/widgets | |
parent | 8e71705835ad3b4d53abf8e8c2bf224f055d09ba (diff) | |
download | pfsense-28bb42144df4a9001a8d988ed56f0f0672537706.zip pfsense-28bb42144df4a9001a8d988ed56f0f0672537706.tar.gz |
Inform on dashboard when on a later version than the official release
For people that are running a development or RC version that is later
than the official release, this will display that on the dashboard
version check.
This is a resubmit of PR #1785 after integrating with the current
master.
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/system_information.widget.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index 231f2ee..1d27d8a 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -71,13 +71,16 @@ if ($_REQUEST['getupdatestatus']) { echo "<br /><br />Unable to check for updates."; } else { $needs_system_upgrade = false; - if (pfs_version_compare($current_installed_buildtime, $g['product_version'], $remote_version) == -1) { + $version_compare = pfs_version_compare($current_installed_buildtime, $g['product_version'], $remote_version); + if ($version_compare == -1) { echo "<br /><span class=\"red\" id=\"updatealert\"><b>Update available. </b></span><a href=\"/system_firmware_check.php\">Click Here</a> to view update."; echo "\n<script type=\"text/javascript\">\n"; echo "//<![CDATA[\n"; echo "jQuery('#updatealert').effect('pulsate',{times: 30},10000);\n"; echo "//]]>\n"; echo "</script>\n"; + } elseif ($version_compare == 1) { + echo "<br />You are on a later version than the official release."; } else { echo "<br />You are on the latest version."; } |