From 3c041ee4b343904140e985204a03f37dbac4a14b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 7 Feb 2005 06:15:46 +0000 Subject: Check pfsense.com for newer versions when visiting the firmware menu. --- usr/local/www/system_firmware.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index 79b23cc..ee05103 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -36,19 +36,19 @@ if($_GET['autoupgrade'] <> "") { $savemsg = "pfSense is now auto upgrading. The firewall will automatically reboot if it succeeds."; } -/* checks with m0n0.ch to see if a newer firmware version is available; +/* checks with pfSense to see if a newer firmware version is available; returns any HTML message it gets from the server */ function check_firmware_version() { global $g; $post = "platform=" . rawurlencode($g['platform']) . "&version=" . rawurlencode(trim(file_get_contents("/etc/version"))); - $rfd = @fsockopen("pfSense", 80, $errno, $errstr, 3); + $rfd = @fsockopen("www.pfSense.com", 80, $errno, $errstr, 3); if ($rfd) { $hdr = "POST /pfSense/checkversion.php HTTP/1.0\r\n"; $hdr .= "Content-Type: application/x-www-form-urlencoded\r\n"; $hdr .= "User-Agent: pfSense-webConfigurator/1.0\r\n"; - $hdr .= "Host: m0n0.ch\r\n"; + $hdr .= "Host: www.pfSense.com\r\n"; $hdr .= "Content-Length: " . strlen($post) . "\r\n\r\n"; fwrite($rfd, $hdr); @@ -157,7 +157,7 @@ if ($_POST && !file_exists($d_firmwarelock_path)) {

System: Firmware

- + "") print_info_box($fwinfo); ?>

Firmware uploading is not supported on this platform.

-- cgit v1.1