aboutsummaryrefslogtreecommitdiffstats
path: root/packages/phpservice/phpservice.inc
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2009-01-23 04:31:45 +0000
committerMark Crane <mcrane@pfsense.org>2009-01-23 04:31:45 +0000
commita7bd4d599217fcb8f8c3ca368af26b34ed39e3b1 (patch)
tree15d3ca92c6c3391aa05eef59f85770bbbdcb3838 /packages/phpservice/phpservice.inc
parent9a5d2b00b3016761c6077849c6c093249b36e2b5 (diff)
downloadpfsense-packages-a7bd4d599217fcb8f8c3ca368af26b34ed39e3b1.tar.gz
pfsense-packages-a7bd4d599217fcb8f8c3ca368af26b34ed39e3b1.tar.bz2
pfsense-packages-a7bd4d599217fcb8f8c3ca368af26b34ed39e3b1.zip
PHPService package update wording links, enable/disable entries. Add link to the wiki.
Diffstat (limited to 'packages/phpservice/phpservice.inc')
-rw-r--r--packages/phpservice/phpservice.inc14
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/phpservice/phpservice.inc b/packages/phpservice/phpservice.inc
index da6ada59..1718981e 100644
--- a/packages/phpservice/phpservice.inc
+++ b/packages/phpservice/phpservice.inc
@@ -121,11 +121,15 @@ function phpservice_sync_package_php()
$tmp .= "\n";
foreach($config['installedpackages']['phpservice']['config'] as $rowhelper) {
-
- $tmp .= "// name: ".$rowhelper['name']." \n";
- $tmp .= "// description: ".$rowhelper['description']." \n\n";
- $tmp .= base64_decode($rowhelper['php']);
- $tmp .= "\n";
+ if ($rowhelper['enabled'] != "false") {
+ $tmp_php = base64_decode($rowhelper['php'];
+ if (strlen($tmp_php) > 0) {
+ $tmp .= "// name: ".$rowhelper['name']." \n";
+ $tmp .= "// description: ".$rowhelper['description']." \n\n";
+ $tmp .= base64_decode($rowhelper['php']);
+ $tmp .= "\n";
+ }
+ }
}