Beispiel #1
0
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
//Get all plugins and enabled plugins
$plugins = array();
$s_plugins = array();
try {
    $sensor_id = 'local';
    if ($system_id != 'local') {
        $db = new Ossim_db();
        $conn = $db->connect();
        $sensor_ids = Av_center::get_component_id_by_system($conn, $system_id, 'sensor');
        $db->close();
        if (is_array($sensor_ids) && !empty($sensor_ids)) {
            $sensor_id = $sensor_ids['canonical'];
        }
    }
    $plugins = Plugin::get_plugins_from_api($sensor_id);
    $plugins = array_keys($plugins);
    $s_plugins = Plugin::get_plugins_from_api($sensor_id, array(), TRUE);
    // only enabled
} catch (Exception $e) {
}
//Check deprecated plugins
$deprecated_plugins = FALSE;
//OSSEC
if (array_key_exists('ossec_av_format', $s_plugins)) {