mirror of
https://github.com/pi-hole/web.git
synced 2026-03-01 06:08:34 +00:00
Disable Whitelist/Blacklist feature for release
See #39 for why this is needed
This commit is contained in:
15
php/get.php
15
php/get.php
@@ -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));
|
||||
Reference in New Issue
Block a user