Provide notice message for whitelisted sites

This commit is contained in:
WaLLy3K 2017-05-11 20:10:40 +10:00 committed by GitHub
parent 3b44a0da32
commit 1c2aa44d46
1 changed files with 6 additions and 1 deletions

View File

@ -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";
}
}