mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Added getNetConfig()
This commit is contained in:
parent
a21009e049
commit
66bd5d5927
1 changed files with 13 additions and 0 deletions
|
@ -234,6 +234,19 @@ function ParseConfig($arrConfig)
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fetches DHCP configuration for an interface, returned as JSON data
|
||||||
|
*
|
||||||
|
* @param string $interface
|
||||||
|
* @return json $jsonData
|
||||||
|
*/
|
||||||
|
function getNetConfig($interface)
|
||||||
|
{
|
||||||
|
$URI = $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'] .'/ajax/networking/get_netcfg.php?iface='.$interface;
|
||||||
|
$jsonData = file_get_contents($URI);
|
||||||
|
return $jsonData;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $freq
|
* @param string $freq
|
||||||
|
|
Loading…
Reference in a new issue