mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
parse interface config ini the same as in 6e33e4c (#348)
when showing network config. this makes the proper radio button be checked.
This commit is contained in:
parent
6286595898
commit
63c3fc57f0
@ -12,7 +12,7 @@ if(isset($_POST['interface'])) {
|
|||||||
touch(RASPI_CONFIG_NETWORKING.'/'.$int.'.ini');
|
touch(RASPI_CONFIG_NETWORKING.'/'.$int.'.ini');
|
||||||
}
|
}
|
||||||
|
|
||||||
$intConfig = parse_ini_file(RASPI_CONFIG_NETWORKING.'/'.$int.'.ini');
|
$intConfig = parse_ini_file(RASPI_CONFIG_NETWORKING.'/'.$int.'.ini', false, INI_SCANNER_RAW);
|
||||||
$jsonData = ['return'=>1,'output'=>['intConfig'=>$intConfig]];
|
$jsonData = ['return'=>1,'output'=>['intConfig'=>$intConfig]];
|
||||||
echo json_encode($jsonData);
|
echo json_encode($jsonData);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user