diff --git a/ncp-web/index.php b/ncp-web/index.php
index 597303706..8437b6b78 100644
--- a/ncp-web/index.php
+++ b/ncp-web/index.php
@@ -70,14 +70,19 @@
{
$script = pathinfo( $file , PATHINFO_FILENAME );
$fh = fopen( $path . $file ,'r');
+ $active = "";
while ($line = fgets($fh))
+ {
+ if ( $line == "ACTIVE_=yes\n" )
+ $active = " ✓";
if ( preg_match('/^DESCRIPTION="(.*)"$/', $line, $matches) )
{
echo "
";
- echo " $script ";
+ echo " $script$active ";
echo "";
echo "";
}
+ }
fclose($fh);
}
?>
diff --git a/ncp-web/ncp-launcher.php b/ncp-web/ncp-launcher.php
index ce3e88a52..2038cc61d 100644
--- a/ncp-web/ncp-launcher.php
+++ b/ncp-web/ncp-launcher.php
@@ -35,6 +35,7 @@
while ( $line = fgets($fh) )
{
+ // checkbox (yes/no) field
if ( preg_match('/^(\w+)_=(yes|no)$/', $line, $matches) )
{
if ( $matches[2] == "yes" )
@@ -44,6 +45,8 @@
$output = $output . " | ";
$output = $output . "";
}
+
+ // text field
else if ( preg_match('/^(\w+)_=(.*)$/', $line, $matches) )
{
$output = $output . "";