From 221e8bfa5d007ad8e25e4a01c42c5ea496bd35df Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 23 Jan 2009 01:28:11 +0000 Subject: phpservice package improvements --- packages/phpservice/phpservice.inc | 18 +++++++++--------- packages/phpservice/phpservice_php_edit.tmp | 7 ++++--- 2 files changed, 13 insertions(+), 12 deletions(-) (limited to 'packages/phpservice') diff --git a/packages/phpservice/phpservice.inc b/packages/phpservice/phpservice.inc index 9acb7037..da6ada59 100644 --- a/packages/phpservice/phpservice.inc +++ b/packages/phpservice/phpservice.inc @@ -118,15 +118,15 @@ function phpservice_sync_package_php() $tmp .= " }\n"; $tmp .= "\n"; $tmp .= "\n"; - - $tmp .= "//------------------------------------------\n"; + $tmp .= "\n"; foreach($config['installedpackages']['phpservice']['config'] as $rowhelper) { - - $tmp .= base64_decode($rowhelper['php']); - $tmp .= "\n"; - $tmp .= "//------------------------------------------\n"; - + + $tmp .= "// name: ".$rowhelper['name']." \n"; + $tmp .= "// description: ".$rowhelper['description']." \n\n"; + $tmp .= base64_decode($rowhelper['php']); + $tmp .= "\n"; + } $tmp .= "\n"; @@ -150,7 +150,7 @@ function phpservice_sync_package_php() } -function phpservice_sync_package() +function php_sync_package() { global $config; @@ -193,7 +193,7 @@ function php_install_command() ) ); - phpservice_sync_package(); + php_sync_package(); //$handle = popen("/usr/local/etc/rc.d/phpservice.sh start", "r"); //pclose($handle); diff --git a/packages/phpservice/phpservice_php_edit.tmp b/packages/phpservice/phpservice_php_edit.tmp index a077a3ba..fcc163bd 100644 --- a/packages/phpservice/phpservice_php_edit.tmp +++ b/packages/phpservice/phpservice_php_edit.tmp @@ -69,7 +69,7 @@ if ($_POST) { } write_config(); - sync_package_phpservice(); + php_sync_package(); header("Location: phpservice_php.php"); exit; @@ -110,7 +110,7 @@ function show_advanced_config() { - +
@@ -134,7 +135,7 @@ function show_advanced_config() { PHP \n"; + echo "\n"; ?>