mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
Update deviceDetails.php
Added new function "nslookup" in "Tools"
This commit is contained in:
@@ -604,6 +604,28 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<h4 class=""><i class="fa-solid fa-magnifying-glass"></i> <?= lang('DevDetail_Tab_Tools_Nslookup_Title');?></h4>
|
||||||
|
<div style="width:100%; text-align: center; margin-bottom: 50px;">
|
||||||
|
<button type="button" id="nslookup" class="btn btn-primary pa-btn" style="margin: auto;" onclick="nslookup()"><?= lang('DevDetail_Tab_Tools_Nslookup_Start');?></button>
|
||||||
|
<br><div id="nslookupoutput" style="margin-top: 10px;"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function nslookup() {
|
||||||
|
|
||||||
|
$( "#nslookupoutput" ).empty();
|
||||||
|
$.ajax({
|
||||||
|
method: "GET",
|
||||||
|
url: "./php/server/nslookup.php?action=get&ip=" + document.getElementById('txtLastIP').value + "",
|
||||||
|
beforeSend: function() { $('#nslookupoutput').addClass("ajax_scripts_loading"); },
|
||||||
|
complete: function() { $('#nslookupoutput').removeClass("ajax_scripts_loading"); },
|
||||||
|
success: function(data, textStatus) {
|
||||||
|
$("#nslookupoutput").html(data);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<h4 class=""><?= lang('DevDetail_Nmap_Scans');?></h4>
|
<h4 class=""><?= lang('DevDetail_Nmap_Scans');?></h4>
|
||||||
<div style="width:100%; text-align: center;">
|
<div style="width:100%; text-align: center;">
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user