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:55 -0400 |
commit | f955f0369335083b52774977d87aa2d450edd4e8 (patch) | |
tree | 72fac59c28a02295e324b878ad4319a4dc1ecc94 /usr/local/www/status_captiveportal.php | |
parent | f7cd2ed826ad92db5eb0b01dffe3da4c0bd31a1b (diff) | |
download | pfsense-f955f0369335083b52774977d87aa2d450edd4e8.zip pfsense-f955f0369335083b52774977d87aa2d450edd4e8.tar.gz |
Add the MAC manufacturer code to the CP status page
Diffstat (limited to 'usr/local/www/status_captiveportal.php')
-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']): |