diff options
Diffstat (limited to 'config/widget-snort/widget-snort.inc')
-rw-r--r-- | config/widget-snort/widget-snort.inc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/config/widget-snort/widget-snort.inc b/config/widget-snort/widget-snort.inc deleted file mode 100644 index b9cfbeac..00000000 --- a/config/widget-snort/widget-snort.inc +++ /dev/null @@ -1,29 +0,0 @@ -<?php -require_once("config.inc"); - -//set variable for custom title -$snort_alerts_title = "Snort Alerts"; -$snort_alerts_title_link = "snort/snort_alerts.php"; - -function widget_snort_uninstall() { - - global $config; - - /* Remove the Snort widget from the Dashboard display list */ - $widgets = $config['widgets']['sequence']; - if (!empty($widgets)) { - $widgetlist = explode(",", $widgets); - foreach ($widgetlist as $key => $widget) { - if (strstr($widget, "snort_alerts-container")) - unset($widgetlist[$key]); - } - $config['widgets']['sequence'] = implode(",", $widgetlist); - write_config(); - } - - /* Remove our associated files */ - unlink("/usr/local/www/widgets/include/widget-snort.inc"); - unlink("/usr/local/www/widgets/widgets/snort_alerts.widget.php"); - unlink("/usr/local/www/widgets/javascript/snort_alerts.js"); -} -?> |