mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add the MAC manufacturer code to the CP status page
This commit is contained in:
parent
f7cd2ed826
commit
f955f03693
@ -95,6 +95,9 @@ if (!empty($cpzone)) {
|
||||
}
|
||||
}
|
||||
|
||||
// Load MAC-Manufacturer table
|
||||
$mac_man = load_mac_manufacturer_table();
|
||||
|
||||
?>
|
||||
|
||||
<?php if (!empty($cpzone) && isset($config['voucher'][$cpzone]['enable'])): ?>
|
||||
@ -157,7 +160,16 @@ if (!empty($cpzone)) {
|
||||
<?php foreach ($cpdb as $cpent): ?>
|
||||
<tr>
|
||||
<td class="listlr"><?=$cpent[2];?></td>
|
||||
<td class="listr"><?=$cpent[3];?> </td>
|
||||
<td class="listr">
|
||||
<?php
|
||||
$mac=trim($cpent[3]);
|
||||
if (!empty($mac)) {
|
||||
$mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
|
||||
print htmlentities($mac);
|
||||
if(isset($mac_man[$mac_hi])){ print "<br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>"; }
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td class="listr"><?=$cpent[4];?> </td>
|
||||
<td class="listr"><?=htmlspecialchars(date("m/d/Y H:i:s", $cpent[0]));?></td>
|
||||
<?php if ($_GET['showact']):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user