aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy/haproxy_global.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-12-28 17:50:19 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-12-28 17:50:19 -0500
commitf97891b1d641ddc03837e776baaa347ff98837a7 (patch)
tree3f7980df75d2be29b659a4d40afc517e91984009 /config/haproxy/haproxy_global.php
parent223eb01c5880267202cacc60108c3108b2b08eee (diff)
downloadpfsense-packages-f97891b1d641ddc03837e776baaa347ff98837a7.tar.gz
pfsense-packages-f97891b1d641ddc03837e776baaa347ff98837a7.tar.bz2
pfsense-packages-f97891b1d641ddc03837e776baaa347ff98837a7.zip
Using base64_deocde() and base64_encode() note the missing _
Diffstat (limited to 'config/haproxy/haproxy_global.php')
-rwxr-xr-xconfig/haproxy/haproxy_global.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/haproxy/haproxy_global.php b/config/haproxy/haproxy_global.php
index 9db0c216..dc0949b4 100755
--- a/config/haproxy/haproxy_global.php
+++ b/config/haproxy/haproxy_global.php
@@ -77,7 +77,7 @@ if ($_POST) {
$config['installedpackages']['haproxy']['synchost2'] = $_POST['synchost3'] ? $_POST['synchost3'] : false;
$config['installedpackages']['haproxy']['remotesyslog'] = $_POST['remotesyslog'] ? $_POST['remotesyslog'] : false;
$config['installedpackages']['haproxy']['syncpassword'] = $_POST['syncpassword'] ? $_POST['syncpassword'] : false;
- $config['installedpackages']['haproxy']['advanced'] = base64encode($_POST['advanced']) ? $_POST['advanced'] : false;
+ $config['installedpackages']['haproxy']['advanced'] = base64_encode($_POST['advanced']) ? $_POST['advanced'] : false;
touch($d_haproxyconfdirty_path);
write_config();
}
@@ -93,7 +93,7 @@ $pconfig['synchost1'] = $config['installedpackages']['haproxy']['synchost1'];
$pconfig['synchost2'] = $config['installedpackages']['haproxy']['synchost2'];
$pconfig['synchost3'] = $config['installedpackages']['haproxy']['synchost3'];
$pconfig['remotesyslog'] = $config['installedpackages']['haproxy']['remotesyslog'];
-$pconfig['advanced'] = base64decode($config['installedpackages']['haproxy']['advanced']);
+$pconfig['advanced'] = base64_decode($config['installedpackages']['haproxy']['advanced']);
$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
if(strstr($pfSversion, "1.2"))