diff options
author | jim-p <jimp@pfsense.org> | 2011-05-16 15:39:45 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-05-16 15:40:44 -0400 |
commit | 701989fbe44f22fc7ea1848ac7c14f361178e5c2 (patch) | |
tree | 5278d7d0766d3d53cbb43859bbb1ff09ce29bef9 /usr | |
parent | 73bf4a46d9083140c943a5d5c0ea69745ce9b905 (diff) | |
download | pfsense-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-x | usr/local/www/diag_arp.php | 4 | ||||
-rwxr-xr-x | usr/local/www/status_dhcp_leases.php | 2 |
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} </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} </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} </td>\n"; } |