mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Added getNetConfig()
This commit is contained in:
parent
a21009e049
commit
66bd5d5927
@ -234,6 +234,19 @@ function ParseConfig($arrConfig)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user