diff options
author | Colin Smith <colin@pfsense.org> | 2005-05-18 02:03:18 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-05-18 02:03:18 +0000 |
commit | 63e53e7da1da69164d9a343e5358dfb46c879298 (patch) | |
tree | 108f1980ef08a1196d385c84230be7692014ea4e /usr/local/www | |
parent | 4e0d14e517c9c77df78cb2e6d93dbc89b465e195 (diff) | |
download | pfsense-63e53e7da1da69164d9a343e5358dfb46c879298.zip pfsense-63e53e7da1da69164d9a343e5358dfb46c879298.tar.gz |
Change the "current version" fieldtype to use a grey background if the box is running a newer version than in the manifests.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/system_firmware_check.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/usr/local/www/system_firmware_check.php b/usr/local/www/system_firmware_check.php index a27dd44..fd4378f 100755 --- a/usr/local/www/system_firmware_check.php +++ b/usr/local/www/system_firmware_check.php @@ -75,7 +75,10 @@ $versions = check_firmware_version(); } if($version == 1) { $img = "pass.gif"; - } else { + } elseif($currentver > $version[count($version) - 1]['version']) { + $img = "pass.gif"; + $pastlatest = true; + } else { $allinstall = true; $img = "block.gif"; } @@ -90,15 +93,22 @@ $versions = check_firmware_version(); ?> <td class="listlr"><?= $currentver ?></td> <?php + } elseif($pastlatest) { + $newver = $versions[$key][count($versions[$key]) -1]; + ?> + <td class="listbggrey"><font color="#FFFFFFF"><?= $newver['version'] ?></td> + <?php } else { $newver = $versions[$key][count($versions[$key]) -1]; ?> <td class="listbg"><font color="#FFFFFFF"><?= $newver['version'] ?></td> + <?php } + if(!$pastlatest) { + ?> <td valign="middle" class="list" nowrap> <a href="system_firmware_auto.php?category=<?=$key;?>"><img src="plus.gif" width="17" height="17" border="0"></a> </td> - <?php - } + <?php } } ?> </table> |