blob: ad7f979bc6409efaf2711690f2a8fb9e4bd6ee44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
require_once("config.inc");
//set variables for custom title and link
$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"))
unset($widgetlist[$key]);
}
$config['widgets']['sequence'] = implode(",", $widgetlist);
write_config();
}
}
?>
|