raspap-webgui-mirror/includes/networking.php

27 lines
577 B
PHP
Raw Permalink Normal View History

<?php
require_once 'includes/internetRoute.php';
/**
2020-02-15 17:57:46 +00:00
*
*
*/
function DisplayNetworkingConfig()
{
$status = new \RaspAP\Messages\StatusMessage;
exec("ls /sys/class/net | grep -v lo", $interfaces);
$routeInfo = getRouteInfo(true);
2022-04-21 08:52:09 +00:00
$routeInfoRaw = getRouteInfoRaw();
$arrHostapdConf = parse_ini_file(RASPI_CONFIG.'/hostapd.ini');
$bridgedEnabled = $arrHostapdConf['BridgedEnable'];
echo renderTemplate("networking", compact(
"status",
"interfaces",
"routeInfo",
2022-04-21 08:52:09 +00:00
"routeInfoRaw",
"bridgedEnabled")
);
}