summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-07 06:15:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-07 06:15:46 +0000
commit3c041ee4b343904140e985204a03f37dbac4a14b (patch)
treec207335c34aa86e196033db0e6ff9cfb725bacf4 /usr
parentbe3239e3aa25553017afa203ac296b808bc493d5 (diff)
downloadpfsense-3c041ee4b343904140e985204a03f37dbac4a14b.zip
pfsense-3c041ee4b343904140e985204a03f37dbac4a14b.tar.gz
Check pfsense.com for newer versions when visiting the firmware menu.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_firmware.php8
1 files 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)) {
<p class="pgtitle">System: Firmware</p>
<?php if ($input_errors) print_input_errors($input_errors); ?>
<?php if ($savemsg) print_info_box($savemsg); ?>
-<?php if ($fwinfo) echo $fwinfo; ?>
+<?php if ($fwinfo <> "") print_info_box($fwinfo); ?>
<?php if (!in_array($g['platform'], $fwupplatforms)): ?>
<p><strong>Firmware uploading is not supported on this platform.</strong></p>
<?php elseif ($sig_warning && !$input_errors): ?>
OpenPOWER on IntegriCloud