Port PHP to Lua Pages

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-04-26 21:57:11 +02:00
parent fb64759fdf
commit 7156cc541f
37 changed files with 458 additions and 463 deletions

View File

@@ -538,7 +538,7 @@ function updateTopDomainsTable(blocked) {
domain = utils.escapeHtml(item.domain);
// Substitute "." for empty domain lookups
urlText = domain === "" ? "." : domain;
url = '<a href="queries.php?domain=' + domain + '">' + urlText + "</a>";
url = '<a href="queries.lp?domain=' + domain + '">' + urlText + "</a>";
percentage = (item.count / sum) * 100;
domaintable.append(
"<tr> " +
@@ -724,9 +724,9 @@ const htmlLegendPlugin = {
textLink.addEventListener("click", () => {
if (chart.canvas.id === "queryTypePieChart") {
window.location.href = "queries.php?querytype=" + querytypeids[item.index];
window.location.href = "queries.lp?querytype=" + querytypeids[item.index];
} else if (chart.canvas.id === "forwardDestinationPieChart") {
window.location.href = "queries.php?forwarddest=" + encodeURIComponent(item.text);
window.location.href = "queries.lp?forwarddest=" + encodeURIComponent(item.text);
}
});
@@ -967,7 +967,7 @@ $(function () {
//get value by index
var from = label / 1000 - 300;
var until = label / 1000 + 300;
window.location.href = "queries.php?from=" + from + "&until=" + until;
window.location.href = "queries.lp?from=" + from + "&until=" + until;
}
return false;
@@ -990,7 +990,7 @@ $(function () {
//get value by index
var from = label / 1000 - 300;
var until = label / 1000 + 300;
window.location.href = "queries.php?from=" + from + "&until=" + until;
window.location.href = "queries.lp?from=" + from + "&until=" + until;
}
return false;