diff --git a/.gitignore b/.gitignore index c96a4cd4..5a1ff56d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,9 @@ TODO *.zip test.html -*.log \ No newline at end of file +*.log + +# Intellij IDEA Project Files +*.iml +*.ipr +*.iws diff --git a/footer.html b/footer.html new file mode 100644 index 00000000..e2957dfe --- /dev/null +++ b/footer.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/header.html b/header.html new file mode 100644 index 00000000..83e22e04 --- /dev/null +++ b/header.html @@ -0,0 +1,135 @@ + + + + + Pi-hole Admin Console + + + + + + + + + + + + + + +
+
+ + + + +
+ + + +
+ +
\ No newline at end of file diff --git a/index.php b/index.php index 60653dbd..bfd19660 100644 --- a/index.php +++ b/index.php @@ -1,246 +1,73 @@ - - - - - Pi-hole Admin Console - - - - - - - - - - - - - - - -
-
- - - - -
- - - -
- -
- -
-
- -
-
-

-

Ads Blocked Today

-
-
- -
- More info -
-
- -
- -
-
-

-

DNS Queries Today

-
-
- -
- More info -
-
- -
- -
-
-

%

-

Of Today's Traffic Is Ads

-
-
- -
- More info -
-
- -
- -
-
-

-

Domains Being Blocked

-
-
- -
- More info -
-
- -
- -
- + +
+
+ +
+
+

+

Ads Blocked Today

- -
- - Donate if you found this useful. -
+
+ +
+ More info
- - - - - - +
+ +
+ +
+
+

+

DNS Queries Today

+
+
+ +
+ More info +
+
+ +
+ +
+
+

%

+

Of Today's Traffic Is Ads

+
+
+ +
+ More info +
+
+ +
+ +
+
+

+

Domains Being Blocked

+
+
+ +
+ More info +
+
+ +
+ + + diff --git a/list.php b/list.php new file mode 100644 index 00000000..80a3b9d4 --- /dev/null +++ b/list.php @@ -0,0 +1,114 @@ + + + + + + +
+ + + + + +
+ + + + + + + +
    + + + + diff --git a/php/add.php b/php/add.php new file mode 100644 index 00000000..95585ee7 --- /dev/null +++ b/php/add.php @@ -0,0 +1,12 @@ += 0; $i--) { + if($list[$i] == "") + unset($list[$i]); +} + +echo json_encode(array_values($list)); \ No newline at end of file diff --git a/php/sub.php b/php/sub.php new file mode 100644 index 00000000..2b13b975 --- /dev/null +++ b/php/sub.php @@ -0,0 +1,12 @@ +