mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
+1
-1
@@ -192,7 +192,7 @@ if (isset($_GET['topDomains']) && $auth) {
|
||||
$limit = ' AND timestamp <= :until';
|
||||
}
|
||||
// Select top permitted domains only
|
||||
$stmt = $db->prepare('SELECT domain,count(domain) FROM queries WHERE status IN (2,3,12,13,14)'.$limit.' GROUP by domain order by count(domain) desc limit 20');
|
||||
$stmt = $db->prepare('SELECT domain,count(domain) FROM queries WHERE status IN (2,3,12,13,14,17)'.$limit.' GROUP by domain order by count(domain) desc limit 20');
|
||||
$stmt->bindValue(':from', intval($_GET['from']), SQLITE3_INTEGER);
|
||||
$stmt->bindValue(':until', intval($_GET['until']), SQLITE3_INTEGER);
|
||||
$results = $stmt->execute();
|
||||
|
||||
@@ -180,7 +180,7 @@ var reloadCallback = function () {
|
||||
var data = tableApi.rows().data();
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
statistics[0]++; // TOTAL query
|
||||
if (data[i][4] === 1 || (data[i][4] > 4 && ![10, 12, 13, 14].includes(data[i][4]))) {
|
||||
if (data[i][4] === 1 || (data[i][4] > 4 && ![10, 12, 13, 14, 17].includes(data[i][4]))) {
|
||||
statistics[2]++; // EXACT blocked
|
||||
} else if (data[i][4] === 3) {
|
||||
statistics[1]++; // CACHE query
|
||||
|
||||
@@ -471,7 +471,7 @@ $(function () {
|
||||
|
||||
$("#all-queries tbody").on("click", "button", function () {
|
||||
var data = tableApi.row($(this).parents("tr")).data();
|
||||
if (data[4] === "2" || data[4] === "3" || data[4] === "14") {
|
||||
if (data[4] === "2" || data[4] === "3" || data[4] === "14" || data[4] === "17") {
|
||||
utils.addFromQueryLog(data[2], "black");
|
||||
} else {
|
||||
utils.addFromQueryLog(data[2], "white");
|
||||
|
||||
Reference in New Issue
Block a user