Disable Whitelist/Blacklist feature for release

See #39 for why this is needed
This commit is contained in:
Mcat12
2016-02-21 15:02:48 -05:00
parent 4829dde9bc
commit 18a44efd95
4 changed files with 0 additions and 154 deletions

View File

@@ -1,15 +0,0 @@
<?php
if(!isset($_GET['list']))
die();
$type = $_GET['list'];
$rawList = file_get_contents("/etc/pihole/${type}list.txt");
$list = explode("\n", $rawList);
// Get rid of empty lines
for($i = sizeof($list)-1; $i >= 0; $i--) {
if($list[$i] == "")
unset($list[$i]);
}
echo json_encode(array_values($list));