From a1d877b94b785fb0b7fa7a07c0b3c7bd2cbb6c06 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 24 May 2008 08:42:15 +0000 Subject: Be more verbode on auto upgrade details. --- usr/local/www/system_firmware_check.php | 161 ++++++++++++++++++++++++++++++++ 1 file changed, 161 insertions(+) (limited to 'usr/local/www/system_firmware_check.php') diff --git a/usr/local/www/system_firmware_check.php b/usr/local/www/system_firmware_check.php index 903cd79..6f4f4e6 100755 --- a/usr/local/www/system_firmware_check.php +++ b/usr/local/www/system_firmware_check.php @@ -141,6 +141,167 @@ if(!$latest_version) { } else { if($needs_system_upgrade) { echo "\n"; + $txt = "A new version is now available \\n\\n"; + $txt .= "New version: {$latest_version}\\n"; + $txt .= "Current version: {$current_installed_pfsense_version}\\n"; + $txt .= "Update source: {$g['update_url']}\\n"; + update_output_window($txt); + } else { + update_output_window("You are on the latest version."); + } +} +?> + + + + + + + + +. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ + +$d_isfwfile = 1; +require("guiconfig.inc"); + +$curcfg = $config['system']['firmware']; + +include("head.inc"); + +?> + + + + + + + + + + +

System: Firmware: Auto Upgrade

+ +
+ + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + +
+ + + +
+ +
+
+
+
+ + +
+

+

+
+
+ +

+ + $latest_version) + $needs_system_upgrade = true; + +if(!$latest_version) { + if(isset($curcfg['alturl']['enable'])) + update_output_window("Could not contact custom update server."); + else + update_output_window("Could not contact {$g['product_name']} update server {$updater_url}."); +} else { + if($needs_system_upgrade) { + echo "\n"; update_output_window("A new version is now available. \n\nNew version: {$latest_version}"); } else { update_output_window("You are on the latest version."); -- cgit v1.1