aboutsummaryrefslogtreecommitdiffstats
path: root/config/autoconfigbackup/autoconfigbackup.php
diff options
context:
space:
mode:
authorManuel Silvoso <msilvoso@gmail.com>2014-07-25 23:06:43 +0200
committerManuel Silvoso <msilvoso@gmail.com>2014-07-25 23:06:43 +0200
commit2fb2c17eef49225706b2fb1d4bd522dea58ce982 (patch)
tree6ba00c95bdeb35ad76776dce5e635ba0747be244 /config/autoconfigbackup/autoconfigbackup.php
parentc4f7014bba0bb82b21025afe02f2ec04039e0cf2 (diff)
downloadpfsense-packages-2fb2c17eef49225706b2fb1d4bd522dea58ce982.tar.gz
pfsense-packages-2fb2c17eef49225706b2fb1d4bd522dea58ce982.tar.bz2
pfsense-packages-2fb2c17eef49225706b2fb1d4bd522dea58ce982.zip
Requested changes
Diffstat (limited to 'config/autoconfigbackup/autoconfigbackup.php')
-rw-r--r--config/autoconfigbackup/autoconfigbackup.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup.php b/config/autoconfigbackup/autoconfigbackup.php
index 9826154c..755c47aa 100644
--- a/config/autoconfigbackup/autoconfigbackup.php
+++ b/config/autoconfigbackup/autoconfigbackup.php
@@ -28,7 +28,7 @@
*/
require("guiconfig.inc");
-require("/usr/local/pkg/autoconfigbackup.inc");
+require("autoconfigbackup.inc");
$pf_version=substr(trim(file_get_contents("/etc/version")),0,3);
if ($pf_version < 2.0)
@@ -91,7 +91,7 @@ function get_hostnames() {
curl_setopt($curl_session, CURLOPT_POSTFIELDS, "action=showstats");
curl_setopt($curl_session, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version")));
// Proxy
- curl_setopt_array($curl_session, configure_proxy($config));
+ curl_setopt_array($curl_session, configure_proxy());
$data = curl_exec($curl_session);
if (curl_errno($curl_session)) {
@@ -172,7 +172,7 @@ function get_hostnames() {
"&revision=" . urlencode($_REQUEST['rmver']));
curl_setopt($curl_session, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version")));
// Proxy
- curl_setopt_array($curl_session, configure_proxy($config));
+ curl_setopt_array($curl_session, configure_proxy());
$data = curl_exec($curl_session);
if (curl_errno($curl_session)) {
@@ -203,7 +203,7 @@ function get_hostnames() {
"&revision=" . urlencode($_REQUEST['newver']));
curl_setopt($curl_session, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version")));
// Proxy
- curl_setopt_array($curl_session, configure_proxy($config));
+ curl_setopt_array($curl_session, configure_proxy());
$data = curl_exec($curl_session);
$data_split = split("\+\+\+\+", $data);
$sha256 = trim($data_split[0]); // sha256
@@ -270,7 +270,7 @@ EOF;
"&revision=" . urlencode($_REQUEST['download']));
curl_setopt($curl_session, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version")));
// Proxy
- curl_setopt_array($curl_session, configure_proxy($config));
+ curl_setopt_array($curl_session, configure_proxy());
$data = curl_exec($curl_session);
if (!tagfile_deformat($data, $data1, "config.xml"))
$input_errors[] = "The downloaded file does not appear to contain an encrypted pfSense configuration.";
@@ -323,7 +323,7 @@ EOF;
curl_setopt($curl_session, CURLOPT_POSTFIELDS, "action=showbackups&hostname={$hostname}");
curl_setopt($curl_session, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version")));
// Proxy
- curl_setopt_array($curl_session, configure_proxy($config));
+ curl_setopt_array($curl_session, configure_proxy());
$data = curl_exec($curl_session);
if (curl_errno($curl_session)) {