librenms-librenms/includes/html/print-mef.inc.php
Tony Murray 36431dd296 Security fix: unauthorized access (#10091)
* Security fix: unauthorized access
Affects nginx users:
Moved php files outside of public html directory (Apache was protected by .htaccess)

Affects all users:
Some files did not check for authentication and could disclose some info.
Better checks before including files from user input

* git mv html/includes/ includes/html
git mv html/pages/ includes/html/
2019-04-11 23:26:42 -05:00

24 lines
822 B
PHP

<?php
echo '<tr class="list">';
echo '<td class="list">';
echo $mef['mefIdent'];
echo '</td>';
echo '<td class="list">'. $mef['mefType'] . '</td>';
echo '<td class="list">'. $mef['mefMTU'] . '</td>';
echo '<td class="list">';
if ($mef['mefAdmState'] == 'unlocked') {
echo '<i class="fa fa-unlock fa-lg icon-theme" aria-hidden="true" style="color:green"></i>';
} else {
echo '<i class="fa fa-lock fa-lg icon-theme" aria-hidden="true" style="color:red"></i>';
}
echo '</td>';
if ($mef['mefRowState'] == 'active') {
echo '<td class="list"><span style="min-width:40px; display:inline-block;" class="label label-success">active</span></td>';
} else {
echo '<td class="list"><span style="min-width:40px; display:inline-block;" class="label label-default">'.$mef['mefRowState'].'</span></td>';
}
echo '</tr>';