fix static DG-IDs
- only grep for line that actually start with "Options" (ignore commented lines) - add counter of activated DG-IDs to header
This commit is contained in:
parent
582173307a
commit
1206c4f1bf
1 changed files with 2 additions and 2 deletions
|
@ -26,12 +26,12 @@
|
|||
Hostname: <?php echo trim(`hostname`); ?> (<?php echo trim(`hostname -I | cut -d' ' -f1`); ?>)<br />
|
||||
<?php
|
||||
$iniFile = YSFGW_INI;
|
||||
$logline = `egrep -h Options $iniFile | tail -n 1`;
|
||||
$logline = `egrep -h "^Options" $iniFile | tail -n 1`;
|
||||
//$options = substr($logline, strpos($logline, "Options="));
|
||||
$optionsLine = explode( "=", $logline );
|
||||
$DGIDs = explode( ",", $optionsLine[1] );
|
||||
|
||||
echo "Static DG-IDs: ";
|
||||
echo "Static DG-IDs (" . count( $DGIDs ) . "): ";
|
||||
|
||||
foreach( $DGIDs as $DGID ) {
|
||||
echo "$DGID ";
|
||||
|
|
Loading…
Reference in a new issue