'; foreach ($applications as $app) { $modifiers = ''; $app_text = \LibreNMS\Util\StringHelpers::niceCase($app); // check if the app exists in the enable apps array and check if it was automatically enabled if (isset($enabled_apps[$app])) { $modifiers = ' checked'; if ($enabled_apps[$app] && (get_dev_attrib($device, 'poll_applications') || Config::getOsSetting($device['os'], 'poller_modules.applications')) ) { $app_text .= ' (Discovered)'; $modifiers .= ' disabled'; } } echo '