mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Update deviceDetails.php
Added new function "Mtr" in "Tools"
This commit is contained in:
@@ -625,7 +625,29 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<h4 class=""><i class="fa-solid fa-binoculars"></i> <?= lang('DevDetail_Tab_Tools_Mtr_Title');?></h4>
|
||||||
|
<div style="width:100%; text-align: center; margin-bottom: 50px;">
|
||||||
|
<button type="button" id="mtr" class="btn btn-primary pa-btn" style="margin: auto;" onclick="mtr()"><?= lang('DevDetail_Tab_Tools_Mtr_Start');?></button>
|
||||||
|
<br><div id="mtroutput" style="margin-top: 10px;"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function mtr() {
|
||||||
|
|
||||||
|
$( "#mtroutput" ).empty();
|
||||||
|
$.ajax({
|
||||||
|
method: "GET",
|
||||||
|
url: "./php/server/mtr.php?action=get&ip=" + document.getElementById('txtLastIP').value + "",
|
||||||
|
beforeSend: function() { $('#mtroutput').addClass("ajax_scripts_loading"); },
|
||||||
|
complete: function() { $('#mtroutput').removeClass("ajax_scripts_loading"); },
|
||||||
|
success: function(data, textStatus) {
|
||||||
|
$("#mtroutput").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