diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-07 20:04:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-07 20:04:18 +0000 |
commit | 4ac5934eeb774892f79eaad993a2b69cd69c2784 (patch) | |
tree | afa4bfcc5013e68b0420e4673b8167a9fa2ecb57 /packages | |
parent | 661d236a22ae0be8a93067ff269efafeaac642ac (diff) | |
download | pfsense-packages-4ac5934eeb774892f79eaad993a2b69cd69c2784.tar.gz pfsense-packages-4ac5934eeb774892f79eaad993a2b69cd69c2784.tar.bz2 pfsense-packages-4ac5934eeb774892f79eaad993a2b69cd69c2784.zip |
Correctly write out doorman users. It is obvious this package was never tested 18 months ago by the original author...
Diffstat (limited to 'packages')
-rw-r--r-- | packages/doormanusers.xml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/doormanusers.xml b/packages/doormanusers.xml index e73cd88e..54e83a7e 100644 --- a/packages/doormanusers.xml +++ b/packages/doormanusers.xml @@ -78,11 +78,10 @@ global $config; $fout = fopen("/usr/local/etc/doormand/guestlist","w"); fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); - if($config['installedpackages']['doormanusers'] != "") { + if($config['installedpackages']['doormanusers']) foreach($config['installedpackages']['doormanusers']['config'] as $rowhelper) { fwrite($fout, $rowhelper['username'] . "\t" . $rowhelper['password'] . "\n\t" . $rowhelper['ports'] . "\n\t" . $rowhelper['addresses'] . "\n\n"); } - } fclose($fout); restart_service("doorman"); conf_mount_ro(); |