aboutsummaryrefslogtreecommitdiffstats
path: root/config/siproxdusers.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-04-06 17:24:17 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-04-06 17:24:17 -0400
commit0b6bfe46ae8af7e140dced3a33d24d52fcff5c4f (patch)
tree5a5ab3bfe2fcacd7814d826406458ee7b7898709 /config/siproxdusers.xml
parentea6f892d8cef153d494f4f273ded8b1f0bbd6d2c (diff)
downloadpfsense-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/siproxdusers.xml')
-rw-r--r--config/siproxdusers.xml21
1 files changed, 2 insertions, 19 deletions
diff --git a/config/siproxdusers.xml b/config/siproxdusers.xml
index a25418f9..a36e0554 100644
--- a/config/siproxdusers.xml
+++ b/config/siproxdusers.xml
@@ -48,6 +48,7 @@
<name>siproxdusers</name>
<version>0.5.9</version>
<title>siproxd: Users</title>
+ <include_file>/usr/local/pkg/siproxd.inc</include_file>
<tabs>
<tab>
<text>Settings</text>
@@ -91,27 +92,9 @@
</field>
</fields>
<custom_add_php_command>
- 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");
- }
sync_package_sipproxd_users();
</custom_add_php_command>
<custom_php_resync_config_command>
sync_package_sipproxd_users();
</custom_php_resync_config_command>
-</packagegui>
-
+</packagegui> \ No newline at end of file