diff --git a/list.php b/list.php
deleted file mode 100644
index 95fbcd1a..00000000
--- a/list.php
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Adding to the ...
-
-
-
-
-
-
-
- Failure! Something went wrong, see output below:
-
-
-
- At least one domain was already present, see output below:
-
-
-
-
-
Exact
-
-
Regex & Wildcard
-
-
-
-
-
diff --git a/scripts/pi-hole/js/groups-domains.js b/scripts/pi-hole/js/groups-domains.js
index e48045e2..7e38d4b8 100644
--- a/scripts/pi-hole/js/groups-domains.js
+++ b/scripts/pi-hole/js/groups-domains.js
@@ -11,6 +11,7 @@ var table;
var groups = [];
var token = $("#token").html();
var GETDict = {};
+var showtype = "all";
function get_groups() {
$.post(
@@ -32,6 +33,10 @@ $(document).ready(function() {
GETDict[item.split("=")[0]] = item.split("=")[1];
});
+ if ("type" in GETDict && (GETDict.type === "white" || GETDict.type === "black")) {
+ showtype = GETDict.type;
+ }
+
$("#btnAdd").on("click", addDomain);
get_groups();
@@ -46,7 +51,7 @@ function initTable() {
table = $("#domainsTable").DataTable({
ajax: {
url: "scripts/pi-hole/php/groups.php",
- data: { action: "get_domains", token: token },
+ data: { action: "get_domains", showtype: showtype, token: token },
type: "POST"
},
order: [[0, "asc"]],
@@ -74,20 +79,32 @@ function initTable() {
'
' + data.domain + ""
);
- $("td:eq(1)", row).html(
- '
diff --git a/scripts/pi-hole/php/sub.php b/scripts/pi-hole/php/sub.php
deleted file mode 100644
index cdee3ceb..00000000
--- a/scripts/pi-hole/php/sub.php
+++ /dev/null
@@ -1,51 +0,0 @@
-