diff options
author | Colin Smith <colin@pfsense.org> | 2005-04-10 00:46:58 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-04-10 00:46:58 +0000 |
commit | 4315832ebd22927e721b8fcbeebac27cc103b7ae (patch) | |
tree | d4b2085e45bfa0db36374d99d455900ba5780694 /usr/local/www | |
parent | 6fdc0ab2f536d79e8ba2604bf7ecacad34c3897f (diff) | |
download | pfsense-4315832ebd22927e721b8fcbeebac27cc103b7ae.zip pfsense-4315832ebd22927e721b8fcbeebac27cc103b7ae.tar.gz |
Utilize the boolean returned from the pfsense.com XMLRPC server.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/system_firmware_auto.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php index b027644..9fbf9ea 100755 --- a/usr/local/www/system_firmware_auto.php +++ b/usr/local/www/system_firmware_auto.php @@ -92,10 +92,14 @@ update_status("Downloading current version information..."); $versions = check_firmware_version(); if($versions != -1) { - if($versions[0] != $firmware_version) $needs_firmware_upgrade = true; - if($versions[1] != $kernel_version) $needs_kernel_upgrade = true; - if($versions[2] != $base_version) $needs_base_version = true; - // if(isset($versions[3])) update_output_window($versions[3]); // If we have additional data (a CHANGELOG etc) to display, do so. + if($versions[0] == true) { + if($versions[1] != $firmware_version) $needs_firmware_upgrade = true; + if($versions[2] != $kernel_version) $needs_kernel_upgrade = true; + if($versions[3] != $base_version) $needs_base_version = true; + if(isset($versions[4])) update_output_window($versions[3]); // If we have additional data (a CHANGELOG etc) to display, do so. + } else { + update_status("No updates required."); + } } else { update_status("Could not retrieve version information."); exit(); |