Implement necessary changes due to switching from individual to a common domainlist.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-12-08 17:42:01 +00:00
parent a9852b8762
commit 3a0a596b11
5 changed files with 131 additions and 50 deletions

View File

@@ -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: