diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-04-06 17:24:17 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-04-06 17:24:17 -0400 |
commit | 0b6bfe46ae8af7e140dced3a33d24d52fcff5c4f (patch) | |
tree | 5a5ab3bfe2fcacd7814d826406458ee7b7898709 /config/siproxd.inc | |
parent | ea6f892d8cef153d494f4f273ded8b1f0bbd6d2c (diff) | |
download | pfsense-packages-0b6bfe46ae8af7e140dced3a33d24d52fcff5c4f.tar.gz pfsense-packages-0b6bfe46ae8af7e140dced3a33d24d52fcff5c4f.tar.bz2 pfsense-packages-0b6bfe46ae8af7e140dced3a33d24d52fcff5c4f.zip |
Fix Call to undefined function sync_package_sipproxd_users()
Diffstat (limited to 'config/siproxd.inc')
-rw-r--r-- | config/siproxd.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/config/siproxd.inc b/config/siproxd.inc index fee47a90..be1ac196 100644 --- a/config/siproxd.inc +++ b/config/siproxd.inc @@ -27,6 +27,23 @@ POSSIBILITY OF SUCH DAMAGE. */ +function sync_package_sipproxd_users() { + conf_mount_rw(); + config_lock(); + global $config; + $fout = fopen("/usr/local/etc/siproxd_passwd.cfg","w"); + fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); + if($config['installedpackages']['siproxdusers']['config'] != "") { + foreach($config['installedpackages']['siproxdusers']['config'] as $rowhelper) { + fwrite($fout, $rowhelper['username'] . " " . $rowhelper['password'] . "\n"); + } + } + fclose($fout); + conf_mount_ro(); + config_unlock(); + system("/usr/bin/killall -HUP siproxd"); +} + function siproxd_generate_rules($type) { global $config; |