diff options
author | Colin Smith <colin@pfsense.org> | 2005-03-31 22:29:40 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-03-31 22:29:40 +0000 |
commit | 845ea3b6604dfb4a31569c2ddbc086c87b17518e (patch) | |
tree | 23996e93f54164f25f9d681f8032d36159d90b92 /usr/local/www/system_firmware.php | |
parent | aee3ea1997b3298c713491a68300532db0c74723 (diff) | |
download | pfsense-845ea3b6604dfb4a31569c2ddbc086c87b17518e.zip pfsense-845ea3b6604dfb4a31569c2ddbc086c87b17518e.tar.gz |
Stub in support for alternate version checking URLs.
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-x | usr/local/www/system_firmware.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index 4d20878..a0554e4 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -36,12 +36,19 @@ $d_isfwfile = 1; require("guiconfig.inc"); returns any HTML message it gets from the server */ function check_firmware_version() { global $g; + $versioncheck_base_url = $g['versioncheckbaseurl']; +"versioncheckbaseurl" => "http://www.pfsense.com", + "versioncheckpath" => "/pfSense/checkversion.php", + if(isset($config['system']['alt_firmware_url']['enabled'])) { + $pkg_config_location = $config['system']['alt_pkgconfig_url']['pkgconfig_base_url'] . $config['system']['alt_pkgconfig_url']['pkgconfig_filename']; + $pkg_config_base_url = $config['system']['alt_pkgconfig_url']['pkgconfig_base_url']; + } $post = "platform=" . rawurlencode($g['platform']) . "&version=" . rawurlencode(trim(file_get_contents("/etc/version"))); $rfd = @fsockopen("www.pfSense.com", 80, $errno, $errstr, 3); if ($rfd) { - $hdr = "POST /pfSense/checkversion.php HTTP/1.0\r\n"; + $hdr = "POST 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: www.pfSense.com\r\n"; |