diff --git a/includes/adblock.php b/includes/adblock.php index 0d171e25..ec6fb38d 100755 --- a/includes/adblock.php +++ b/includes/adblock.php @@ -92,6 +92,7 @@ function DisplayAdBlockConfig() } else { $adblock_log = "Unable to open log file"; } + $logdata = getLogLimited(RASPI_DHCPCD_LOG, $adblock_log); echo renderTemplate( "adblock", compact( @@ -101,7 +102,7 @@ function DisplayAdBlockConfig() "enabled", "custom_enabled", "adblock_custom_content", - "adblock_log" + "logdata" ) ); } diff --git a/includes/dhcp.php b/includes/dhcp.php index 1c6b500c..b1167457 100755 --- a/includes/dhcp.php +++ b/includes/dhcp.php @@ -60,6 +60,9 @@ function DisplayDHCPConfig() count($log_dhcp) > 0 ? $conf['log-dhcp'] = true : false ; count($log_queries) > 0 ? $conf['log-queries'] = true : false ; + exec('sudo /bin/chmod o+r '.RASPI_DHCPCD_LOG); + $logdata = getLogLimited(RASPI_DHCPCD_LOG); + echo renderTemplate( "dhcp", compact( "status", @@ -70,7 +73,8 @@ function DisplayDHCPConfig() "hosts", "upstreamServers", "interfaces", - "leases" + "leases", + "logdata" ) ); } diff --git a/includes/hostapd.php b/includes/hostapd.php index 7fe54134..3ca11356 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -135,6 +135,8 @@ function DisplayHostAPDConfig() $selectedHwMode = 'w'; } } + exec('sudo /bin/chmod o+r '.RASPI_HOSTAPD_LOG); + $logdata = getLogLimited(RASPI_HOSTAPD_LOG); echo renderTemplate( "hostapd", compact( @@ -153,7 +155,8 @@ function DisplayHostAPDConfig() "arrHostapdConf", "operatingSystem", "selectedHwMode", - "countryCodes" + "countryCodes", + "logdata" ) ); } diff --git a/templates/adblock/logging.php b/templates/adblock/logging.php index 8378e68d..2140ae71 100644 --- a/templates/adblock/logging.php +++ b/templates/adblock/logging.php @@ -3,7 +3,7 @@