mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Permit flags in the config
This commit is contained in:
parent
443c75390a
commit
d431c3f767
@ -21,9 +21,10 @@ function GetDistString( $input,$string,$offset,$separator ) {
|
|||||||
function ParseConfig( $arrConfig ) {
|
function ParseConfig( $arrConfig ) {
|
||||||
$config = array();
|
$config = array();
|
||||||
foreach( $arrConfig as $line ) {
|
foreach( $arrConfig as $line ) {
|
||||||
if( $line[0] != "#" ) {
|
$line = trim($line);
|
||||||
|
if( $line != "" && $line[0] != "#" ) {
|
||||||
$arrLine = explode( "=",$line );
|
$arrLine = explode( "=",$line );
|
||||||
$config[$arrLine[0]] = $arrLine[1];
|
$config[$arrLine[0]] = ( count($arrLine) > 1 ? $arrLine[1] : true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $config;
|
return $config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user