Revert "Merge pull request #267 from pi-hole/folderStructure"

This reverts commit fba3d10fa4, reversing
changes made to 4ee75f4167.
This commit is contained in:
DL6ER
2016-12-21 17:16:52 +01:00
parent fba3d10fa4
commit e188cb6fbc
83 changed files with 183 additions and 174 deletions

View File

@@ -1,23 +0,0 @@
<?php
require "password.php";
if(!$auth) die("Not authorized");
ob_end_flush();
ini_set("output_buffering", "0");
ob_implicit_flush(true);
header('Content-Type: text/event-stream');
header('Cache-Control: no-cache');
function echoEvent($datatext) {
echo "data: ".implode("\ndata: ", explode("\n", $datatext))."\n\n";
}
// echoEvent("***START***");
$proc = popen("sudo pihole -g", 'r');
while (!feof($proc)) {
echoEvent(fread($proc, 4096));
}
// echoEvent("***END***");
?>