mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	* 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/
		
			
				
	
	
		
			24 lines
		
	
	
		
			822 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			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>';
 |