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

@@ -30,9 +30,7 @@
</section>
</div>
<?php
require 'php/templates/footer.php';
?>
<script defer>
@@ -66,6 +64,9 @@ function getFormControl(dbColumnDef, value, index) {
case 'devicemac':
result = `<span class="anonymizeMac"><a href="/deviceDetails.php?mac=${value}" target="_blank">${value}</a><span>`;
break;
case 'deviceip':
result = `<span class="anonymizeIp"><a href="#" onclick="navigateToDeviceWithIp('${value}')" >${value}</a><span>`;
break;
case 'threshold':
$.each(dbColumnDef.options, function(index, obj) {
if(Number(value) < obj.maximum && result == '')
@@ -357,12 +358,15 @@ function generateTabs()
</div>
${localize(obj, 'description')}
<span>
<a href="https://github.com/jokob-sk/Pi.Alert/tree/main/front/plugins/${obj.code_name}" target="_blank"><?= lang('Gen_Help');?></a>
</span>
<div class='plugins-description'>
${localize(obj, 'description')}
<span>
<a href="https://github.com/jokob-sk/Pi.Alert/tree/main/front/plugins/${obj.code_name}" target="_blank"><?= lang('Gen_Help');?></a>
</span>
</div>
</div>
`);
@@ -458,5 +462,7 @@ getData()
</script>
<?php
require 'php/templates/footer.php';
?>