Provide notice message for whitelisted sites
This commit is contained in:
parent
3b44a0da32
commit
1c2aa44d46
|
@ -168,6 +168,11 @@ if ($queryAds[0] === "blacklist.txt") {
|
|||
$intBlacklist = array("π" => $queryAds[0]);
|
||||
$queryAds[0] = "π"; // Manually blacklisted sites do not have a number
|
||||
$notableFlagClass = "blacklist";
|
||||
} elseif ($queryAds[0] === "whitelist.txt") {
|
||||
$intBlacklist = array("π" => $queryAds[0]);
|
||||
$queryAds[0] = "π";
|
||||
$notableFlagClass = "noblock";
|
||||
$wlInfo = "recentwl";
|
||||
} elseif ($queryAds[0] === "03-pihole-wildcard.conf") {
|
||||
$intBlacklist = array("π" => $queryAds[0]);
|
||||
$queryAds[0] = "π";
|
||||
|
@ -181,7 +186,7 @@ if ($queryAds[0] === "blacklist.txt") {
|
|||
if (array_key_exists("target", $dnsRecord)) {
|
||||
$wlInfo = $dnsRecord['target'];
|
||||
} else {
|
||||
$wlInfo = "recentwl";
|
||||
$wlInfo = "unknown";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue