Revision 701989fb
Added by Jim Pingle about 14 years ago
usr/local/www/diag_arp.php | ||
---|---|---|
309 | 309 |
<?php |
310 | 310 |
$mac=$entry['mac']; |
311 | 311 |
$mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]); |
312 |
if(isset($mac_man[$mac_hi])){ print "<span title=\"$mac\">{$mac_man[$mac_hi]}</span>"; }
|
|
313 |
else{ print $mac; }
|
|
312 |
print $mac;
|
|
313 |
if(isset($mac_man[$mac_hi])){ print "<br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>"; }
|
|
314 | 314 |
?> |
315 | 315 |
<td class="listr"> |
316 | 316 |
<?php |
usr/local/www/status_dhcp_leases.php | ||
---|---|---|
363 | 363 |
$mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]); |
364 | 364 |
if ($data['online'] != "online") { |
365 | 365 |
if(isset($mac_man[$mac_hi])){ // Manufacturer for this MAC is defined |
366 |
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";
|
|
366 |
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";
|
|
367 | 367 |
}else{ |
368 | 368 |
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"; |
369 | 369 |
} |
Also available in: Unified diff
Print the MAC mfg on another line in a smaller font if it's found. Less obtrusive than completely replacing the MAC.