diff options
Diffstat (limited to 'ncp-web/index.php')
-rw-r--r-- | ncp-web/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ncp-web/index.php b/ncp-web/index.php index 59730370..8437b6b7 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 "<li id=\"$script\" class=\"nav-recent\">"; - echo "<a href=\"#\"> $script </a>"; + echo "<a href=\"#\"> $script$active </a>"; echo "<input type=\"hidden\" value=\"$matches[1]\" />"; echo "</li>"; } + } fclose($fh); } ?> |