php -> lp

There are still a few cases left in debug.js, but as that feature is so far missing, I will leave them for now
This commit is contained in:
Adam Warner
2023-07-28 22:55:06 +01:00
parent 810ef59080
commit d59bbd26db
4 changed files with 5 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
<div class="box-footer clearfix">
<strong>Hints:</strong>
<ol>
<li>Please run <code>pihole -g</code> or update your gravity list <a href="gravity.php">online</a> after modifying your adlists.</li>
<li>Please run <code>pihole -g</code> or update your gravity list <a href="gravity.lp">online</a> after modifying your adlists.</li>
<li>Multiple adlists can be added by separating each <i>unique</i> URL with a space</li>
<li>Click on the icon in the first column to get additional information about your lists. The icons correspond to the health of the list.</li>
</ol>

View File

@@ -77,7 +77,7 @@ $(function () {
});
// Do we want to start updating immediately?
// gravity.php?go
// gravity.lp?go
var searchString = window.location.search.substring(1);
if (searchString.indexOf("go") !== -1) {
$("#gravityBtn").prop("disabled", true);

View File

@@ -277,7 +277,7 @@ function updateTopClientsTable(blocked) {
var clientname = utils.escapeHtml(client.name);
var clientip = utils.escapeHtml(client.ip);
if (clientname.length === 0) clientname = clientip;
url = '<a href="queries.php?client=' + clientip + '">' + clientname + "</a>";
url = '<a href="queries.lp?client_ip=' + clientip + '">' + clientname + "</a>";
percentage = (client.count / sum) * 100;
// Add row to table

View File

@@ -142,9 +142,9 @@ $(function () {
var ip = data.ips[index];
if (ip.name !== null && ip.name.length > 0)
ips.push(
'<a href="queries.php?client=' + ip.ip + '">' + ip.ip + " (" + ip.name + ")</a>"
'<a href="queries.lp?client_ip=' + ip.ip + '">' + ip.ip + " (" + ip.name + ")</a>"
);
else ips.push('<a href="queries.php?client=' + ip.ip + '">' + ip.ip + "</a>");
else ips.push('<a href="queries.lp?client_ip=' + ip.ip + '">' + ip.ip + "</a>");
}
if (data.ips.length > MAXIPDISPLAY) {