mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Provide notice message for whitelisted sites
This commit is contained in:
parent
3b44a0da32
commit
1c2aa44d46
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue