summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-05-16 15:39:45 -0400
committerjim-p <jimp@pfsense.org>2011-05-16 15:40:44 -0400
commit701989fbe44f22fc7ea1848ac7c14f361178e5c2 (patch)
tree5278d7d0766d3d53cbb43859bbb1ff09ce29bef9 /usr
parent73bf4a46d9083140c943a5d5c0ea69745ce9b905 (diff)
downloadpfsense-701989fbe44f22fc7ea1848ac7c14f361178e5c2.zip
pfsense-701989fbe44f22fc7ea1848ac7c14f361178e5c2.tar.gz
Print the MAC mfg on another line in a smaller font if it's found. Less obtrusive than completely replacing the MAC.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_arp.php4
-rwxr-xr-xusr/local/www/status_dhcp_leases.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/diag_arp.php b/usr/local/www/diag_arp.php
index 3adc2a8..4665a44 100755
--- a/usr/local/www/diag_arp.php
+++ b/usr/local/www/diag_arp.php
@@ -309,8 +309,8 @@ $mac_man = load_mac_manufacturer_table();
<?php
$mac=$entry['mac'];
$mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
- if(isset($mac_man[$mac_hi])){ print "<span title=\"$mac\">{$mac_man[$mac_hi]}</span>"; }
- else{ print $mac; }
+ print $mac;
+ if(isset($mac_man[$mac_hi])){ print "<br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>"; }
?>
<td class="listr">
<?php
diff --git a/usr/local/www/status_dhcp_leases.php b/usr/local/www/status_dhcp_leases.php
index 007c1a8..f84f7b3 100755
--- a/usr/local/www/status_dhcp_leases.php
+++ b/usr/local/www/status_dhcp_leases.php
@@ -363,7 +363,7 @@ foreach ($leases as $data) {
$mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
if ($data['online'] != "online") {
if(isset($mac_man[$mac_hi])){ // Manufacturer for this MAC is defined
- echo "<td class=\"listr\">{$fspans}<a href=\"services_wol.php?if={$data['if']}&mac=$mac\" title=\"" . gettext("$mac - send Wake on LAN packet to this MAC address") ."\">{$mac_man[$mac_hi]}</a>{$fspane}&nbsp;</td>\n";
+ echo "<td class=\"listr\">{$fspans}<a href=\"services_wol.php?if={$data['if']}&mac=$mac\" title=\"" . gettext("$mac - send Wake on LAN packet to this MAC address") ."\">{$mac}</a><br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>{$fspane}&nbsp;</td>\n";
}else{
echo "<td class=\"listr\">{$fspans}<a href=\"services_wol.php?if={$data['if']}&mac={$data['mac']}\" title=\"" . gettext("send Wake on LAN packet to this MAC address") ."\">{$data['mac']}</a>{$fspane}&nbsp;</td>\n";
}
OpenPOWER on IntegriCloud