Make sure that js/pihole/queryads.js always finds its target + remove requirement for authorization on php/queryads.php for using it within the new blocking page

This commit is contained in:
DL6ER
2016-12-05 11:04:00 +01:00
parent 1c135448ec
commit acbef91e9c
2 changed files with 2 additions and 4 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ function eventsource() {
{
return;
}
var source = new EventSource("php/queryads.php?domain="+domain.val());
var host = window.location.host;
var source = new EventSource("http://"+host+"/admin/php/queryads.php?domain="+domain.val());
// Reset and show field
ta.empty();
-3
View File
@@ -1,7 +1,4 @@
<?php
require "password.php";
if(!$auth) die("Not authorized");
ob_end_flush();
ini_set("output_buffering", "0");
ob_implicit_flush(true);