mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Permit flags in the config
This commit is contained in:
parent
443c75390a
commit
d431c3f767
1 changed files with 3 additions and 2 deletions
|
@ -21,9 +21,10 @@ function GetDistString( $input,$string,$offset,$separator ) {
|
|||
function ParseConfig( $arrConfig ) {
|
||||
$config = array();
|
||||
foreach( $arrConfig as $line ) {
|
||||
if( $line[0] != "#" ) {
|
||||
$line = trim($line);
|
||||
if( $line != "" && $line[0] != "#" ) {
|
||||
$arrLine = explode( "=",$line );
|
||||
$config[$arrLine[0]] = $arrLine[1];
|
||||
$config[$arrLine[0]] = ( count($arrLine) > 1 ? $arrLine[1] : true );
|
||||
}
|
||||
}
|
||||
return $config;
|
||||
|
|
Loading…
Reference in a new issue