mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
show packages even if module is disabled. show generic icon for app if none exists
git-svn-id: http://www.observium.org/svn/observer/trunk@3079 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -408,8 +408,10 @@ if ($_SESSION['userlevel'] >= '5' && ($app_count) > "0")
|
||||
$app_list = dbFetchRows("SELECT `app_type` FROM `applications` GROUP BY `app_type` ORDER BY `app_type`");
|
||||
foreach ($app_list as $app)
|
||||
{
|
||||
$image = $config['html_dir']."/images/icons/".$row['app_type'].".png";
|
||||
$icon = (file_exists($image) ? $row['app_type'] : "apps");
|
||||
echo('
|
||||
<li><a href="apps/app='.$app['app_type'].'/"><img src="images/icons/'.$app['app_type'].'.png" border="0" align="absmiddle" /> '.$app['app_type'].' </a></li>');
|
||||
<li><a href="apps/app='.$app['app_type'].'/"><img src="images/icons/'.$icon.'.png" border="0" align="absmiddle" /> '.$app['app_type'].' </a></li>');
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -227,7 +227,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
|
||||
</li>');
|
||||
}
|
||||
|
||||
if ($config['poller_modules']['unix-agent'] && @dbFetchCell("SELECT COUNT(*) FROM `packages` WHERE device_id = '".$device['device_id']."'") > '0')
|
||||
if (@dbFetchCell("SELECT COUNT(*) FROM `packages` WHERE device_id = '".$device['device_id']."'") > '0')
|
||||
{
|
||||
echo('<li class="' . $select['packages'] . '">
|
||||
<a href="'.generate_device_url($device, array('tab' => 'packages')).'">
|
||||
|
Reference in New Issue
Block a user