mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 10:50:23 +01:00
Implement necessary changes due to switching from individual to a common domainlist.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -27,19 +27,19 @@ $db = SQLite3_connect($GRAVITYDB, SQLITE3_OPEN_READWRITE);
|
||||
|
||||
switch($type) {
|
||||
case "white":
|
||||
echo remove_from_table($db, "whitelist", $domains);
|
||||
echo remove_from_table($db, "domainlist", $domains, false, 0);
|
||||
break;
|
||||
|
||||
case "black":
|
||||
echo remove_from_table($db, "blacklist", $domains);
|
||||
break;
|
||||
|
||||
case "black_regex":
|
||||
echo remove_from_table($db, "regex_blacklist", $domains);
|
||||
echo remove_from_table($db, "domainlist", $domains, false, 1);
|
||||
break;
|
||||
|
||||
case "white_regex":
|
||||
echo remove_from_table($db, "regex_whitelist", $domains);
|
||||
echo remove_from_table($db, "domainlist", $domains, false, 2);
|
||||
break;
|
||||
|
||||
case "black_regex":
|
||||
echo remove_from_table($db, "domainlist", $domains, false, 3);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user