Rougue DHCP plugin based on work of @leiweibau

This commit is contained in:
Jokob-sk
2023-03-12 19:31:59 +11:00
parent a07c73155f
commit 63a9e55d4e
9 changed files with 507 additions and 16 deletions

View File

@@ -345,5 +345,30 @@ function openInNewTab (url) {
}
// -----------------------------------------------------------------------------
function navigateToDeviceWithIp (ip) {
$.get('api/table_devices.json', function(res) {
devices = res["data"];
mac = ""
$.each(devices, function(index, obj) {
if(obj.dev_LastIP.trim() == ip.trim())
{
mac = obj.dev_MAC;
window.open(window.location.origin +'/deviceDetails.php?mac=' + mac , "_blank");
}
});
});
}