2017-10-22 18:26:49 +02:00
|
|
|
<?php
|
|
|
|
|
2021-02-02 13:26:14 +01:00
|
|
|
require_once 'includes/internetRoute.php';
|
2017-10-22 18:26:49 +02:00
|
|
|
|
|
|
|
/**
|
2020-02-15 18:57:46 +01:00
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2019-04-10 10:37:35 +02:00
|
|
|
function DisplayNetworkingConfig()
|
|
|
|
{
|
2023-09-16 11:46:11 +02:00
|
|
|
$status = new \RaspAP\Messages\StatusMessage;
|
2017-10-22 18:26:49 +02:00
|
|
|
|
2019-04-10 10:37:35 +02:00
|
|
|
exec("ls /sys/class/net | grep -v lo", $interfaces);
|
2021-02-02 13:26:14 +01:00
|
|
|
$routeInfo = getRouteInfo(true);
|
2022-04-21 10:52:09 +02:00
|
|
|
$routeInfoRaw = getRouteInfoRaw();
|
2021-02-02 13:26:14 +01:00
|
|
|
$arrHostapdConf = parse_ini_file(RASPI_CONFIG.'/hostapd.ini');
|
|
|
|
$bridgedEnabled = $arrHostapdConf['BridgedEnable'];
|
2017-10-22 18:26:49 +02:00
|
|
|
|
2021-02-02 13:26:14 +01:00
|
|
|
echo renderTemplate("networking", compact(
|
|
|
|
"status",
|
|
|
|
"interfaces",
|
|
|
|
"routeInfo",
|
2022-04-21 10:52:09 +02:00
|
|
|
"routeInfoRaw",
|
2021-02-02 13:26:14 +01:00
|
|
|
"bridgedEnabled")
|
|
|
|
);
|
2017-10-22 18:26:49 +02:00
|
|
|
}
|