summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-16 20:43:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-16 20:43:26 +0000
commit36d0358b568a0dde740ade770408bef2d8c3fa65 (patch)
tree4b8827c6708d12d3fee1a70d9a36b435b9c92624 /etc/inc/pfsense-utils.inc
parentb5e2cc9240a198a9b8fb4827fb262397275a881e (diff)
downloadpfsense-36d0358b568a0dde740ade770408bef2d8c3fa65.zip
pfsense-36d0358b568a0dde740ade770408bef2d8c3fa65.tar.gz
Add product_copyright re-branding support
Add product_copyright_years re-branding support Add product_website re-branding support Add product_email re-branding support Work sponsored-by: Centipede Networks
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 7e0e29b..8a51674 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -2132,8 +2132,8 @@ function make_dirs($path, $mode = 0755) {
* call_pfsense_method(): Call a method exposed by the pfsense.com XMLRPC server.
*/
function call_pfsense_method($method, $params, $timeout = 0) {
- $ip = gethostbyname('www.pfsense.com');
- if($ip == "www.pfsense.com")
+ $ip = gethostbyname($g['product_website']);
+ if($ip == $g['product_website'])
return false;
global $g, $config;
$xmlrpc_base_url = $g['xmlrpcbaseurl'];
@@ -2157,8 +2157,8 @@ function call_pfsense_method($method, $params, $timeout = 0) {
*/
function check_firmware_version($tocheck = "all", $return_php = true) {
global $g, $config;
- $ip = gethostbyname('www.pfsense.com');
- if($ip == "www.pfsense.com")
+ $ip = gethostbyname($g['product_website']);
+ if($ip == $g['product_website'])
return false;
$rawparams = array("firmware" => array("version" => trim(file_get_contents('/etc/version'))),
"kernel" => array("version" => trim(file_get_contents('/etc/version_kernel'))),
OpenPOWER on IntegriCloud