diff options
author | jim-p <jimp@pfsense.org> | 2013-08-06 16:01:29 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-08-06 16:01:29 -0400 |
commit | 2947c3895f5ddfaff5bf70cf1d46abf5f406b2aa (patch) | |
tree | d870346a29f00f3ebd2a469c5677b72cfc8b9ad3 /usr | |
parent | 45630319d430a60a0ebf119f789b0684bd6c12b6 (diff) | |
download | pfsense-2947c3895f5ddfaff5bf70cf1d46abf5f406b2aa.zip pfsense-2947c3895f5ddfaff5bf70cf1d46abf5f406b2aa.tar.gz |
Add the MAC manufacturer code to the CP status page
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_captiveportal.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php index 1760b0d..1b092ec 100755 --- a/usr/local/www/status_captiveportal.php +++ b/usr/local/www/status_captiveportal.php @@ -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']): |