From b75c57f8dcffb49b19f3a47dd005d1edf5d88f85 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Thu, 3 Mar 2005 01:49:38 +0000 Subject: If $_POST is not defined use config.xml data instead. --- packages/ifstated.xml | 1 + packages/siproxd.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/ifstated.xml b/packages/ifstated.xml index d1dd0dcd..d5901412 100644 --- a/packages/ifstated.xml +++ b/packages/ifstated.xml @@ -71,6 +71,7 @@ conf_mount_rw(); config_lock(); global $config; + if ($_POST == "") $_POST = $config['installedpackages']['ifstated']['config']; $fout = fopen("/usr/local/etc/ifstated.conf","w"); if($config['installedpackages']['ifstated']['config'] != "") { fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); diff --git a/packages/siproxd.xml b/packages/siproxd.xml index d35488bc..132e0e94 100644 --- a/packages/siproxd.xml +++ b/packages/siproxd.xml @@ -118,6 +118,7 @@ conf_mount_rw(); config_lock(); global $config; + if ($_POST == "") $_POST = $config['installedpackages']['siproxd']['config']; $fout = fopen("/usr/local/etc/siproxd.conf","w"); fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); if($_POST['if_inbound'] != "") { -- cgit v1.2.3