Add tail pihole-FTL.log

This commit is contained in:
DL6ER
2017-03-05 23:17:34 +01:00
parent 236d16cfd0
commit 23334b3dbd
4 changed files with 85 additions and 1 deletions

View File

@@ -12,7 +12,15 @@ if(!$auth) die("Not authorized");
// Not using SplFileObject here, since direct
// usage of f-streams will be much faster for
// files as large as the pihole.log
$file = fopen("/var/log/pihole.log","r");
if(isset($_GET["FTL"]))
{
$file = fopen("/var/log/pihole-FTL.log","r");
}
else
{
$file = fopen("/var/log/pihole.log","r");
}
if(isset($_GET["offset"]))
{
$offset = intval($_GET['offset']);