summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-08-26 12:42:19 +0545
committerPhil Davis <phil.davis@inf.org>2015-08-26 12:42:19 +0545
commit28bb42144df4a9001a8d988ed56f0f0672537706 (patch)
tree09e26bbd8454438aa3075afaf0bae6309cef583d /src
parent8e71705835ad3b4d53abf8e8c2bf224f055d09ba (diff)
downloadpfsense-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')
-rw-r--r--src/usr/local/www/widgets/widgets/system_information.widget.php5
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.";
}
OpenPOWER on IntegriCloud