mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 18:29:43 +01:00
Removing the text dnsmasq[nnnn] from the log.
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -10,12 +10,14 @@ require "password.php";
|
||||
if(!$auth) die("Not authorized");
|
||||
|
||||
function formatLine($line){
|
||||
$txt = preg_replace("/ dnsmasq\[[0-9]*\]/", "", htmlspecialchars($line));
|
||||
|
||||
if (strpos($line, "blacklisted") || strpos($line, "gravity blocked")) {
|
||||
$txt = '<b class="log-red">'.htmlspecialchars($line).'</b>';
|
||||
$txt = '<b class="log-red">'.$txt.'</b>';
|
||||
} elseif (strpos($line, "query[A") || strpos($line, "query[DHCP")) {
|
||||
$txt = '<b>'.htmlspecialchars($line).'</b>';
|
||||
$txt = '<b>'.$txt.'</b>';
|
||||
} else {
|
||||
$txt = '<span class="text-muted">'.htmlspecialchars($line).'</span>';
|
||||
$txt = '<span class="text-muted">'.$txt.'</span>';
|
||||
}
|
||||
return $txt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user